PDA

View Full Version : feature request: macro for 'friendly' value


mconigliaro
09-02-2006, 18:38
im currently displaying the last value in my actions with a macro like this:

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

this works fine for items where the raw value is human-readable (eg: cpu utilization), but its not so nice for items like service_state, ping, and status, where the raw value doesnt make any sense to the average person. the same goes for many snmp values.

i think it would be really nice if we had a way to display a 'friendly' value for these types of items. for example, instead of returning a raw value of '2' for the 'ping' item, we might return the string 'unreachable' instead.

i imagine this could be implemented fairly easily by adding an additional database table for the translations.

YuriV
09-02-2006, 18:56
Yes please, i second this request.

I dont much like my triggers being "on" and "off" when they are really reachable and unreachable....

YuriV
09-02-2006, 22:23
As well the addition of "IF" statements would be VERY useful.

In fact the removal of triggers and actions in lieu if then type alarms would provide some additional functionality that i think is lacking in the triggers.

I say this because i currently have to write two triggers. one for a host being down and one for a host being up. Because essentially i cant discern which is which on a state change sometimes.