bgp monitoring (check_bgp_neighbors) command syntax assistance

Emily new2nagios at gmail.com
Tue Oct 6 18:31:51 CEST 2009


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:

[root at dns libexec]# more check_bgp_neighbors
#!/bin/bash
# Written By: Scott McCarty
# Created: 2/2008
# Description: Used to collect counters for bgp and also status and number
of pr
efixes in memory
# License: This nagios plugin comes with ABSOLUTELY NO WARRANTY. You may
redistr
ibute copies of
# the plugins under the terms of the GNU General Public License. For more
inform
ation about these
# matters, see the GNU General Public License.
# Version: 1.0
# Varialbles
debug=0
sent_threshold=1
received_threshold=5
prefixes_threshold=240000
current_received=0
current_sent=0
last_received=0
last_sent=0
total_prefixes=0
total_status=0
min_status=0
total_sent=0
total_received=0
neighbors=""
community=""
hostname=""
usage="Usage: $0 -H <hostname> -C <community> -n <neighbor1> -n neighbor2
[...]"

Emily
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091006/f046e87a/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
-------------- next part --------------
_______________________________________________
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