Good tip. I don't think I'll put my hostgroup definitions in my templates. I'll put them directly in the host configuration so I can do soemthing like this:
define host{ use server-24x7 host_name DB1 address 192.168.100.77 hostgroups windows,sql,iis parents OMAJELFW01 } On Tue, May 6, 2008 at 2:33 PM, Max <[EMAIL PROTECTED]> wrote: > Whoops, hit send too soon! > > hostgroup should be hostgroups in my example .. > > if you use the host template method, just remember that in the host > definition you will then need to use a + in front of host groups > defined in the host definition so that the host inherits the > hostgroups from the templates in 'use' .. > > so the same should be done in the host template :p ... > > define host { > name windows-server > __variable_1 stuff > __variable_2 stuff > hostgroups +windows-servers > ... > register 0 > } > > define host { > use generic-host, windows-server > hostgroups +ssh-hosts, http-hosts > ... > } > > Sorry about that. > > - Max > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null