<HTML dir=ltr><HEAD><TITLE>RE: [Nagios-users] check_snmp syntax issue</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText97622 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>It looks like the -P switch will tell it which snmp version to use.  again, '-h' helps  =)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr>-P, --protocol=[1|2c|3]<BR>    SNMP protocol version<BR></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>- </FONT><FONT face=Arial color=#000000 size=2>Josh</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Dylan Bouterse [mailto:dylan@corp.power1.com]<BR><B>Sent:</B> Mon 10/22/2007 10:56 AM<BR><B>To:</B> Yost, Josh; nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagios-users] check_snmp syntax issue<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>That may do it, but I can't get the host to respond using the check_snmp plugin. I think it may be a version mismatch. It seems the check_snmp plugin only supports SNMP v1 and v3, but not v2c. I cannot snmpget my device with v1 or v3.<BR><BR>Dylan<BR><BR><BR>From: Yost, Josh [<A href="mailto:josh.yost@epsiia.com">mailto:josh.yost@epsiia.com</A>]<BR>Sent: Monday, October 22, 2007 11:33 AM<BR>To: Dylan Bouterse; nagios-users@lists.sourceforge.net<BR>Subject: RE: [Nagios-users] check_snmp syntax issue<BR><BR>I think the:  --string='SYNC OK'   option would do it.  Try doing a '-h' on check_snmp to see all the options.<BR> <BR>- Josh<BR> <BR><BR>________________________________________<BR>From: nagios-users-bounces@lists.sourceforge.net on behalf of Dylan Bouterse<BR>Sent: Mon 10/22/2007 10:24 AM<BR>To: nagios-users@lists.sourceforge.net<BR>Subject: [Nagios-users] check_snmp syntax issue<BR>I am trying to get check_snmp working to alert when my GPS sync stops<BR>working on one of my devices. I can execute the snmpget command to get<BR>the string but I'm having no luck in configuring a check_snmp syntax to<BR>return values.<BR><BR><BR>[root@ns1 cfg]# snmpget -v 2c -c community 1.1.20.3<BR>1.3.6.1.4.1.161.19.3.4.4.13.0<BR>SNMPv2-SMI::enterprises.161.19.3.4.4.13.0 = STRING: "SYNC OK"<BR>[root@ns1 cfg]# snmpget -v 2c -c community 1.1.21.3<BR>1.3.6.1.4.1.161.19.3.4.4.13.0<BR>SNMPv2-SMI::enterprises.161.19.3.4.4.13.0 = STRING: "No SYNC"<BR><BR>How would I write the check_snmp command to show OK when "SYNC OK" and<BR>alert critical when the "No SYNC" value is returned?<BR><BR>Dylan<BR><BR>-------------------------------------------------------------------------<BR>This SF.net email is sponsored by: Splunk Inc.<BR>Still grepping through log files to find problems?  Stop.<BR>Now Search log events and configuration files using AJAX and a browser.<BR>Download your FREE copy of Splunk now >> <A href="http://get.splunk.com/">http://get.splunk.com/</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>::: Messages without supporting info will risk being sent to /dev/null<BR></FONT></P></DIV></BODY></HTML>