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

Add new macro {FUNCTION.LASTVALUE}

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • Server (S)

      A lot of triggers that i use have functions other then "last", and notifications like "Average load is {ITEM.LASTVALUE}" don't make sense when trigger actually uses "avg" function. I can't use {host:key.func(param)}, because if i will change a trigger i might forget to change notifications.

      So i've written small and dirty patch that adds this macro. Currently it uses time(NULL) for function evaluation, any suggestions on how i can extract triggers "lastchange" that is usually used for function evaluation are welcome.

      I am not experienced in low level programming and i've already put this in production, so any code analysis would be very welcome.

        1. function_lastvalue.patch
          5 kB
          Евгений Петров

            Unassigned Unassigned
            jevgenyi.petrov Евгений Петров
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: