Time Period

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Time Period

Post by BanditBBS »

If I put in a time period

Code: Select all

monday 06:30-03:30
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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Time Period

Post 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
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Time Period

Post 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 :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Time Period

Post by BanditBBS »

Wait a sec....you edited as I was quoting you! 24:00 is valid instead of 23:59?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Time Period

Post 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.
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Time Period

Post by BanditBBS »

Alrighty, close her up!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked