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
Check a service once a day
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Check a service once a day
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
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
.....
}
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Check a service once a day
This looks right to me...
Re: Check a service once a day
Cool, many thanks.