Hi,
You should try to use:
assign where "Group1" in host.groups
More info:
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics#using-apply
18.03.2015 19:31, Ghaith Al Kayyem пишет:
Hi Joao,
Do you know the correct directive that we should use in service:
i tried below two options, and both of them not applied on the servers
inside the group.
apply Service "ssh_check_mem"{
import "generic-service"
check_command = "by_ssh_check_mem"
vars.by_ssh_logname = "icinga"
assign where host.groups in ["Group1"]
//assign where hostgroup.name == "Group1"
}
<-----Original Message----->
From: Joгo Graзa [[email protected]]
Sent: 3/18/2015 5:42:45 PM
To: Icinga User's Corner
Subject: Re: [icinga-users] Service on HostGroup
Hello Ghaith,
I don't know if is the best practice but you can use the "assign where
matchs" directive that can be found in the docs...
And i think there is examples in the files that come with the
installation in "conf.d" directory...
Best,
Joгo Graзa
Em 18/03/2015 15:35, "Ghaith Al Kayyem" <[email protected]
<mailto:[email protected]>> escreveu:
Dear All,
could you guide me about applying one service or commands on all
servers inside one HostGroup?
I tried to include groups directive inside each host definition, but
i can't find any option to apply the service on all host group members.
Thanks.
_______________________________________________________________
Get the Free email that has everyone talking at
http://www.mail2world.com <http://www.mail2world.com/>
Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much
More!
_______________________________________________
icinga-users mailing list
[email protected] <mailto:[email protected]>
https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________________________
Get the Free email that has everyone talking at http://www.mail2world.com
Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users
--
Faithfully yours,
Pavel Sukhoy
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users