Patch to add timezone support for timeperiods

Ethan Galstad nagios at nagios.org
Sun Feb 10 17:43:58 CET 2008


John Lemon wrote:
> Hello,
> 
> Below is a simple patch to add support for timezones to timeperiods.
> I see nagios 3  is now at RC2, but will post this patch in the hope
> it may make it in for the final 3 build, but if not, then the next
> version.
> 
> With this patch you can now define a TimeZone for a timeperiod as
> show below, this will also handle any daylight time changes etc if
> the systems tzdata files are current.
> 
> No changes are made to how time is displayed within nagios or the cgi
> problems, the timezone check is only done within the timeperiod
> checks. This way all times displayed are still using the currently
> defined Timezone setting for the CGI's or as defined in/for the
> Nagios configuration.
> [snip]

Although its not exactly what you're looking for, I would suggest using
the use_timeperiod option to accomplish this (on a program-wide basis):

http://nagios.sourceforge.net/docs/3_0/configmain.html#use_timezone

I'll keep the patches you sent for consideration in Nagios 4.



Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list