Excluding Hosts:
If you want to create identical services on numerous hosts or hostgroups, but would like to exclude some hosts from the definition, this can be accomplished by preceding the host or hostgroup with a ! symbol.
define service{
host_name HOST1,HOST2,!HOST3,!HOST4,...,HOSTN
hostgroup_name HOSTGROUP1,HOSTGROUP2,!HOSTGROUP3,!HOSTGROUP4,...,HOSTGROUPN
service_description SOMESERVICE
other service directives ...
}
This is not exactly "straight forward" process in XI (if you want to use the Web UI instead of manually creating the configs and importing them)...
You can go to:
CCM->Services->Manage Hosts->and remove ALL of the assigned hosts. You will add them as a free variable instead, so go to the "Misc Settings" tab->"Manage Variable Definitions" and add:
Variable name = "host_name"
Variable value = "HOST1,HOST2,!HOST3,!HOST4,...,HOSTN"
Save, and Apply Configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lmiltchev wrote:This is not exactly "straight forward" process in XI (if you want to use the Web UI instead of manually creating the configs and importing them)...
You can go to:
CCM->Services->Manage Hosts->and remove ALL of the assigned hosts. You will add them as a free variable instead, so go to the "Misc Settings" tab->"Manage Variable Definitions" and add:
Variable name = "host_name"
Variable value = "HOST1,HOST2,!HOST3,!HOST4,...,HOSTN"
Save, and Apply Configuration.
I will explore other solutions. This will be a management problem in the long run.
Thanks.
BTW, what is this for? I can see the + which seems to be adding it in front of the hostnames
05-08-2014 07-12-34 AM.png
You do not have the required permissions to view the files attached to this post.