Nagios check_bgp_neighbors plugin showing critical status
- by user141610
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 snmpName -n 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.
Status information:
line: neighbor:xx.xx.xx.50:sent:78838:received:9769
Failed: status:6 prefixes:16 sent:0 received:1
Log
[1353997904] SERVICE NOTIFICATION: router1;router1;BGP CHECK 2;CRITICAL;notify-service-by-email;line: neighbor:103.7.248.50:sent:78842:received:9772
[1353997904] SERVICE NOTIFICATION: router1;router1;BGP CHECK 2;CRITICAL;notify-service-by-sms;line: neighbor:103.7.248.50:sent:78842:received:9772
Why does it show critical status????
I am not getting response for this question, if you need additional information please mention it in comment.