Services inherit contacts from host? (3.0b1) - disregard

Brendan Bowden BowdenB at scc-fl.edu
Mon Aug 13 22:22:09 CEST 2007


Umm... disregard this question. Apparently in 3.0 this works automatically by default (very cool) and I just didn't see it happening because of something odd going on with the CGI.

Sorry about that!

Brendan

>>> On 8/13/2007 at 4:14 PM, "Brendan Bowden" <BowdenB at scc-fl.edu> wrote:
> The short version: Is there any way to get services to inherit their > contacts/contact-groups from their parent host?
> > The long version: Let's say I have a server defined as (simple example from > my config):
> > define host{
>         use                     linux-server
>                 host_name               Nagios
>         alias                   Nagios Server
>         address                 192.168.60.68
>         parents                 VMserver
>                 hostgroups              +slm,virtual
>         contact_groups          +slm-admins,virtual-admins
> }
> > define service{
>         use                     http
>         host_name               Nagios
> }
> > I have a server template called 'linux-server' with generic options for > those, including a contact group for people who know how to fix Linux > servers. Additional host/contact groups are sometimes added in the  > individual host definition as shown above. For the services, I have a few > generic services (http,smtp,etc) with check commands, etc defined in each. I > don't really want to define a contact group for smtp-admins, etc. because > there isn't a group of those people in reality; what I want to happen is (for > example) if the SMTP service fails on the Linux host, the Linux admins get > notified.
> > Notifications on host failures work perfectly according to the defined > contact groups. But since there aren't any contacts defined on the service 
> (or service template), no notifications are generated. > I couldn't find anything even close in the macros list to get a list of > contacts or contact groups for a host. Any ideas, without going into a few > hundred service definitions and pasting in the same contact groups as the > host?
> > Thanks,
> 




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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