How to use contactgroups from Host-Definitions for all services defined for this host
Ingo Lantschner
ingo.lantschner at edvg.at
Thu Apr 27 13:11:56 CEST 2006
Hi all,
is the below answer from Hendrik still state of the art?
Or let it say the other way: Does anyone know, how to (re-)use the
contactgroups-definition from a host for its services? So that all
notificatiuons for this host get to the ones, defined in the contactgroup
statement for this host (regardless if these are service- or
hostnotifications). I would like to avoid defining the service many times
just to fill in the same contactgroups I have alraedy defined for the
host.
TIA Ingo.
From: Hendrik Baecker <b00mer <at> gmx.net>
Subject: Re: Contactgroups : host vs services
Newsgroups: gmane.network.nagios.user
Date: 2005-04-07 20:40:04 GMT (1 year, 2 weeks, 5 days, 8 hours and 25
minutes ago)
Hello,
many choices.... ;)
1) You can define 30 Services for the same check but different
contactgroups = many to type
2) If you have 30 Services and want to deal with a hand full of
contactgroups define a hand full of service templates with this hand
full of contactgroups
3) AFAIK you don't realy apply services to hostgroups... to your hosts
ok, but hostgroups?
The contactgroups in your hostgroup definition will be the target if you
have a host alert but not on a service alert (so under Nagios <2.x)
My suggestion: Read the docs about templates in your object configfiles,
since Nagios 1.1 (I think) you can use them and they are realy usefull.
Hendrik
Vanhee Frederik schrieb:
> Hello,
>
> to explain my problem, I will simplify it.
>
> Let's say I have two hosts : host1 and host2 and on these two hosts 1
> service is checked, for example cpu load
>
> host1 has contactgroup host1admins
> host2 has contactgroup host2admins
>
> service cpu-load is defined in common for the 2 hosts, contactgroup =
> host1admins,host2admins
>
> My problem, when the service cpu-load on host1 is not-ok, I want
> host1admins to be alerted, when the cpu-load on host2 is not-ok, I
> want host2admins to be alerted.
> Is there a way to filter out service-notifications that notifications
> are only sent when to the contactgroups that belong to the host and
> the service ?
>
> Or any other ideas ? The real problem is that my service is defined
> once and applied to 30 hostgroups (with their contactgroups).
>
> Thank in advance,
>
> Frederik
>
Mit freundlichen Grüßen
Ingo Lantschner
IT Consultant
__________________________________________
Elektronische Datenverarbeitung GmbH & Co KG
Hofmühlgasse 3-5, 1060 Wien
Tel.: (+43 1) 599 07 - 1125, Fax: (+43 1) 599 07 - 1366, Mobil: (+43 0)
664 814 63 22
Serviceline Tel.:(+43 1) 599 07 9970
ingo.lantschner at edvg.at, www.edvg.at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060427/ca60c12d/attachment.html>
More information about the Users
mailing list