centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

[hardware::ups::standard::rfc1628::snmp::plugin] mode=output-lines : Is it possible to add upsOutputFrequency ? #4415

Closed Aleksey-Maksimov closed 1 year ago

Aleksey-Maksimov commented 1 year ago

Hello.

The plugin [hardware::ups::standard::rfc1628::snmp::plugin] in mode output-lines does not have information about the current frequency on the output lines (upsOutputFrequency/.1.3.6.1.2.1.33.1.3.3.1.2)

# ./centreon_plugins.pl --plugin=hardware::ups::standard::rfc1628::snmp::plugin 
--mode=output-lines 
--hostname=UP007 --snmp-community=public --snmp-version=2c --debug

OK: Output line '1' load: 18.00 %, current: 0.00 A, voltage: 230.00 V, power: 0.00 W 
| 'load'=18.00%;;;0;100 'current'=0.00A;;;0; 'voltage'=230.00V;;;; 'power'=0.00W;;;;

.1.3.6.1.2.1.33.1.4.4.1.2.1 = 230
.1.3.6.1.2.1.33.1.4.4.1.3.1 = 0
.1.3.6.1.2.1.33.1.4.4.1.4.1 = 0
.1.3.6.1.2.1.33.1.4.4.1.5.1 = 18

Output line '1' load: 18.00 %, current: 0.00 A, voltage: 230.00 V, power: 0.00 W

Can you please add this?

garnier-quentin commented 1 year ago

Could you provide a snmpwalk of following branch ? .1.3.6.1.2.1.33.1.4

Aleksey-Maksimov commented 1 year ago
# snmpwalk -ObentU -v 2c -c public ESUPS007 .1.3.6.1.2.1.33.1.4

.1.3.6.1.2.1.33.1.4.1.0 = INTEGER: 3
.1.3.6.1.2.1.33.1.4.2.0 = INTEGER: 500
.1.3.6.1.2.1.33.1.4.3.0 = INTEGER: 1
.1.3.6.1.2.1.33.1.4.4.1.2.1 = INTEGER: 231
.1.3.6.1.2.1.33.1.4.4.1.3.1 = INTEGER: 0
.1.3.6.1.2.1.33.1.4.4.1.4.1 = INTEGER: 0
.1.3.6.1.2.1.33.1.4.4.1.5.1 = INTEGER: 19
Aleksey-Maksimov commented 1 year ago

Quentin, do you need any more information from me?

garnier-quentin commented 1 year ago

https://github.com/centreon/centreon-plugins/pull/4556