Service name for network interfaces

Hi,

Is it possible to change service name from i.e. Interface 1 to eth0 on Linux and Windows? I’ve tried to use “Network Interface and Switch Port Discovery” rule with Appearance of network interface: Use alias or Use description but even after full discovery of the target system it’s still using the Interface x names.
Running CMK 1.6.0.p8

Thanks

Yes, this should work with “Use description”. Strange - I would have expected Checkmk to automatically discover these as vanished/unmonitored services after changing the ruleset.

Perhaps you need to manually remove (blue button, move to undecided) the “old” interface services, rescan and then re-add (green button, monitor) the “new” interface services – or just do an “Automatic refresh (tabula rasa)” on all services.

Just to make sure: The new name will (should) then be “Interface eth0”, not just “eth0”.
If you are trying to remove the “Interface” prefix from the service name, then you probably need to implement this with a “Translation of service descriptions” rule. But I would not recommend that.

Correct, “Interface eth0” is just fine

I’ve tried both ways now on Centos and Windows but no luck - still it is with the number. Rule is on top-level with explicit hosts set.
Any idea where might be a problem and/or how to debug it?

Thanks

Hi,

we just released a new blog article which explains the steps in depth. Maybe it will help you

I’ve set up the rules again similarly to your blog and it works now - might be an issue of multiple rules applying over each other… Anyway - thank you for link to your blog!

1 Like