check_period serivces using variables

Marc Powell marc at ena.com
Thu Jul 31 18:58:31 CEST 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Marc Torres
> Sent: Thursday, July 31, 2008 8:40 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_period serivces using variables
> 


> What i would like is that when I change the check_period for the host1
> (rewriting its template value), the check_period of all services
> related to this hosts, get its check_timeperiod changed accordingly
> without affecting the rest of the hosts.

There's no such tie that I am aware of. Hosts and host templates are
entirely separate from services and service templates.

> I'm absolutely lost here, the only thing that comes to my mind is to
> rewrite heach service and set the ckeck_timeperiod accordingly, but I
> don't like this way.

Better to use a template for the services affected then. Services can
inherit from multiple service templates.

--
Marc

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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