Service linked to hostgroup / notifications
David Fontaine
dav.fontaine at gmail.com
Fri Feb 27 08:12:31 CET 2009
That did the trick, thank you very much!
It's all about the "!" (exclude) thing, use_true_regexp_matching is not
necessary.
David
On Thu, Feb 26, 2009 at 7:31 PM, Marc Powell <marc at ena.com> wrote:
>
> On Feb 26, 2009, at 12:17 PM, David Fontaine wrote:
>
> > Now, the question is : how do I apply the notification period to the
> > service, but for only that one host ?
> >
> > Maybe I have to create a service for each host, so that I can
> > specify different time periods for each service. There must be a way
> > but I can't figure it out. I tried to define the same service on the
> > host I would like not to receive notifications for, but Nagios
> > complains about duplicates.
>
> Untested but I would try defining the specific service with the
> special time_period as you do above when nagios complained about
> duplicates and at the same time, change your more general definition
> to exclude that host. You must have use_true_regexp_matching enabled I
> believe.
>
> define service{
> use generic-service
> hostgroup_name linux-servers
> host_name !myspecialhost
> service_description Time
> check_command check_time!public
> }
>
> --
> Marc
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090227/80aa2c57/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
-------------- next part --------------
_______________________________________________
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