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

Add built in macro {ITEM.TIME[0-9]} and {ITEM.LASTTIME[0-9]} that contains the timestamp of the trigger item

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.4.6
    • Frontend (F)
    • None
    • Any Zabbix Version

      The {ITEM.*} built in macros are extremely useful in trigger definitions in particular the trigger description.

       

      We use them in the trigger descriptions like:

                *** Trigger Values ***

                _          _Block Device Statistics - Utilisation %: {ITEM.VALUE1}

                _          _*** Latest Values ***

                _          _Block Device Statistics - Utilisation %: {ITEM.LASTVALUE1}

       

      The above works for sample/count based triggers where you say fire if the last #3 samples are xxx.

       

      However for nodata() where you test whether data has or has not been received it would be nice to be able to display the last item collection time for example:

       

                *** Trigger Values ***

                _          _Zabbix Agent Ping - Response Time: {ITEM.TIME1}

                _          _*** Latest Values ***

                _          {}Zabbix Agent Ping - Response Time{}: {ITEM.LASTTIME1}{_}

       

      The would mean the end user would be able to know exactly when it last collected data.

       

            vmurzins Valdis Murzins
            james.cook000@gmail.com James Cook
            Votes:
            12 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: