Nagios check_snmp reverse – CRITICAL=0 OK=1

check-snmpnagios

I need to check the status of power supply units Cisco 7604 using Nagios. I decided to use the plugin check_snmp:

/usr/local/libexec/nagios/check_snmp -H 192.168.150.200 -o 1.3.6.1.4.1.9.9.91.1.1.1.1.4.13
SNMP OK - 1 | iso.3.6.1.4.1.9.9.91.1.1.1.1.4.13=1

wherein:

#show environment alarm threshold
environmental alarm thresholds:

power-supply 1 fan-fail: OK
  threshold #1 for power-supply 1 fan-fail:
    (sensor value != 0 ) is system minor alarm

How to set the CRITICAL for Nagios (CRITICAL=0, OK=1)?

Best Answer

You can do this easily with the negate plugin.

(It's exactly what negate is for.)