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

New global macro/function for current (unix) time

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server (S)

      Description

      Currently, when comparing a given unixtime against the current time, for example when checking an expiration date of a licence or certificate you create the Trigger expression like
      {TEMPLATENAME:itemname.last()} - {TEMPLATENAME:itemname.now()} < 14d
      Using the Item and calling the function now() is somewhat counterintuitive as you use a function on an item with a timestamp value that returns the current time. (It even hard to write down that explanation
      Wouldn't it be nice to have something like a global funktion or macro to access the current unixtime?
      Like unixtime.now() or {UNIXTIME.NOW}

      PS.: Maybe also for other Date/Time formats (UTC/GMT, ect?)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Daywalker Michael Polanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: