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_ospf2

Rating
1 vote
Favoured:
0
Hits
97478
Files:
FileDescription
check_ospf.0.1.plversion 0.1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_ospf script that uses OSPF-MIB (ePN compliant)
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
Reviews (1)
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