bgp monitoring (check_bgp_neighbors) command syntaxassistance

Brown, Robin robin.brown at uconn.edu
Tue Oct 6 21:49:42 CEST 2009


Perhaps your router does not support that mib.  Check here and see if your image supports it:

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=+1.3.6.1.4.1.9.9.187.1.2.4.1.1&translate=Translate&submitValue=SUBMIT&submitClicked=true

There is a link to check if your image supports the mib.

-Robin



On 10/6/09 3:29 PM, "Emily" <new2nagios at gmail.com> wrote:

Well I was able to do an smpwalk on my router - of course trying to find the correct OID might be a problem...

Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1

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

I am wondering if anyone else is using the check_bgp_neighbors script sucessfully?

I did a search on the OID from my error and this is what it generated...

iso(1) <http://www.oid-info.com/get/1>  identified-organization(3) <http://www.oid-info.com/get/1.3>  dod(6) <http://www.oid-info.com/get/1.3.6>  internet(1) <http://www.oid-info.com/get/1.3.6.1>  private(4) <http://www.oid-info.com/get/1.3.6.1.4>  enterprise(1) <http://www.oid-info.com/get/1.3.6.1.4.1>  cisco(9) <http://www.oid-info.com/get/1.3.6.1.4.1.9>  ciscoMgmt(9) <http://www.oid-info.com/get/1.3.6.1.4.1.9.9>

  Search the OID  <http://www.oid-info.com/basic-search.htm>

On Tue, Oct 6, 2009 at 2:20 PM, James Pratt <jpratt at norwich.edu> wrote:


>> -----Original Message-----
>> From: Emily [mailto:new2nagios at gmail.com]
>> Sent: Tuesday, October 06, 2009 12:32 PM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] bgp monitoring (check_bgp_neighbors) command
>> syntaxassistance
>>
>> Hello, I am attempting to use this check_bgp_neighbors command which
was
>> recommended however my manual execution gives this output:
>>
>> [root at dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C
public -n
>> 157.130.57.129 -n 65.205.26.197
>> Error in packet
>> Reason: (noSuchName) There is no such variable name in this MIB.
>> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1
>> expr: syntax error
>> Error in packet
>> Reason: (noSuchName) There is no such variable name in this MIB.
>> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1
>> expr: syntax error
>> ./check_bgp_neighbors: line 107: [: -ge: unary operator expected
>> Failed: status:12 prefixes: sent:1466115 received:1475079[root at dns
libexec]#
>> [root at dns libexec]#
>>
>> perhaps my syntax is flawed as I don't know why I am getting this
"Failed object"
>> error, the usage of the command is below, I would really appreciate
any help with my
>> syntax for the above command:
>>

I think your syntax is ok, as it's not line 107 that its actually
failing on, it's the two OID lookup(s) on the router - it's not able to
see them via snmpwalk in the script...

The shell script itself is inserting those last two "neighbor" IP
addresses into the snmpwalk call(s) as part of the specific OID's, so it
could definitely be a typo or something - can you try to manually run
snmpwalk against the router to troubleshoot it further?

Cheers,
james



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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