Page 1 of 1
Timeperiod in Avialiability Reports
Posted: Thu Mar 12, 2015 3:14 pm
by cavalleri89
Hi All,
I use FAN with Nagios Core 3.4.4 and I am with the following problem:
The timeperiod is not being respected when generating the report of avaliability. I select workhours but the report is generated using 24 hours.
below is the configuration of timeperiod:
define timeperiod{
timeperiod_name workhours
alias workhours
monday 09:00-18:00
tuesday 09:00-18:00
wednesday 09:00-18:00
thursday 09:00-18:00
friday 09:00-18:00
}
Anyone have any ideas?
PS.: sorry for my english
Re: Timeperiod in Avialiability Reports
Posted: Fri Mar 13, 2015 12:52 pm
by ssax
Can you verify your config and make sure it's solid with:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Also, please post the output of the following:
Code: Select all
grep timeperiods /usr/local/nagios/etc/nagios.cfg
Make sure it's not prepended with a # and that it is the correct file that you are modifying.
Re: Timeperiod in Avialiability Reports
Posted: Fri Mar 13, 2015 2:07 pm
by cavalleri89
Thanks for reply.
I checked my settings and the output was as follows:
Total Warnings: 0
Total Errors: 0
The second output yielded the following result:
Code: Select all
cfg_file=/etc/nagios/timeperiods.cfg
The file being modified is the same and has not #.
Re: Timeperiod in Avialiability Reports
Posted: Mon Mar 16, 2015 1:08 pm
by jolson
I found an answer in an older thread and verified that it is correct:
http://support.nagios.com/forum/viewtop ... 49&p=52498
This is not actually a problem with reporting or timeperiods. We do not presently include the functionality to define a timeperiod and use it to include or exclude data within a report. The reporting functionality only works with the timeperiods defined via the drop down boxes on the reporting page.
Your time-period configuration looks fine. Are you having problems after you select the drop down on the Reporting page?
Re: Timeperiod in Avialiability Reports
Posted: Mon Mar 16, 2015 1:16 pm
by lmiltchev
Are you getting the same results if you create a "24 hours" and "workhours" availability report? Can you compare the two?