<div>Well I was able to do an smpwalk on my router - of course trying to find the correct OID might be a problem...</div>
<div> </div>
<div>Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1</div>
<div> </div>
<div>I could only do a search up to 1.3.6.1.4.1.9.9, if I included 187 I got an error on an invalid OID</div>
<div> </div>
<div>I am wondering if anyone else is using the check_bgp_neighbors script sucessfully?</div>
<div> </div>
<div>I did a search on the OID from my error and this is what it generated...</div>
<div>
<table>
<tbody>
<tr>
<td>  </td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" width="610" border="0">
<tbody>
<tr>
<td width="440"><img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1"><font color="#000000">iso(1)</font></a> <img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1.3"><font color="#000000">identified-organization(3)</font></a> <img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1.3.6"><font color="#000000">dod(6)</font></a> <img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1.3.6.1"><font color="#000000">internet(1)</font></a> <img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1.3.6.1.4"><font color="#000000">private(4)</font></a> <img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1.3.6.1.4.1"><font color="#000000">enterprise(1)</font></a> <img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1.3.6.1.4.1.9"><font color="#000000">cisco(9)</font></a> <img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/get/1.3.6.1.4.1.9.9"><font color="#000000">ciscoMgmt(9)</font></a> <br>
<br></td>
<td width="20">  </td>
<td width="150">
<p><img height="8" src="http://www.oid-info.com/images/bullet.gif" width="10" border="0"><a href="http://www.oid-info.com/basic-search.htm"><font color="#000000">Search the OID </font></a></p>
<p> </p>
<p> </p></td></tr></tbody></table><br><br></div>
<div class="gmail_quote">On Tue, Oct 6, 2009 at 2:20 PM, James Pratt <span dir="ltr"><<a href="mailto:jpratt@norwich.edu">jpratt@norwich.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5"><br><br>>> -----Original Message-----<br>>> From: Emily [mailto:<a href="mailto:new2nagios@gmail.com">new2nagios@gmail.com</a>]<br>>> Sent: Tuesday, October 06, 2009 12:32 PM<br>>> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
>> Subject: [Nagios-users] bgp monitoring (check_bgp_neighbors) command<br>>> syntaxassistance<br>>><br>>> Hello, I am attempting to use this check_bgp_neighbors command which<br>was<br>>> recommended however my manual execution gives this output:<br>
>><br>>> [root@dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C<br>public -n<br>>> 157.130.57.129 -n 65.205.26.197<br>>> Error in packet<br>>> Reason: (noSuchName) There is no such variable name in this MIB.<br>
>> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1<br>>> expr: syntax error<br>>> Error in packet<br>>> Reason: (noSuchName) There is no such variable name in this MIB.<br>>> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1<br>
>> expr: syntax error<br>>> ./check_bgp_neighbors: line 107: [: -ge: unary operator expected<br>>> Failed: status:12 prefixes: sent:1466115 received:1475079[root@dns<br>libexec]#<br>>> [root@dns libexec]#<br>
>><br>>> perhaps my syntax is flawed as I don't know why I am getting this<br>"Failed object"<br>>> error, the usage of the command is below, I would really appreciate<br>any help with my<br>
>> syntax for the above command:<br>>><br><br></div></div>I think your syntax is ok, as it's not line 107 that its actually<br>failing on, it's the two OID lookup(s) on the router - it's not able to<br>
see them via snmpwalk in the script...<br><br>The shell script itself is inserting those last two "neighbor" IP<br>addresses into the snmpwalk call(s) as part of the specific OID's, so it<br>could definitely be a typo or something - can you try to manually run<br>
snmpwalk against the router to troubleshoot it further?<br><br>Cheers,<br><font color="#888888">james<br></font></blockquote></div><br>