Hello community
I have a little dilemma with the definition of one of the services.
There is a need for one service to be assigned to all hosts with RedHat versions 7 and 8.
But I also don’t want this service to be assigned to RedHat 9 hosts.
The goal is for one service to be defined, and only the assign conditions determine its assignment or not.
There is an assign option - but nowhere in the documentation I could find how to precisely determine the version of the assigned system.
assign where “default_agent” in host.vars.mon.roles && host.vars.os == “Linux”
I wouldn’t want to create additional custom roles for hosts.
Does Icinga recognize itself in more details than just host.vars.os ?