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_bgp

Rating
2 votes
Favoured:
0
Hits
172948
Files:
FileDescription
check_bgp.plcheck_bgp.pl version 0.2
check_bgp.0.3.plcheck_bgp.pl version 0.3
check_bgp.0.4.plcheck_bgp.pl version 0.4
check_bgp script that uses BGP4-MIB (ePN complient)
Requires Net::SNMP.

Usage:
check_bgp.pl -H -C -p
check_bgp.pl --help
check_bgp.pl --version

-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community or v3 auth (defaults to public)

(v3 specified as username:authpassword:... )
username = SNMPv3 security name
authpassword = SNMPv3 authentication pass phrase (or hexidecimal key)
authprotocol = SNMPv3 authentication protocol (md5 (default) or sha)
privpassword = SNMPv3 privacy pass phrase (or hexidecmal key)
privprotocol = SNMPv3 privacy protocol (des (default) or aes)

-v (--snmp_version) 1 for SNMP v1

2 for SNMP v2c (default)
3 for SNMP v3

-p {--peer} IP of BGP Peer
-V (--version) Plugin version
-h (--help) usage help


Primary MIB reference - BGP4-MIB

Version 0.4 added snmpv3 support
Version 0.3 $snmp was not checked for being defined - fixed
Version 0.2 conformed with ePN
Reviews (1)
byramiro.flores, March 17, 2017
Gives the following errors when executing:

root@server:/usr/local/nagios/libexec# ./check_bgp.pl -H 10.70.71.62 -C nvaiaJC4 -p 81.46.16.1
Use of uninitialized value in concatenation (.) or string at ./check_bgp.pl line 191.
Illegal hexadecimal digit 'n' ignored at ./check_bgp.pl line 198.
Argument "noSuchObject" isn't numeric in numeric gt (>) at ./check_bgp.pl line 270.
Argument "noSuchObject" isn't numeric in numeric eq (==) at ./check_bgp.pl line 213.
Argument "noSuchObject" isn't numeric in numeric eq (==) at ./check_bgp.pl line 216.
CRITICAL - 81.46.16.1 (ASnoSuchObject) state is . Last established noSuchObjects.