Page 1 of 1
Timeperiod definition issue
Posted: Wed May 16, 2018 9:34 am
by davide.bonicelli
Hi, with my Nagiosxi 2014R2.6 i wanted to check the cpu with differents warning and critical values while the office are open and closed..so i made 2 different cpu check with different timeperiod..one 07:30-17:30 from monday to friday and another from 17:30-07:30 monday to friday and 24h saturday and sunday..like this:
1.JPG
2.JPG
this is the service with strange result..it only works on saturday and sunday and not from 17:30 to 7:30 in the work days..i did a mistake?
3.JPG
Re: Timeperiod definition issue
Posted: Wed May 16, 2018 9:41 am
by davide.bonicelli
Re: Timeperiod definition issue
Posted: Wed May 16, 2018 12:52 pm
by scottwilkerson
This is because Nagios is not going to understand the 17:30-07:30 time as you expect it, because it actually is crossing 2 days
You are going to need 2 entries per day, like
Code: Select all
monday 17:30-24:00
tuesday 00:00-07:30
tuesday 17:30-24:00
wednesday 00:00-07:30
wednesday 17:30-24:00
....
Re: Timeperiod definition issue
Posted: Wed May 16, 2018 4:57 pm
by davide.bonicelli
thanks scott..what a dumb error!!
Re: Timeperiod definition issue
Posted: Thu May 17, 2018 8:18 am
by scottwilkerson
No problem.
Locking thread