Ad Widget

Collapse

Action Options

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Evan.Anderson
    Member
    • Jun 2009
    • 42

    #1

    Action Options

    I'm looking for a list of options for use with actions. Some that I'm aware of are:
    {HOSTNAME}
    {TRIGGER.NAME}
    {TRIGGER.SEVERITY}
    {ITEM.LASTVALUE}
    {ITEM.NAME}

    The reason is that I'd like to get the info of item previous value not last value. So if changes I'd like to be able to see what it was via the action and then also see what it is now with item.lastvalue. So I think I'm looking for something like item.prevvalue. Does this exist?
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    See manual around page 90.

    ITEM.PREVVALUE doesn't seem to exist. But you could file a feature request on support.zabbix.com. Table items has a 'prevvalue' field so the cost should be acceptable I guess.

    By the way did you try something like:

    {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    {{HOSTNAME}:{TRIGGER.KEY}.last(1)}
    {{HOSTNAME}:{TRIGGER.KEY}.last(2)}

    ?

    Comment

    • Evan.Anderson
      Member
      • Jun 2009
      • 42

      #3
      I wasn't able to get this working, I tried what you said, it only displayed the current value last retrieved...Hopefully this will be implemented in future versions.

      Comment

      • Calimero
        Senior Member
        • Nov 2006
        • 481

        #4
        My bad ! The right syntax is:

        {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
        {{HOSTNAME}:{TRIGGER.KEY}.last(#1)}
        {{HOSTNAME}:{TRIGGER.KEY}.last(#2)}
        ...

        Comment

        Working...