Skip to content

[hardware::ups::apc::snmp::plugin] input-lines mode - automatic warn/crit thresholds for upsAdvInputLineVoltage no more work #5733

@Aleksey-Maksimov

Description

@Aleksey-Maksimov

Hello,

In December 2019, our mutual friend Quentin (@garnier-quentin) kindly added the ability to automatically calculate the upper and lower thresholds for the incoming voltage of the APC UPS
#1764
Previously, this worked fine and we did not specify the thresholds - the plugin took them automatically from the NMC.

But recently we noticed that this does not work anymore, that is, the values ​​upsAdvConfigHightransferVolt (.1.3.6.1.4.1.318.1.1.1.5.2.2.0) and upsAdvConfigLowTransferVolt (.1.3.6.1.4.1.318.1.1.1.5.2.3.0) are no longer processed correctly. The data from these OIDs does not get into the perfdata and does not affect the return code of the plugin in any way.

This looks like a significant regression and breakage of useful functionality of the plugin that worked before.

For example, we have disconnected the input voltage and we found that the "input-lines" mode incorrectly shows us the status of the input voltage (OK instead of CRITICAL)

# '/centreon_plugins.pl' '--plugin=hardware::ups::apc::snmp::plugin' '--mode=input-lines' \ 
'--critical-frequence' '49:51' '--filter-uom' 'null' '--hostname' 'UH-UP004' \
'--snmp-community' 'it' '--snmp-version' '2c' '--use-new-perfdata' --verbose --debug

OK: voltage: 0 V, frequence: 50 Hz, last input line fail cause is 'rateOfVoltageChange' | 
'lines.input.voltage.volt'=0;;;; 'lines.input.frequence.hertz'=50;;49:51;;

.1.3.6.1.4.1.318.1.1.1.3.2.1.0 = 0
.1.3.6.1.4.1.318.1.1.1.3.2.4.0 = 50
.1.3.6.1.4.1.318.1.1.1.3.2.5.0 = 10
.1.3.6.1.4.1.318.1.1.1.3.3.1.0 = 0
.1.3.6.1.4.1.318.1.1.1.3.3.4.0 = 500
.1.3.6.1.4.1.318.1.1.1.5.2.2.0 = 253
.1.3.6.1.4.1.318.1.1.1.5.2.3.0 = 208

Please fix this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions