Ad Widget

Collapse

Using Last Value Data In Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcarpio
    Member
    • Jun 2008
    • 96

    #1

    Using Last Value Data In Trigger

    I want to be able to use data from any "Item" in the "Trigger" so when I get an alert the data is included in the email alert...

    Let me know if this is possible.. how do I reference a "Latest Data" in a Trigger? For instance my triggers use the variable {HOSTNAME} which sends the name I have configured in zabbix in the alert but lets say I want to see the Used disk space on / when the trigger sends an alert..
  • bcarpio
    Member
    • Jun 2008
    • 96

    #2
    Clarification

    Also I don't want the latest data for the particular trigger that went off.. I want the latest data from a different item...

    Comment

    • Kai-Kai
      Senior Member
      • Apr 2009
      • 142

      #3
      If you want to use the last value receive by an item in an email (in an "action"), you can use : {host:key.func(param)} for example {server1:vfs.fs.size[/,pused].last(0)} should be replaced in the email by the space used in percents on / (if the item is well defined).

      You can see the list of all supported macros and possible uses on pages 90, 91 and 92 of the official PDF documentation.

      I hope it answers your question.

      Comment

      • bcarpio
        Member
        • Jun 2008
        • 96

        #4
        Thanks this is EXACTLY what I wanted, for some reason I was forgetting to add .last(0)

        Comment

        Working...