Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_bgp_v4_v6
2.0
2014-06-20
- Nagios 3.x
- Nagios 4.x
22380
File | Description |
---|---|
check_bgp_devel_expect | The main file, located at /PATH_to_NAGIOS/libexec/ |
get_bgp_Juniper | This file parse the "show bgp summary" command into the expected router. Should be located at /PATH_to_NAGIOS/libexec/plugins/ |
get_bgp_Cisco | This file parse the "show ip bgp summary" command into the expected router. Should be located at /PATH_to_NAGIOS/libexec/plugins/ |
get_bgp_ls_Juniper | Logical system, This file parse the "show bgp summary" command into the expected router. Should be located at /PATH_to_NAGIOS/libexec/plugins/ |
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!
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
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
Reviews (0)
Be the first to review this listing!