Page 1 of 1

Re: [Nagios-devel] Patch to add timezone support for timeperiods

Posted: Sun Feb 10, 2008 8:44 am
by Guest
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/ ... e_timezone

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



Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]