Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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)?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

You can do this easily with the negate plugin.

(It's exactly what negate is for.)

share|improve this answer
    
I can not understand how to work with it: # /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 -c 1 SNMP OK - 1 | iso.3.6.1.4.1.9.9.91.1.1.1.1.4.13=1 and # /usr/local/libexec/nagios/negate /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 -c 1 SNMP OK - 1 | iso.3.6.1.4.1.9.9.91.1.1.1.1.4.13=1 –  Allan Sundry Jul 19 '13 at 9:46
    
Read the output of "negate --help". You probably want something like "negate -s -o CRITICAL -c OK" and then your usual plugin call. –  Keith Jul 19 '13 at 18:54
    
The problem was a missing parameter "-s". Thank you! –  Allan Sundry Jul 22 '13 at 6:30

To check the power supply into the Cisco 7604 you can use the plugin

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.