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_ospf_v2.py

Rating
0 votes
Favoured:
0
Current Version
v0.22
Last Release Date
2014-06-17
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
License
BSD
Hits
20166
Files:
FileDescription
check_ospf.pycheck_ospf.py
Nagios CSP

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!
Nagios plugin that checks the status of OSPF neighbors on a Cisco IOS router.

Latest version:

https://github.com/critikaster/check_ospf.py
usage: check_ospf.py [-h] [--version] [--debug] [-r RID] [-i IP] [-n NUMBER] SNMP_COMMUNITY HOST

Nagios plugin that checks the status of OSPF neighbors on a Cisco IOS router. The check returns OK if the neighbor state is 2WAY or FULL. Without any optional arguments, returns OK if any OSPF neighbors are detected. Optional arguments can be passed to match a specific neighbor Router ID (RID) or interface IP to look for. In that case a CRITICAL will be generated if that specific neighbor is down. In case multiple IP's or RID's are provided, a WARNING is generated if any of them is not 2WAY or FULL. If you set both IP's and RID's, only the IP's will be checked.

positional arguments: SNMP_COMMUNITY the SNMP community string of the remote device HOST the IP of the remote host you want to check

optional arguments: -h, --help show this help message and exit --version show program's version number and exit --debug debug output -r RID, --rid RID OSPF neighbor router ID (multiple possible separated by a comma and in-between quotes) -i IP, --ip IP OSPF neighbor IP (multiple possible separated by a comma and in-between quotes) -n NUMBER, --number NUMBER Minimum number of OSPF neighbors required (overrides --ip )

Written in Python 3.