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
Timeperiod in Avialiability Reports
Re: Timeperiod in Avialiability Reports
Can you verify your config and make sure it's solid with:
Also, please post the output of the following:
Make sure it's not prepended with a # and that it is the correct file that you are modifying.
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgCode: Select all
grep timeperiods /usr/local/nagios/etc/nagios.cfg-
cavalleri89
- Posts: 2
- Joined: Wed Feb 11, 2015 7:48 am
Re: Timeperiod in Avialiability Reports
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:
The file being modified is the same and has not #.
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.cfgRe: Timeperiod in Avialiability Reports
I found an answer in an older thread and verified that it is correct: http://support.nagios.com/forum/viewtop ... 49&p=52498
Your time-period configuration looks fine. Are you having problems after you select the drop down on the Reporting page?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.
Re: Timeperiod in Avialiability Reports
Are you getting the same results if you create a "24 hours" and "workhours" availability report? Can you compare the two?
Be sure to check out our Knowledgebase for helpful articles and solutions!