Page 1 of 1

Timeperiods for specific hours

Posted: Tue Jan 07, 2020 12:22 pm
by fraguillen
Good morning, happy new year.
How can I specify a time period that is at certain times and not at a range? For example:
1:00
2:00
3:00
4:00
And so until 24:00
Best regards...

Re: Timeperiods for specific hours

Posted: Tue Jan 07, 2020 1:10 pm
by lmiltchev
What exactly are you trying to accomplish? Do you want your hosts/services to be checked only once per hour? If this is the case, you can set your check_interval to 60 min, and use 24x7 time period. The checks may not be executed exactly at 1:00, 2:00, etc. but will be spread an hour apart.

Note: you cannot specify just a time, e.g. "1:00" in the time period. It is supposed to be a, well, time period (range). See what a valid time period syntax looks like here:

https://assets.nagios.com/downloads/nag ... timeperiod