Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_ospf_v2.py
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!
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.
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.
Reviews (0)
Be the first to review this listing!