-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
-
None
-
All
It would be useful to have a zabbix agent function that returns the current server timezone. Unlike other timezone related feature requests that I see this is nothing more than something that could be implemented as an item and collected as data. This would be like the equivalent of calling date +"%Z" on a *nix system, or the contents of /etc/timezone. This could be implemented as a parameter to system.localtime:
- system.localtime[tzshort] - Returns the short representation of the time zone (ex. "CST")
- system.localtime[tzlong] - Returns the long representation of the timezone based off of the [tz database|https://en.wikipedia.org/wiki/Tz_database]. (ex. "America/Chicago")
- system.localtime[tzoffset] - The current timezone offset. This would change twice a year for any system observing daylight savings time changes.