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

Check Cisco BGP peer

Current Version
0.1
Last Release Date
2015-07-01
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor
  • Nagios Network Analyzer
  • Nagios Log Server
License
GPL
Hits
6641
Files:
FileDescription
check_snmp_cisco_bgp.plVersion 0.1 - July 20 2015

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Check BGP peer status, established time, prefixes.
Checks the OSPF status of a BGP peer and reports back with uptime, remote AS and number of prefixes.

# ./check_snmp_cisco_bgp.pl -H 192.168.1.1 -C public -P 10.10.10.10
BGP state: established - Established for: 29 days, 13 hours, 48 minutes, 16 seconds, Remote AS: 64512, Number of prefixes: 538796 : OK

Can also be used with theshold for upper and lower limit threshold for number of prefixes, and warning and critical in hours for established time.

# ./check_snmp_cisco_bgp.pl -H 192.168.1.1 -C public -P 10.10.10.10 --lower 500000 --upper 600000 -w 48 -c 24
BGP state: established - Established for: 29 days, 13 hours, 48 minutes, 16 seconds, Remote AS: 64512, Number of prefixes: 538796 : OK
Reviews (1)
The plugin is developped in a standard way with usual V3 authentication. But when SNMP request gives NosuchInstance, it answers BPG OK.
I propose , line 430 :
undef $peer_state if ($peer_state =~ /nosuchinstance/i);
so that the result will be UNKNOWN.