Page 1 of 1

Check a service once a day

Posted: Wed Oct 24, 2012 9:25 am
by TSCAdmin
Hi,

We need to check the status of a service once a day. The service needs to be checked at 8AM.

We could use the check interval at 1440 if the timing was not a matter but in this case the timing is important.

Could you please provide an example on how to proceed with this?

Thanks

Re: Check a service once a day

Posted: Wed Oct 24, 2012 10:32 am
by scottwilkerson
You would want to create a timeperiod in the CCM with a short window of time (that you want the check to run) and then in the CCM modify the service -> Check Settings Tab -> Check Period to equal the time period you created.

Re: Check a service once a day

Posted: Wed Oct 24, 2012 12:00 pm
by TSCAdmin
I have done something like this and it seems to work. What are your thoughts on this?

Code: Select all

define timeperiod {
        timeperiod_name once-daily-3am
        alias           Run everyday at 3AM
        monday          03:00-03:20
        tuesday         03:00-03:20
        wednesday       03:00-03:20
        thursday        03:00-03:20
        friday          03:00-03:20
        saturday        03:00-03:20
        sunday          03:00-03:20
        }

Code: Select all

define service {
       .....
       check_interval                           1440
       retry_interval                           2
       check_period                             once-daily-3am
       notification_interval                    1440
       .....
}

Re: Check a service once a day

Posted: Wed Oct 24, 2012 12:04 pm
by scottwilkerson
This looks right to me...

Re: Check a service once a day

Posted: Wed Oct 24, 2012 12:12 pm
by TSCAdmin
Cool, many thanks.