Contacts and notifications - services
Mathieu Gagné
mgagne at iweb.com
Thu Jan 29 21:32:18 CET 2009
Hi,
Ugo Bellavance wrote:
> Mathieu Gagné a écrit :
>> Why don't you add the contactgroup "dbas" and remove "sysadmins" from
>> the "load" service definition for all database servers?
>
> Because the load service is defined for all my linux servers. If I
> remove sysadmin from the "load" service definition, I won't receive
> notifications for my proxy server, my backup server, etc...
>
> I hope I won't have to duplicate all of my common tests...
>
Do you have a "monolithic" service definition? (ie. all hosts specifed
in host_name)
If you want to do it with Nagios2, you will probably have to create a
second service definition and move all database servers in this one.
Nagios3 supports the use of hostgroups in service definition. This means
you would be able to create a hostgroup named "database-servers" and
define a common service for each hostgroup's members.
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service
hostgroup_name: This directive is used to specify the short name(s) of
the hostgroup(s) that the service "runs" on or is associated with.
Multiple hostgroups should be separated by commas. The hostgroup_name
may be used instead of, or in addition to, the host_name directive.
--
Mathieu
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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