Add a function for detecting timezone to zabbix agent

XMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      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.

       

       

       

       

            Assignee:
            Unassigned
            Reporter:
            whosgonna
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: