Page 1 of 1
Time Period
Posted: Thu Jun 12, 2014 9:59 am
by BanditBBS
If I put in a time period
will that work, is Nagios smart enough to know I mean Monday 6:30am through Tuesday 3:30am? Or do I need to do
Code: Select all
monday 06:30-11:59
tuesday 00:00-03:30
Thanks!
EDIT: My end goal is to do Monday-6:30am through 3:30am Friday
Re: Time Period
Posted: Thu Jun 12, 2014 10:08 am
by tmcdonald
Neither!
We use a 24-hour clock, but the second one is closer in practice to what you want.
Code: Select all
monday 06:30-24:00
tuesday 00:00-03:30
I think it's better that way because a lot of people will forget to use the 24-hour and shoot themselves in the foot

This just catches some of those backward-in-time errors.
http://nagios.sourceforge.net/docs/3_0/timeperiods.html
Re: Time Period
Posted: Thu Jun 12, 2014 10:10 am
by BanditBBS
tmcdonald wrote:Neither!
We use a 24-hour clock, but the second one is closer in practice to what you want.
Code: Select all
monday 06:30-23:59
tuesday 00:00-03:30
I think it's better that way because a lot of people will forget to use the 24-hour and shoot themselves in the foot

This just catches some of those backward-in-time errors.
DANGIT! I know we use 24 hour! That was just me hurrying

Re: Time Period
Posted: Thu Jun 12, 2014 10:11 am
by BanditBBS
Wait a sec....you edited as I was quoting you! 24:00 is valid instead of 23:59?
Re: Time Period
Posted: Thu Jun 12, 2014 10:19 am
by tmcdonald
Ha! You fell into my trap!
Actually yea, looking at the documentation and timeperiods.cfg you would use 24:00 to end the day and 00:00 to start it, but they are the same time. I think it's really a great metaphor for life.
Re: Time Period
Posted: Thu Jun 12, 2014 10:21 am
by BanditBBS
Alrighty, close her up!