Timeperiod in Avialiability Reports

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cavalleri89
Posts: 2
Joined: Wed Feb 11, 2015 7:48 am

Timeperiod in Avialiability Reports

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Timeperiod in Avialiability Reports

Post 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.
cavalleri89
Posts: 2
Joined: Wed Feb 11, 2015 7:48 am

Re: Timeperiod in Avialiability Reports

Post 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 #.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Timeperiod in Avialiability Reports

Post 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?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Timeperiod in Avialiability Reports

Post by lmiltchev »

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!
Locked