How to monitor multple options on a custom pl script
Posted: Thu Sep 21, 2017 5:42 am
Hello all:
I founded an APC UPS plugin, and i want to implement it on my environment, the script is: https://exchange.nagios.org/directory/P ... PS/details
The script has the hability to monitor multiple options (id, battery status, battery charge, etc, etc).
But if i want to see (for instance) the id, battery status and power_modules running a single command via CLI, i only see one output.
My question is, how to run this query using more than one option after "-l" parameter.
I founded an APC UPS plugin, and i want to implement it on my environment, the script is: https://exchange.nagios.org/directory/P ... PS/details
The script has the hability to monitor multiple options (id, battery status, battery charge, etc, etc).
But if i want to see (for instance) the id, battery status and power_modules running a single command via CLI, i only see one output.
Code: Select all
[root@NagiosXI libexec]# ./check_apc.pl -H 172.27.XXX.XXX -C COMMUNITY -l out_current
OK: Output Current is: 25A|'Output Current'=25;;
[root@NagiosXI libexec]# ./check_apc.pl -H 172.27.XXX.XXX -C COMMUNITY -l id
OK: UPS Name: Symmetra 48K, Firmware: 550.0321.I, Microproc S/N: XXXXXXXX, Manufacture Date: 01/29/12