Add new macro {FUNCTION.LASTVALUE}

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: