Home Directory

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

Directory

ikx1000@gmail.com

Reviews(7)
byikx1000@gmail.com, November 18, 2020
Very limited functionality with modern IOS-es, and typical MPLS VPNs. It is a IOS limitation, not the plugin itself. The only chance is to configure ospf traps on the router and trap handling, passive service on Nagios. IOS config:
snmp-server host ....
snmp-server enable traps ospf

"Cisco IOS Release 12.0(26)S, 12.2(25)S, 12.2(27)SBC, 12.2(31)SB2 and later
releases, the OSPF MIB and CISCO OSPF MIB will be supported only for the first OSPF process [....] SNMP traps will be generated for OSPF events that are related to any of the OSPF processes.
There is no workaround for this situation."

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-mib-1850.pdf
byikx1000@gmail.com, November 18, 2020
Very limited functionality with modern IOS-es, and typical MPLS VPNs. It is a IOS limitation, not the plugin itself. The only chance is to configure ospf traps on the router and trap handling, passive service on Nagios. IOS config:
snmp-server host ....
snmp-server enable traps ospf

"Cisco IOS Release 12.0(26)S, 12.2(25)S, 12.2(27)SBC, 12.2(31)SB2 and later
releases, the OSPF MIB and CISCO OSPF MIB will be supported only for the first OSPF process [....] SNMP traps will be generated for OSPF events that are related to any of the OSPF processes.
There is no workaround for this situation."

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-mib-1850.pdf
byikx1000@gmail.com, November 18, 2020
Very limited functionality with modern IOS-es, and typical MPLS VPNs. It is a IOS limitation, not the plugin itself. The only chance is to configure ospf traps on the router and trap handling, passive service on Nagios. IOS config:
snmp-server host ....
snmp-server enable traps ospf

"Cisco IOS Release 12.0(26)S, 12.2(25)S, 12.2(27)SBC, 12.2(31)SB2 and later
releases, the OSPF MIB and CISCO OSPF MIB will be supported only for the first OSPF process [....] SNMP traps will be generated for OSPF events that are related to any of the OSPF processes.
There is no workaround for this situation."

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-mib-1850.pdf
byikx1000@gmail.com, November 18, 2020
Very limited functionality with modern IOS-es, and typical MPLS VPNs. It is a IOS limitation, not the plugin itself. The only chance is to configure ospf traps on the router and trap handling, passive service on Nagios. IOS config:
snmp-server host ....
snmp-server enable traps ospf

"Cisco IOS Release 12.0(26)S, 12.2(25)S, 12.2(27)SBC, 12.2(31)SB2 and later
releases, the OSPF MIB and CISCO OSPF MIB will be supported only for the first OSPF process [....] SNMP traps will be generated for OSPF events that are related to any of the OSPF processes.
There is no workaround for this situation."

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-mib-1850.pdf
byikx1000@gmail.com, November 18, 2020
Very limited functionality with modern IOS-es, and typical MPLS VPNs. It is a IOS limitation, not the plugin itself. The only chance is to configure ospf traps on the router and trap handling, passive service on Nagios. IOS config:
snmp-server host ....
snmp-server enable traps ospf

"Cisco IOS Release 12.0(26)S, 12.2(25)S, 12.2(27)SBC, 12.2(31)SB2 and later
releases, the OSPF MIB and CISCO OSPF MIB will be supported only for the first OSPF process [....] SNMP traps will be generated for OSPF events that are related to any of the OSPF processes.
There is no workaround for this situation."

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-mib-1850.pdf
byikx1000@gmail.com, November 2, 2020
#tested on Cisco 1941 ios v.15.6
/usr/lib/nagios/plugins/check_snmp_cisco_ospf-neighbor.pl -H my_cisco_ios_rt -C my_comm
UNKNOWN: Script timed out
byikx1000@gmail.com, November 2, 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
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 https://git.lysator.liu.se/bellman/nagios-plugins-trh/-/issues , that might be a better venue for debugging this.)