Nagios monitoring for switches.

Hi, I have configured check_snmp plugin and using the plugin i am able to monitor the uptime of the switch.

But the following fails

[root@linux01 objects]# /usr/local/nagios/libexec/check_snmp -H 10.10.10.1 -C ready -o ifOperStatus.1 -r 1 -m RFC1213-MIB
SNMP CRITICAL - *down(2)* |
[root@linux01 objects]#

Any suggestions ?

Is your SNMP community name "ready"?

Also, it doesn't look like your script is failing at all, it's just showing the results of the SNMP query.