Configuring Nagios BGP plugin on Ubuntu
Posted
by
user141610
on Server Fault
See other posts from Server Fault
or by user141610
Published on 2012-11-26T11:02:36Z
Indexed on
2012/11/26
11:08 UTC
Read the original article
Hit count: 270
I am trying to configure nagios check_bgp_neighbors plug-in on Ubuntu and followed README file of check_bgp_neighbors plug-in. I have made following changes:
define command{
command_name check_bgp_all
command_line $USER1$/check_bgp_neighbors -H $HOSTADDRESS$ -C $USER3$ -n $ARG1$ -n $ARG2$
}
to
define command{
command_name check_bgp_all
command_line /usr/local/nagios/libexec/check_bgp_neighbors.sh -H xx.xx.xx.49 -C xx.xx.xx.50
And
define service{
use server-service
hostgroup_name svc-bgp1
service_description BGP Check 1
check_command check_bgp_all!10.0.0.1!172.16.0.2
}
to
define service{
use generic-service
hostgroup_name svc-bgp1
service_description BGP Check 1
check_command check_bgp_all!xx.xx.xx.50
}
xx.xx.xx.49 is the IP of the host router and xx.xx.xx.50 is the IP of eBGP neighbour.
After that it shows critical status. I know my command is not correct but cannot detect the problem. I learned that in this plug-in user-name and password of the host router are required but don't know how and where to provide it. Nagios log does not show any error message.
Status information: Failed: status:0 prefixes:0 sent:0 received:0
© Server Fault or respective owner