[Nagiosplug-help] Using a hostgroup as the host object in service definitions

jeff vier jeff.vier at tradingtechnologies.com
Wed Jun 30 12:50:03 CEST 2004

host_name	server1,server2,server3


hostgroup_name	group1


On Wed, 2004-06-30 at 15:11 -0400, Mike Feetham wrote:
> I've searched around to see if this is somehow possible, but can't seem to
> find anything.  We have several hostgroups that contain servers/equipment
> for various teams within our IT department.
> I would like to set up a service (let's use a basic PING for example) that
> will run for each host within a hostgroup.  I know you can specify "*" in
> the hostname for a service, and it will run that service check for every
> host object.  But this means the same contact group(s) gets alerted for
> every host.
> Let's say we have a UNIX hostgroup, an NT hostgroup and a NETWORK hostgroup.
> I would like to create one service called "PING-UNIX" that will check each
> host in the UNIX hostgroup and notify the UNIX contact group if there are
> any alerts.  Then another service would do the same for the NT group, and a
> third for the NETWORK group.
> I have tried simply using the hostgroup in the host_name field, but that
> doesn't work.
> Can anyone tell me if what I'm trying to do is possible?  Or is there an
> easy way to script this?
> We end up adding and removing hosts to groups on a weekly basis, and I would
> like to avoid constantly updating services as well.
> TIA,
> Mike
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

More information about the Help mailing list