question about time periods

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

question about time periods

Post 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
}
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: question about time periods

Post 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
}
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: question about time periods

Post by benhank »

my next son\daughter will be named scottwilkerson...( ok jk but it's the thought that counts)
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: question about time periods

Post by scottwilkerson »

:oops: :lol: :oops:
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: question about time periods

Post 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
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: question about time periods

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: question about time periods

Post 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?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: question about time periods

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: question about time periods

Post by benhank »

thanks scott
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked