Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_ospf2
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.
Returns OK on twoWay or full.
Returns CRITICAL on other states or if OSPF neighbor missing.
Check OSPF peer status via SNMP.
Usage:
check_ospf.pl -H -C -p
check_ospf.pl --help
check_ospf.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 peer
-V (--version) Plugin version
-h (--help) usage help
Returns OK on twoWay or full.
Returns CRITICAL on other states or if OSPF neighbor missing.
Check OSPF peer status via SNMP.
Usage:
check_ospf.pl -H -C -p
check_ospf.pl --help
check_ospf.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 peer
-V (--version) Plugin version
-h (--help) usage help
Reviews (1)
byikx1000@gmail.com, November 18, 2020
Very limited functionality with modern IOS-es, and typical MPLS VPNs. It is a IOS limitation, not the plugin itself. The only chance is to configure ospf traps on the router and trap handling, passive service on Nagios. IOS config:
snmp-server host ....
snmp-server enable traps ospf
"Cisco IOS Release 12.0(26)S, 12.2(25)S, 12.2(27)SBC, 12.2(31)SB2 and later
releases, the OSPF MIB and CISCO OSPF MIB will be supported only for the first OSPF process [....] SNMP traps will be generated for OSPF events that are related to any of the OSPF processes.
There is no workaround for this situation."
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-mib-1850.pdf
snmp-server host ....
snmp-server enable traps ospf
"Cisco IOS Release 12.0(26)S, 12.2(25)S, 12.2(27)SBC, 12.2(31)SB2 and later
releases, the OSPF MIB and CISCO OSPF MIB will be supported only for the first OSPF process [....] SNMP traps will be generated for OSPF events that are related to any of the OSPF processes.
There is no workaround for this situation."
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-mib-1850.pdf