Ad Widget

Collapse

How to send item data to email when the trigger occurs?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aranel
    Junior Member
    • Aug 2014
    • 3

    #1

    How to send item data to email when the trigger occurs?

    Hi all.
    I have an item called 'top', which shows top 5 processes, sorted by CPU load time.
    And trigger for a CPU high load.
    How i can insert last 'top' item data into email, which sending when trigger occurs?

    When i insert macros {top} or {server:top} into action message, it not shows me value.
    Last edited by aranel; 29-08-2014, 15:14.
  • evertonco
    Member
    • Aug 2014
    • 75

    #2
    Try {ITEM.VALUE}. See this link: Macros supported by location

    Resolved to either:
    1) the latest value of the Nth item in the trigger expression, if used for displaying triggers. In this case, works the same as {ITEM.LASTVALUE}.
    2) the historical (at-the-time-of-event) value of the Nth item in the trigger expression, if used for displaying events and notifications. Will resolve to UNKNOWN if the history value has already been deleted or has never been stored.
    Supported since 1.4.3.

    Comment

    • aranel
      Junior Member
      • Aug 2014
      • 3

      #3
      {TOP.LASTVALUE} - nothing changed.

      Comment

      • Smersh
        Member
        • Jul 2013
        • 49

        #4
        Not {TOP.LASTVALUE}, but {ITEM.LASTVALUE} - this macros expands to last value of the first item in trigger expression. That trigger which causes action.

        Comment

        • aranel
          Junior Member
          • Aug 2014
          • 3

          #5
          Thanks all, problem solved by {servername:top.last(0)} in sending actions.

          Comment

          Working...