Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5951

Add a function for detecting timezone to zabbix agent

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial 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.

       

       

       

       

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

              Created:
              Updated: