How to Create a List of Services to be Monitored for a set of Hosts?

Howdy,

I need to add a few hundred Linux hosts, all running the same OS and same configuration. I’d like for CheckMK to monitor a subset of services that are discovered by the CMK Linux agent.

Is there any way to specify this for a set of hosts prior to discovery, such that when discovered they “inherit” those services so that they automatically start being monitored?

For these hosts, we don’t want CMK to monitor everything discovered by the agent, only a small subset.

Use the ruleset “Disabled services” for that.
You can combine two rules in “Disabled services” matching your host:

  1. Negative match for the service checks you want to monitor.
  2. Positive match without any service description in the condition to disable everything else.

BTW: You could also roll out a customized linux agent shell script that only sends the data sections you are interested in.

2 Likes

Thanks, that worked perfectly!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.