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

New global macro/function for current (unix) time

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • None
    • Server (S)

      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?)

            Unassigned Unassigned
            Daywalker Michael P
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: