Hi,

I would also like to be able to create empty hostgroups with services assigned.

The reason for this is that I've setup a nagios installation for a customer 
where a host is only member to one hostgroup to inherit services from other 
hostgroups, like all->windows->citrix->server and for a few special servertypes 
I would like to prepare the chain with hostgroup and services so that when the 
servers are ready to be monitored everything is prepared and the servers only 
needs to be added to the apropriate hostgroup.

Best regards,

Fredrik Barrud

On 2 nov 2010, at 15.09, Andreas Ericsson <a...@op5.se> wrote:

> On 11/02/2010 02:59 PM, Daniel Wittenberg wrote:
>> Ok, so this was a basic test, I have a GENERIC_PING check and it had the
>> fake host in there and was working fine, as soon as I removed it (so no
>> members defined):
>> 
>> Error: Could not expand hostgroups and/or hosts specified in service
>> (config file '/etc/nagios/objects/services/GENERIC_PING.cfg', starting
>> on line 1)
>> 
>> # cat /etc/nagios/objects/services/GENERIC_PING.cfg
>> define service{
>>         service_description     GENERIC_PING
>>         display_name            Generic ping, typically used for parent
>> hosts
>>         hostgroup_name          GENERIC_PING
>>         use                     generic-service
>>         check_command           check_ping!100.0,20%!500.0,60%
>>         }
>> 
>> define hostgroup{
>>         hostgroup_name          GENERIC_PING
>>         alias                   GENERIC_PING
>> }
>> 
>> So is this a different problem then what you were looking at maybe ?
>> 
> 
> Yes. That's not just an empty hostgroup, but an empty hostgroup to
> which services are assigned. That's supposed to be an error. What's
> the reason for using empty hostgroups to assign services to?
> 
> -- 
> Andreas Ericsson                   andreas.erics...@op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
> 
> Considering the successes of the wars on alcohol, poverty, drugs and
> terror, I think we should give some serious thought to declaring war
> on peace.
> 
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> 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
> 

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
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

Reply via email to