PDA

View Full Version : Action Options


Evan.Anderson
10-08-2009, 18:17
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
10-08-2009, 18:26
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)}

?

Evan.Anderson
13-08-2009, 13:17
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.

Calimero
13-08-2009, 13:34
My bad ! The right syntax is:

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