Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_bgp
188168
File | Description |
---|---|
check_bgp.pl | check_bgp.pl version 0.2 |
check_bgp.0.3.pl | check_bgp.pl version 0.3 |
check_bgp.0.4.pl | check_bgp.pl version 0.4 |
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!
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
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 (2)
byGWAMPO, May 23, 2017
received the same error as the previous comment
./check_bgp.0.4.pl -H 10.255.255.1 -C EElum1n8orox -p 169.254.255.97
Use of uninitialized value in concatenation (.) or string at ./check_bgp.0.4.pl line 191.
Illegal hexadecimal digit 'n' ignored at ./check_bgp.0.4.pl line 198.
Argument "noSuchObject" isn't numeric in numeric gt (>) at ./check_bgp.0.4.pl line 270.
Argument "noSuchObject" isn't numeric in numeric eq (==) at ./check_bgp.0.4.pl line 213.
Argument "noSuchObject" isn't numeric in numeric eq (==) at ./check_bgp.0.4.pl line 216.
CRITICAL - 169.254.255.97 (ASnoSuchObject) state is . Last established noSuchObjects.
./check_bgp.0.4.pl -H 10.255.255.1 -C EElum1n8orox -p 169.254.255.97
Use of uninitialized value in concatenation (.) or string at ./check_bgp.0.4.pl line 191.
Illegal hexadecimal digit 'n' ignored at ./check_bgp.0.4.pl line 198.
Argument "noSuchObject" isn't numeric in numeric gt (>) at ./check_bgp.0.4.pl line 270.
Argument "noSuchObject" isn't numeric in numeric eq (==) at ./check_bgp.0.4.pl line 213.
Argument "noSuchObject" isn't numeric in numeric eq (==) at ./check_bgp.0.4.pl line 216.
CRITICAL - 169.254.255.97 (ASnoSuchObject) state is . Last established noSuchObjects.
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.
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.