Nagios Core 4.3.4 running on Debian Stretch.
I'm using check_snmp_environment.pl plugin (from https://exchange.nagios.org/directory/P ... 29/details) to monitor the power supply status and temperature of one of the ICX Brocade switches.
Here is the output I get:
Code: Select all
./check_snmp_environment.pl -H icx6450.local.net -C public -T brocadeTurboIron
Power supply 1 (NA - AC - Regular) present, status ok: OK; Power supply 2 (NA - AC - Regular) present, status ok: OK;
Rear Side Fan 1 (1): OK;
Chassis temperature of 42.5OK;
Management module: CPU temperature of 47.5OK;
Management module: MAC 1 temperature of 42.5OK;
Management module: CPU temperature of 42.5OK;
Management module: MAC 1 temperature of 42.5OK;
all OK
Power supply 1 (NA - AC - Regular) present, status ok: OK;
Then another check for Power supply 2:
Power supply 2 (NA - AC - Regular) present, status ok: OK;
And so on.
Do I need to have separate commands per line piping the output to awk/sed?
Thanks.