hostgroup with no members - Enhancement
Daniel Wittenberg
daniel.wittenberg.r0ko at statefarm.com
Tue Nov 2 15:16:19 CET 2010
Basically because all the backend files are controlled via puppet, to a
number of nagios servers, but the actual host assignments are controlled
by third-party package. So, the "base" configs about all the services
are pushed to every server, and then the other tool determines the best
"balance" of devices per nagios server. If that makes sense. So
instead of maintaining service and hostgroup configs constantly across
all the servers, I can push out one set of configs, and if there's a
host pushed to that server which needs those configs, they are there and
ready to go.
That help?
Dan
-----Original Message-----
From: Andreas Ericsson [mailto:ae at op5.se]
Sent: Tuesday, November 02, 2010 9:10 AM
To: Daniel Wittenberg
Cc: Nagios Users List
Subject: Re: [Nagios-users] hostgroup with no members - Enhancement
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