Page 1 of 1

question about time periods

Posted: Wed May 02, 2012 10:38 am
by benhank
am I doing this incorrectly? :

i want monitoring to run from 1am to 11am and then from 1200 noon till 11pm
am I doing this incorrectly? :

define timeperiod {
timeperiod_name fenway-cx-380 SPB
alias Epic Backup Testing
thursday 01:00-11:00,12:00-23:00
wednesday 01:00-11:00,12:00-23:00
friday 01:00-11:00,12:00-23:00
saturday 01:00-11:00,12:00-23:00
sunday 01:00-11:00,12:00-23:00
monday 01:00-11:00,12:00-23:00
tuesday 01:00-11:00,12:00-23:00
}

Re: question about time periods

Posted: Wed May 02, 2012 10:47 am
by scottwilkerson
Nope, do it like this

Code: Select all

define timeperiod {
timeperiod_name fenway-cx-380 SPB
alias Epic Backup Testing
thursday 01:00-11:00
thursday 12:00-23:00
wednesday 01:00-11:00
wednesday 12:00-23:00
friday 01:00-11:00
friday 12:00-23:00
saturday 01:00-11:00
saturday 12:00-23:00
sunday 01:00-11:00
sunday 12:00-23:00
monday 01:00-11:00
monday 12:00-23:00
tuesday 01:00-11:00
tuesday 12:00-23:00
}

Re: question about time periods

Posted: Wed May 02, 2012 10:51 am
by benhank
my next son\daughter will be named scottwilkerson...( ok jk but it's the thought that counts)

Re: question about time periods

Posted: Wed May 02, 2012 10:59 am
by scottwilkerson
:oops: :lol: :oops:

Re: question about time periods

Posted: Wed May 02, 2012 11:09 am
by benhank
do I have to do that manually on the cfg file? nagios wont let me inset the same day twice in the timperiod cfg manager

Re: question about time periods

Posted: Wed May 02, 2012 11:56 am
by scottwilkerson
By golly you are right.

You have 2 choices. First would be to add it to a file in
/usr/local/nagios/etc/static

Or, you could install the New CCM Beta which allows multiple entries.
It is available in this post
http://support.nagios.com/forum/viewtop ... 253#p24253

Re: question about time periods

Posted: Wed May 02, 2012 12:37 pm
by benhank
I am going to install the new ccm on my test server (put a beta on production = financial hardship). so your saying to create TWO cfg files or one cfg file and then import it.

Does this mean that nagios can process a file configured the way you said to do it, but the cfg wiz just wont let you do it?

Re: question about time periods

Posted: Wed May 02, 2012 12:50 pm
by scottwilkerson
benhank wrote:so your saying to create TWO cfg files or one cfg file and then import it.
Actually, forget what I said about puting it in the static directory, not the right idea for this. Best to create 1 config and import it.
I just have to say that you may run into issues editing it with the current CCM.

Just one config file, and if you place it in the static directory you
benhank wrote:Does this mean that nagios can process a file configured the way you said to do it, but the cfg wiz just wont let you do it?
Current CCM just doesn't let you do it, but nagios will.

Re: question about time periods

Posted: Wed May 02, 2012 12:54 pm
by benhank
thanks scott