check_snmp problem
Donjuma Lee
dlee at rewardsnetwork.com
Wed Nov 10 23:13:38 CET 2004
I am testing check_snmp.
I run the following command:
./check_snmp -H localhost -o .1.3.6.1.4.1.2021.9.1.100.1 -C <COM_NAME>
-c 1
I get the following answer:
SNMP OK - 0
I am having a problem with the -s option of the command. The help says:
-s, --string=STRING
Return OK state (for that OID) if STRING is an exact match
So I alter the command to read:
./check_snmp -H localhost -o .1.3.6.1.4.1.2021.9.1.100.1 -C <COM_NAME>
-c 1 -s "SNMP OK - BAD"
And I still get:
SNMP OK - 0
What am I doing wrong? Any help would be appreciated.
Thanks
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list