checking service once a day
Silver Salonen
silver at serverock.ee
Fri Aug 12 17:09:37 CEST 2011
On 12.08.2011 17:54, Mike Guthrie wrote:
> Silver Salonen wrote:
>> On 12.08.2011 12:37, Silver Salonen wrote:
>>> On 12.08.2011 11:25, Jim Avery wrote:
>>>> On 12 August 2011 08:36, Silver Salonen<silver at serverock.ee> wrote:
>>>>
>>>>> Hello.
>>>>>
>>>>> I want to check a service only once a day. So I tried this configuration:
>>>>>
>>>>> define timeperiod {
>>>>> timeperiod_name once-a-day
>>>>> alias On mornings
>>>>> monday 08:00-08:30
>>>>> tuesday 08:00-08:30
>>>>> wednesday 08:00-08:30
>>>>> thursday 08:00-08:30
>>>>> friday 08:00-08:30
>>>>> saturday 08:00-08:30
>>>>> sunday 08:00-08:30
>>>>> }
>>>>>
>>>>> define service {
>>>>> use generic-service
>>>>> check_period once-a-day
>>>>> normal_check_interval 1440 ; 24 hours
>>>>> ...
>>>>> }
>>>>>
> Do you need the check to run between 8-8:30, or just every 24 hours?
> Your check_interval will not exceed the maximum check spread that's in
> the main nagios.cfg file. I would try either setting the timeperiod for
> the check *or* setting the wide check interval.
Yes, I wanted the checks to be run between 8:00 and 8:30. But as I
woohooed in the previous e-mail, it seems I got it working :)
--
Silver
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
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