Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_bgp_v4_v6

Rating
0 votes
Favoured:
0
Current Version
2.0
Last Release Date
2014-06-20
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Hits
22380
Files:
FileDescription
check_bgp_devel_expectThe main file, located at /PATH_to_NAGIOS/libexec/
get_bgp_JuniperThis file parse the "show bgp summary" command into the expected router. Should be located at /PATH_to_NAGIOS/libexec/plugins/
get_bgp_CiscoThis file parse the "show ip bgp summary" command into the expected router. Should be located at /PATH_to_NAGIOS/libexec/plugins/
get_bgp_ls_JuniperLogical system, This file parse the "show bgp summary" command into the expected router. Should be located at /PATH_to_NAGIOS/libexec/plugins/
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This will check if the bgp session is established
Since it parses the "show bgp summary" command to the router using expect, it worked only with devices that has already have plugin file.
I've only writen code for Juniper routers

Requirement:
yum íntall expect
yum install mysql phpmyadmin
This will check if the bgp session is established
Since it parses the "show bgp summary" command to the router using expect, it worked only with devices that has already have plugin file.
I've only writen code for Juniper routers

Requirement:
yum íntall expect
yum install mysql phpmyadmin
Location:
/Path-to-nagios/libexec/check_bgp
/Path-to-nagios/libexec/plugins/get_bgp_Juniper
Usage:
Create a mysql database that have 4 field:
id | group_BGP | name_BGP | peer_BGP
Insert data into the database've created
It should be:
mysql> show tables;
+----------------------+
| Tables_in_$DBname |
+----------------------+
| $DBtable |
+----------------------+
2 rows in set (0.00 sec)

mysql> select * from DBname.DBtables
-> ;
+----+-----------+----------------------+--------------------------------+
| id | group_BGP | name_BGP | peer_BGP |
+----+-----------+----------------------+--------------------------------+
| 1 | iBGP | peer1 | 119.18.185.1 |
| 2 | eBGP | peer2 | 119.18.185.102 |
| 3 | iBGP | peer3 | 119.18.185.61 |
######################
copy files into their location