Host-based service check period

Francis Dube nagios at optiksecurite.com
Wed Oct 15 19:21:21 CEST 2008


Marc Powell a écrit :
> On Oct 15, 2008, at 10:20 AM, Francis Dube wrote:
>
>   
>> check period. I would like to create a timeperiod for each host and  
>> that
>> all the check for this host (service and host-alive) stop/start
>> according to that timeperiod. Anybody knows a way to do this ?
>>     
>
> Host and services have historically been separate entities for the  
> most part with no inheritance between them at all. With nagios-3,  
> there is some inheritance happening now between a service and it's  
> host but only for three variables (contact_groups,  
> notification_interval and notification_period: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html#implied_inheritance) 
> . check_period isn't an inheritable property and the most direct way  
> to a solution is to simply specify the same check_period name for the  
> services that you are using for the host.
>
> --
> 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
>   
Yeah but if I specify the same check_period name for the service, I have 
to define a service for every host (ex : a check_service_host1, 
check_service_host2, and so on..) because the services running on each 
hosts are running at different hours.

I'll take a look at notification_period inheritance, it may be a good 
work around too.

Thanks for the info.

Francis Dube
R&D
www.optiksecurite.com







-------------------------------------------------------------------------
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