[Nagiosplug-help] Using a hostgroup as the host object in service definitions
jeff.vier at tradingtechnologies.com
Wed Jun 30 13:02:05 CEST 2004
I forgot to say, btw, that you can have both host_name and
hostgroup_name in the same definition.
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.
> 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
> ::: 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