Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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$


define command{
        command_name    check_bgp_all
        command_line    /usr/local/nagios/libexec/ -H xx.xx.xx.49 -C snmpName -n xx.xx.xx.50


define service{
    use             server-service
    hostgroup_name          svc-bgp1
    service_description     BGP Check 1
    check_command           check_bgp_all!!


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


[1353997904] SERVICE NOTIFICATION: router1;router1;BGP CHECK 2;CRITICAL;notify-service-by-email;line: neighbor:xx.xx.xx.50:sent:78842:received:9772
[1353997904] SERVICE NOTIFICATION: router1;router1;BGP CHECK 2;CRITICAL;notify-service-by-sms;line: neighbor:xx.xx.xx.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.


#./ -H xx.xx.xx.49 -C myCommunity -n xx.xx.xx.50


line: neighbor:xx.xx.xx.50:sent:80327:received:11122
Failed: status:6 prefixes:16 sent:0 received:0
share|improve this question
Is there a question in there somewhere? – dmourati Nov 27 '12 at 6:38
Its showing critical status, I cannot detect the problem. – user141610 Nov 27 '12 at 6:43
Where can I add snmp version??? – user141610 Nov 27 '12 at 7:08
Your changes aren't consistent with each other. You should really read the "Macros and how they work" docs page. (But this isn't really related to your problem.) – Keith Nov 27 '12 at 17:43
Your question isn't really a nagios problem; it's a "why doesn't this plugin behave as I expect?". Show us the output of a manual CLI test with "-v" added to the end. – Keith Nov 27 '12 at 17:50
up vote 0 down vote accepted

I have successfully configured nagios BGP monitoring plug-in on my server. But I have used check_bgp plug-in instead of check_bgp_neibor. Here are the links I have followed:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.