Timeperiods date format wrong?


#1

Timeperiod holiday is defined as mentioned in the documentation:

define timeperiod{ timeperiod_name holidays alias holidays january 1 00:00-24:00 ; New Year's Day 2008-03-23 00:00-24:00 ; Easter (2008) 2009-04-12 00:00-24:00 ; Easter (2009) monday -1 may 00:00-24:00 ; Memorial Day (Last Monday in May) july 4 00:00-24:00 ; Independence Day monday 1 september 00:00-24:00 ; Labor Day (1st Monday in September) thursday 4 november 00:00-24:00 ; Thanksgiving (4th Thursday in November) december 25 00:00-24:00 ; Christmas december 31 17:00-24:00 ; New Year's Eve (5pm onwards) }

The dates for Easter are presented wrong (in the web-interface and in the object-cache files):

2008-00-23 00:00:00 - 24:00:00
2009-01-12 00:00:00 - 24:00:00

Anyone else with the same errors, possible workarounds ?


#2

Has anyone solved this one? I was attempting to use the “alternating weeks” feature as shown in the on-call rotation docs, and it consistently shows two months earlier for … I was doing this with an external shell script with v1 and v2, and wanted to use this if it works in v3…

For example:

2008-3-10 / 14 07:00-19:00 ; Alternating Wednesday

But will show up as 2008-1-10… I don’t read code well enough to see if there is an issue in config.c, so I don’t know if this is just in displaying the config, or if there are other issues in other parts of nagios that need fixing? I’ve got some time before this becomes critical, and I do have the old shell scripts that are external to nagios that work just fine that I could always use again? It would just have been nice to have this feature working.


#3

ok, march 10 is not a wednesday, as I originally started out with trying sept. 10 and showing july 10, but I wanted to eliminate any issues with a “future” time (since today was only sept. 9th)… also, if I move it back to jan, the date via config.cgi?type=timeperiods shows 2008–1-10 (-1?), and why I am thinking it is taking away 2 from the month?

I am using version 3.0.3