Services inherit contacts from host? (3.0b1)
Brendan Bowden
BowdenB at scc-fl.edu
Mon Aug 13 22:14:58 CEST 2007
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,
--
Brendan Bowden
Computing and Telecom Services
Seminole Community College
407.708.2753
-------------------------------------------------------------------------
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