per host service notifications

Christian Schneemann cschneemann at suse.de
Thu Apr 3 23:54:48 CEST 2008


Am Donnerstag 03 April 2008 schrieb Dan Newcombe:
> I am upgrading (finally) to version 2 of nagios.  I am trying to keep my
> configs as modular as possible using templating and groups wherever I
> can - the idea being adding a new host should be a one or two line
> change to inherit all needed "stuff".
>
> The problem I'm running into are services and who gets contacted.
> Lets take ping as a perfect example.   I have one definition of the ping
> service, which is the default one.  However, different hosts who
> different contact groups (ie. networkadmins, server admins, Avaya admins
> who should be notified of ping failures to network, server and Avaya
> hosts respectively).
> I am able to define a contact group for a host (though not for a
> hostgroup it appears :( .     However, each service definition has a
> contact group defined in it.    So regardless of the host, the ping
> service is going to use the contactgroup defined in the service.
>
> I realize that I could make the ping service a template, and then define
> a ping service for each contact group, but that seems ugly.
>
> Is there an option I'm missing which would do something along the lines
> of "use the host contactgroup for all services on the host" or something
> like that?   To me that seems the most logical way around this.
That is the same question I sent to the list 3 hours ago. I simple removed the 
contacts and contact_groups from the service definition. It seems that the 
contacts and contact_groups defined for the host are used, But I could also 
be a bug, I haven't tested it for a longer timeperiod, just a short test.

Maybe you could give it a test too and we can combine our experiences? Or 
anyone can advice us to the right manualpage?

Greetings,
 	Christian 
>
> Thanks
>    -Dan
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac
>e _______________________________________________
> 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
-- 
Christian Schneemann
-------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail: cschneemann at suse.de
-------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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