Skip to main content

Hello,

I’ve been asked to know if it is possible to monitor the result of a command like “show ip route” on a CISCO router.

Do you know if Centreon is able to do it ? Or perhaps with ntopng ?

Thank you for your help,

Hi,

You could check route path from pollers with the nagios plugin check_traceroute :

https://exchange.nagios.org/directory/Plugins/Network-Protocols/%2A-Routing/check_traceroute/details

I use it. I just added the -N 1 option to the traceroute command.

Regards


Thank you, but my request was not clear. The question is how to obtain the output of the “show ip route” command on a CISCO router, like this :

Router# show ip routeCodes: I - IGRP derived, R - RIP derived, O - OSPF derived       C - connected, S - static, E - EGP derived, B - BGP derived       * - candidate default route, IA - OSPF inter area route       E1 - OSPF external type 1 route, E2 - OSPF external type 2 routeGateway of last resort is 131.119.254.240 to network 129.140.0.0O E2 150.150.0.0 0160/5] via 131.119.254.6, 0:01:00, Ethernet2E    192.67.131.0 1200/128] via 131.119.254.244, 0:02:22, Ethernet2O E2 192.68.132.0 2160/5] via 131.119.254.6, 0:00:59, Ethernet2O E2 130.130.0.0 0160/5] via 131.119.254.6, 0:00:59, Ethernet2E    128.128.0.0 0200/128] via 131.119.254.244, 0:02:22, Ethernet2E    129.129.0.0 0200/129] via 131.119.254.240, 0:02:22, Ethernet2

You could test the service model “OS-Linux-Cmd-Return-SSH-custom” of Linux SSH connector :

Cisco Standard SSH connector don’t have “cmd-return” mode.


I’m going to test this solution


Hello,

finally I found an other solution. The IP route table of the router is reachable by OID (1.3.6.1.2.1.4.24.4.1...), adding the route requested and the next hop.

Thanks for your help,


Reply