OSPF

check_ospf_nbr

Description:

Checks OSPF v2 and v3 adjacencies (neighbours) using SNMP.

Current Version

0.31

Last Release Date

2019-01-12

Compatible With

  • Nagios 4.x

License

LGPL


Project Files
Project Notes
Usage: check_ospf_nbr {-2|3} -H host [options] Check OSPF neighbour adjacency status of a router using SNMP. Neighbour can be specified by peer IP address, router-id, and/or interface name, e.g. to check that the router has a neighbour with router-id R on interface I. The adjacency with the neighbour must be in state FULL for it to be considered OK. Either or both of OSPF v2 and OSPF v3 neighbours can be checked at the same time. Options: --version show program's version number and exit -h, --help show this help message and exit -H HOST, --host=HOST Hostname/address of router to query; mandatory option -C COMMUNITY, --community=COMMUNITY SNMP community [default: public] -c COMMUNITY Alias for -C/--community for backward compatibility with older versions of this plugin -v SNMP_VERSION, --snmp-version=SNMP_VERSION SNMP version to use [default: 2]. -N NEIGHBOUR_ID, --neighbour-id=NEIGHBOUR_ID, --nbr=NEIGHBOUR_ID Router-id of neighbour, as a dotted quad, or as a decimal, octal or hexadecimal integer -P PEER_ADDRESS, --peer-address=PEER_ADDRESS IPv4 address of neighbour; only used for OSPFv2. This can be specified as a numeric address or as a host name that will be resolved. -I INTERFACE, --interface=INTERFACE Layer 3 interface where neighbour should be found. [default: any] -2, --ospfv2 Look for OSPFv2 neighbour [default: False] -3, --ospfv3 Look for OSPFv3 neighbour [default: False]. --vendor=VENDOR Handle quirks for specific network OS [default: autodetect] The plugin is written in Python 2. It requires the Python bindings to net-snmp (the net-snmp-python RPM in RHEL/Fedora), and the ipaddr Python module (the python-ipaddr RPM in RHEL/Fedora).
Reviews (1) Add a Review
not working with Cisco
by ikx1000@gmail.com, November 30, 2020

Router uses two OSPF processes, one with vrf ## show all neighbors, all processes rtpe-pruszkow#sh ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 212.69.65.137 1 FULL/DR 00:00:06 172.16.100.1 GigabitEthernet0/0.689 N/A 0 ATTEMPT/DROTHER - 172.16.100.34 GigabitEthernet0/0.688 212.69.65.124 1 FULL/BDR 00:00:39 172.16.100.3 GigabitEthernet0/0.687 172.16.255.110 1 FULL/DR 00:00:30 172.50.110.2 GigabitEthernet0/0.390 Plugin: /usr/lib/nagios/plugins/check_ospf_nbr.py -2 -C compagi0905 -H mpwik-rtpe-pru -v 2 --vendor ios -P 172.16.100.1 CRITICAL: No matching OSPFv2 neighbour /usr/lib/nagios/plugins/check_ospf_nbr.py -2 -C compagi0905 -H mpwik-rtpe-pru -v 2 --neighbour-id 212.69.65.137 --vendor ios CRITICAL: No matching OSPFv2 neighbour



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
1 (1)
Favorites
0
Views
6,339