Showing the ip address of a routing interface within its service check result

Hey folks,

It’s my intention to show / reveal the ip address of a routing interface (virtual or non-virtual) within the appropriate service check result to the monitoring users. Is there any chance to set it up somewhere? So far the appropriate service check result reveals the interface description, state, mac address, speed and used bandwith (in/out) “only”.

Best wishes
AD

When you use mk_inventory.vbs on Windows, and probably Linux inventory might have it as well, it gives Routes as extra level under Networking in the HW/SW inventory.

Which can be made visible in a view with following column:
image

But it is a table of all the routes configured per interface, I only showed the first row, so it will make your host rows a multitude of the route rows there are. Which might not give the overview you seek.

Thanks again, Yggy. I should have mentioned, that I was talking about Cisco devices. Best wishes, AD

I guess those Cisco devices are checked with SNMP?
If so, maybe there’s a plugin for it, check https://exchange.checkmk.com/ or you can write your own, but I have no knowledge of that.

If you know the OID(s) of the device that gives the route(s), you can alternatively use Setup > Services > Other services > Integrate Nagios plugins to go for a specific OID directly.

For my printers I get the device info OID with SNMPv2 that way.

More info on this method in docs:

To have the IP-Address of your devices in available in Checkmk you could use my plugins from the Network Visualization collection. There are three IP-Address plugins, one for Linux, one for Windows and one for SNMP based devices. The last one will cover your Cisco devices. The information will not show up next to the Interface service, as you want this, but in the HW/SW-Inventory. Hope this wil do.

@Yggy: Much thx for the ideas. The website “checkMK Exchange” unfortunately didn’t offer anything suitable plugin. The idea to integrate Nagios plugins appears lovely (and I’m pretty, I’ll use it for once in the future), but it doesn’t help me with the current problem. I can not identify any generic oid (in need to be asked by the check_snmp plugin). A snmpwalk shows me the ip addresses, I’m looking for, but every corresponding oid contains the ip address itself (something like 1.3.2.2.1.2.192.168.0.1). Yes, at least I could advertise the ip addresses within CheckMK. But I actually wanted CheckMK to automatically reflect any change being made to a routing-interface regarding its ip address.

@thl-cmk: Much thx for your idea as well. I’ll probably follow your suggestion. Although I would have been utterly thrilled to see the ip addresses within the check results. :wink: