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


Remember Me

Directory Tree


1 vote
Current Version
Last Release Date
Compatible With
  • Nagios 4.x
nagios-plugins-trh-0.20.tar.gzSource tar ball version 0.20
nagios-plugins-trh-0.31.tar.gzSource tar ball versoin 0.31
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks OSPF v2 and v3 adjacencies (neighbours) using SNMP.
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

--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
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].
Router-id of neighbour, as a dotted quad, or as a
decimal, octal or hexadecimal integer
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.
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:

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)
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 1 FULL/DR 00:00:06 GigabitEthernet0/0.689
N/A 0 ATTEMPT/DROTHER - GigabitEthernet0/0.688 1 FULL/BDR 00:00:39 GigabitEthernet0/0.687 1 FULL/DR 00:00:30 GigabitEthernet0/0.390


/usr/lib/nagios/plugins/ -2 -C compagi0905 -H mpwik-rtpe-pru -v 2 --vendor ios -P
CRITICAL: No matching OSPFv2 neighbour

/usr/lib/nagios/plugins/ -2 -C compagi0905 -H mpwik-rtpe-pru -v 2 --neighbour-id --vendor ios
CRITICAL: No matching OSPFv2 neighbour
Owner's reply

Sorry I did not see this report until now.

I don't have access to any Cisco router myself, but I would be interrested in getting my plugin to work with IOS. Would it be possible for you to send me the output of the command

snmpwalk -v2c -c compagi0905 mpwik-rtpe-pru OSPF-MIB::ospfNbrTable

along with the output from 'show ip ospf neighbor' at the same time?

You mention running two OSPF processes; could this be related to that? I know that for Juniper Junos, you need to give a SNMP community on the form @ to see OSPF information in another routing instance. Is there some similar trick for Cisco IOS?

(If you can log an issue in the issue-tracker at , that might be a better venue for debugging this.)