[Nagiosplug-help] Using a hostgroup as the host object in service definitions
mike.feetham at percepta-crm.com
Wed Jun 30 12:44:01 CEST 2004
If only I had a time machine. About 10 seconds after I hit the send button
I realized I had been using host_name instead of hostgroup_name.
Thanks also to everyone else who is currently responding with "Hey idiot!!
From: Charles Ballowe [mailto:hangman at steelballs.org]
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, you
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 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
> 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
> 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
> 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