Icinga / icinga-doc

Icinga 1.x documentation in Docbook (EOL)
https://www.icinga.org/download/
4 stars 9 forks source link

[dev.icinga.com #3914] use_timezone documentation is incorrect #390

Closed icinga-migration closed 9 years ago

icinga-migration commented 11 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/3914

Created by cmiskell on 2013-04-02 21:24:39 +00:00

Assignee: ricardo Status: Closed (closed on 2015-05-01 12:45:49 +00:00) Target Version: (none) Last Update: 2015-05-01 12:45:49 +00:00 (in Redmine)

Icinga Version: 1.6.1

use_timezone documentation (both online, and in comments in icinga.cfg) says the format is: use_timezone=Pacific/Auckland

At least on Ubuntu 12.04, Precise Pangolin, the actual required format is: use_timezone=:Pacific/Auckland

The code grabs that value, puts it in the TZ environment variable, then calls "tzset()". The man page for tzset describes the formats, and the third option (a filespecification) says it needs a leading colon.

Without the colon, use_timezone is effectively ignored (no error message, and the system timezone is used). With it, it works.

Some other tools seem to interpret the TZ env var correctly without the colon (e.g. 'date'), so there may be some other magic going on with them.

And yes, before you ask, there's a valid business/client reason for the system timezone to be different from the one that Icinga uses. It pains me, but it's true.

icinga-migration commented 11 years ago

Updated by Wolfgang on 2013-04-04 18:33:52 +00:00

Seems more like a core issue to me.

icinga-migration commented 11 years ago

Updated by Wolfgang on 2013-04-12 17:14:14 +00:00

Maybe somebody from the core team can take a look at it.

icinga-migration commented 11 years ago

Updated by Wolfgang on 2013-04-28 11:12:59 +00:00

commit 95e99d500880bb2c8ddfbc62e97187375665f92a in next (#3914)

icinga-migration commented 9 years ago

Updated by mfriedrich on 2015-05-01 12:45:49 +00:00