My host is in a specific hostgroup which has multiple services applied to. I would like to remove all services containing the word “mount” in it…only for that one host of course.
I’m thinking about the cleanest solution for this. My ideal solution would be to ignore them (with the match command…) in the Host definition of my server. I did try an “ignore where” but it gave me an error about not being able to have both “assign” and “ignore” together. I understand the logic behind this.
In the Host definition?
I would like to avoid going into every services and add that ignore statement. This is what I would like to do and I get this error : critical/config: Error: object rule ‘ignore where’ cannot be used without ‘assign where’
groups = [ “common-checks-centos-server-24x7”,“IBM-ESS-server-24x7”,“IBM-ESS-client-24x7”,“IBM-ESS-HOMEU1IO-server-24x7”]
ignore where match(“mount”, service.name)
}
There are 2 * around mount, doesn’t show up here somehow