The syntax for the ‚in‘ operator is: <item> in <array>
For example: "group1" in host.groups From: Ghaith Al Kayyem Reply-To: "[email protected]<mailto:[email protected]>" Date: Wednesday 18 March 2015 17:31 To: "[email protected]<mailto:[email protected]>" Cc: "[email protected]<mailto:[email protected]>" Subject: Re: [icinga-users] Service on HostGroup 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]<mailto:[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! -- Gunnar Beutner Application Developer NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg Tel: +49 911 92885-0 | Fax: +49 911 92885-77 GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 http://www.netways.de | [email protected] ** CeBIT 2015 - 16.-20. März 2015 - http://www.netways.de/cebit ** ** OSDC 2015 - April - osdc.de ** ** Puppet Camp Berlin 2015 - April - netways.de/puppetcamp ** ** OSBConf 2015 - September - osbconf.org ** _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
