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

Add new macro {FUNCTION.LASTVALUE}

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: