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_junos_bgp_state.pl

Rating
2 votes
Favoured:
0
Current Version
0.1
Last Release Date
2013-05-01
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
41001
Files:
FileDescription
check_junos_bgp_state.plcheck_junos_bgp_state.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Perl script that via SNMP queries a Juniper router(JunOS) for BGP peer/neighbor status. Triggers CRITICAL alarm if peer is not in established state and is enabled.
Router must support the BGP4-V2-MIB-JUNIPER mib.

Following perl modules required:

Net::SNMP
Getopt::Long
Net::IP

Status for IPv6 peers should be supported.


Perfdata enabled for the amount of BGP peers.

Example syntax:

./check_junos_bgp_state.pl -H 10.10.10.10 -C public

Only SNMP version 2c supported for now

Checking an IPv6 only router might work with the -d parameter.

Example(not tested):

check_junos_bgp_state.pl -H -C public -d udp/ipv6

ps. Since it uses SNMP bulk requests I noticed there could be an issue at times with default value of 25 and to large packets. Need to reduce it to e.g. 15.
Reviews (1)
bygeorge.oniceag, September 20, 2016
Nice script ! Works on Junos MX104D out of the box. Thank you !