check_snmp syntax issue

Dylan Bouterse dylan at corp.power1.com
Mon Oct 22 17:24:37 CEST 2007


I am trying to get check_snmp working to alert when my GPS sync stops
working on one of my devices. I can execute the snmpget command to get
the string but I'm having no luck in configuring a check_snmp syntax to
return values.


[root at ns1 cfg]# snmpget -v 2c -c community 1.1.20.3
1.3.6.1.4.1.161.19.3.4.4.13.0
SNMPv2-SMI::enterprises.161.19.3.4.4.13.0 = STRING: "SYNC OK"
[root at ns1 cfg]# snmpget -v 2c -c community 1.1.21.3
1.3.6.1.4.1.161.19.3.4.4.13.0
SNMPv2-SMI::enterprises.161.19.3.4.4.13.0 = STRING: "No SYNC"

How would I write the check_snmp command to show OK when "SYNC OK" and
alert critical when the "No SYNC" value is returned?

Dylan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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