hostgroup with no members - Enhancement

Andreas Ericsson ae at op5.se
Tue Nov 2 15:09:57 CET 2010


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.ericsson at 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 at 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





More information about the Users mailing list