Ad Widget

Collapse

Item values for a time period in Email notification

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vicious
    Junior Member
    • May 2020
    • 1

    #1

    Item values for a time period in Email notification

    Hi everyone,

    Please suggest if\how can I implement the following.

    I have text-type item.
    I want to put that item's value for a period of time (let's say, for last 10 minutes) into email notifications.

    Thanks in advance.
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    dirty trick - use some last values in trigger expression and then put {ITEM.VALUE1-9} to message template
    Sincerely yours,
    Aleksey

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      Read up on what macros can be used in different locations: https://www.zabbix.com/documentation...ed_by_location

      For your case, pay particular attention to {ITEM.VALUE<1-9>} and especially {ITEM.LASTVALUE<1-9>}. I don't actually think either of these are quite what you want (though maybe they will work for you), but if you read the comments about the macro being an alias to a macro with a .last() function and then scroll to the bottom of the macro list, you'll see you might be able to use something like

      {{HOST.HOST}:{ITEM.KEY}.last(#2)}
      {{HOST.HOST}:{ITEM.KEY}.last()}

      etc.

      Comment

      Working...