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
21889
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/
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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