<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>Help with newer check_snmp plug-in</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">I just upgraded my plug-ins to the newly released 1.3.0 versions and my checks that used check_snmp broke. I've been playing with this all afternoon and can't find a combination that works the way it did before. Can somebody help me with Syntax please? </FONT></P>

<P><FONT SIZE=2 FACE="Arial">All this check does is check to see if an interface is up on our Cisco router. The command that I had before was:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">define command {</FONT>
<BR><FONT SIZE=2 FACE="Arial">        command_name    check_router_link</FONT>
<BR><FONT SIZE=2 FACE="Arial">        command_line    $USER1$/check_snmp $HOSTADDRESS$ -c $ARG2$ -o interfaces.ifTable.ifEntry.ifOperStatus.$ARG1$ -e SUBSTR -s up -cv down</FONT></P>

<P><FONT SIZE=2 FACE="Arial">}</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">From what I can figure out so far the syntax changes are: </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">* Add a -H for the address</FONT>
<BR><FONT SIZE=2 FACE="Arial">* community string changed to -C</FONT>
<BR><FONT SIZE=2 FACE="Arial">* the string syntax now does whole string or SUBSTR so the -e value went away. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">But what I cannot get is how I specify the correct or incorrect values as per the -cv option above?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">What I have so far is:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">define command {</FONT>
<BR><FONT SIZE=2 FACE="Arial">        command_name    check_router_link</FONT>
<BR><FONT SIZE=2 FACE="Arial">        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG2$ -o interfaces.ifTable.ifEntry.ifOperStatus.$ARG1$ -s up </FONT></P>

<P><FONT SIZE=2 FACE="Arial">}</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Any help greatly appreciated!</FONT>
</P>

<P>        <FONT SIZE=2 FACE="Arial">markh</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">======----- <I></I></FONT><I> <FONT SIZE=2 FACE="Gentle Sans">://F<SUP>2</SUP> new technology for real integration</FONT><FONT SIZE=2 FACE="Courier New"> -----========</FONT></I><BR>
<FONT SIZE=2 FACE="Courier New">Mark A. Holm -</FONT><I> <FONT SIZE=2 FACE="Courier New">Director of Network Engineering & Operations</FONT></I><BR>
<FONT SIZE=2 FACE="Courier New">Inherent.com, Inc.<BR>
2140 SW Jefferson St.             Phone: (503) 224-6751<BR>
   Suite 200                              extension 236<BR>
Portland, OR 97201                  Fax: (503) 224-8872<BR>
<</FONT><A HREF="http://www.inherent.com"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">http://www.inherent.com</FONT></U></A><FONT SIZE=2 FACE="Courier New">>       <</FONT><A HREF="mailto:markh@inherent.com"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">mailto:markh@inherent.com</FONT></U></A><FONT SIZE=2 FACE="Courier New">></FONT>
</P>

</BODY>
</HTML>