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
312 stars 275 forks source link

[hardware::ups::apc::snmp::plugin] --use-new-perfdata not work in --mode=output-lines #4548

Closed Aleksey-Maksimov closed 1 year ago

Aleksey-Maksimov commented 1 year ago

Hello

$ ./centreon_plugins.pl' '--plugin=hardware::ups::apc::snmp::plugin' '--mode=output-lines' 
'--critical-frequence' '49:51' '--critical-load' '0:90' 
'--critical-status' '%{status} !~ /onLine|onSmartBoost|onSmartTrim|rebooting/i' 
'--critical-voltage' '198:253' '--warning-load' '0:80'
'--filter-uom' 'null' 
'--hostname' 'E80UPS01' '--snmp-community' 'public' '--snmp-version' '2c'  
--use-new-perfdata

OK: output status is 'onLine', load: 47.4 %, current: 2 A, voltage: 233.1 V, frequence: 50 Hz | 
'load'=47.4;0:80;0:90;0;100 
'current'=2;;;0; 
'voltage'=233.1;;198:253;; 
'frequence'=50;;49:51;;

Can you please implement --use-new-perfdata ?

garnier-quentin commented 1 year ago

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