Contact Groups in hosts.cfg and services.cfg

Todd Barbera todd_barbera at wgbh.org
Sun Jan 15 23:18:26 CET 2006


Hi,

I'm running Nagios 2.0rc2 and I have a question as to the way contact_groups
are implemented. Both the hosts.cfg (or equivalents) and the services.cfg
require the contact_groups definition. Perhaps I am thinking about this
wrong, but wouldn't it be better to make contact_groups optional in the
services.cfg? The reason being is that if the services.cfg inherits the
contact_groups from the hosts.cfg definitions, then you wouldn't need to
define multiple services running the same checks but with different
contact_group definitions. For instance, I want check_icmp to run against
all hosts, however, I want to break up the notifications to various groups,
I'd have to have multiple entries for the check_icmp in my services.cfg file
to accommodate this. This wouldn't be necessary if the contact_groups were
inherited from the hosts definitions. Am I correct in my assumptions? If
not, how can I achieve a single definition with different contact_groups? If
so, does it make sense to have contact_groups become an optional field or
are there pitfalls that I am not considering?


Regards,


Todd



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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