From: Mike Feetham <mike.feetham@pe...> - 2004-06-30 19:43:04
If only I had a time machine. About 10 seconds after I hit the send =
I realized I had been using host_name instead of hostgroup_name.
Thanks also to everyone else who is currently responding with "Hey =
From: Charles Ballowe [mailto:hangman@...]=20
Sent: Wednesday, June 30, 2004 3:28 PM
To: Mike Feetham
Subject: Re: [Nagiosplug-help] Using a hostgroup as the host object in
you don't want to use the host_name parameter in the service definition, =
want to use the hostgroup_name parameter.
Hostgroups specified under the hostgroup_name will get expanded and the
hosts specified in host_name will be added to the list so you can add
some one-off hosts to these services if you want.
hope that helps
On Wed, Jun 30, 2004 at 03:11:17PM -0400, Mike Feetham wrote:
> I've searched around to see if this is somehow possible, but can't =
> find anything. We have several hostgroups that contain =
> for various teams within our IT department.
> I would like to set up a service (let's use a basic PING for example) =
> will run for each host within a hostgroup. I know you can specify "*" =
> the hostname for a service, and it will run that service check for =
> host object. But this means the same contact group(s) gets alerted =
> every host.
> Let's say we have a UNIX hostgroup, an NT hostgroup and a NETWORK
> I would like to create one service called "PING-UNIX" that will check =
> host in the UNIX hostgroup and notify the UNIX contact group if there =
> any alerts. Then another service would do the same for the NT group, =
> third for the NETWORK group.
> I have tried simply using the hostgroup in the host_name field, but =
> doesn't work.
> Can anyone tell me if what I'm trying to do is possible? Or is there =
> easy way to script this?
> We end up adding and removing hosts to groups on a weekly basis, and I
> 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 -=20
> digital self defense, top technical experts, no vendor pitches,=20
> unmatched networking opportunities. Visit http://www.blackhat.com
> Nagiosplug-help mailing list
> ::: Please include plugins version (-v) and OS when reporting any =
> ::: Messages without supporting info will risk being sent to /dev/null