Create a rule for host with custom attribute

this is a bit of a noob questin but I just don’t know where to start, so…

I basically want to do this

I have assigned a custom attribute “docker” to all my docker hosts and would like to create and apply a rule, that ignores the overlay volumes docker creates.

please give me a hint :slight_smile:

Hi,

custom attributes are not a condition for rulesets.
You can use either host tags or host labels for that usecase.

All Docker node hosts already get the label cmk/docker_object:node automatically if the Docker agent plugin has been installed.

All right, so I can use the label, good to know. But how do I create a ruleset for a label?

Search for “Service Labels” and/or “Host Labels” in Setup. Here you can set labels on the specific services and/or Hosts. After that you can set “Disable Services” based on your Label Ruleset(s).

As described in the forum post you are referring to, you need a “disabled services” rule.
Create a new rule and there you can use your filesystem name as the service name and the add the label robert showed you in the conditions.