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_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
15706
Files:
FileDescription
check_ospf.pycheck_ospf.py
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.