[ZBX-1600] ( Show value "throw map" ) doesn't work with {ITEM.VALUE1} macro in email alerts Created: 2009 Dec 23  Updated: 2017 May 30  Resolved: 2010 Nov 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.3
Fix Version/s: 1.8.4

Type: Incident report Priority: Major
Reporter: Vitaly Zhuravlev Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Hi, I love this new macro

{ITEM.VALUE1} , this is very useful, especially for log alerts, however, it doesn't "throw map" when sent by email:

Example:

###############Action with {ITEM.VALUE1}

Trigger:

{TRIGGER.NAME}
Status: {STATUS}
Value: {ITEM.VALUE1}

Time:{EVENT.TIME}
Date:{DATE}
Host: {HOSTNAME}


############Message with {ITEM.VALUE1}
Trigger:The host has gone offline!
Status: PROBLEM
Value: 0

Time:06:06:38
Date:2009.12.04
Host: grafika


###########COMPARE with {ITEM.LASTVALUE}


###############Action with {ITEM.VALUE1}

Trigger:{TRIGGER.NAME}

Status:

{STATUS}

Value:

{ITEM.LASTVALUE}

Time:{EVENT.TIME}
Date:{DATE}
Host: {HOSTNAME}


############Message with {ITEM.LASTVALUE}

Trigger:The host has gone offline!
Status: PROBLEM
Value: Down (0)

Time:06:06:38
Date:2009.12.04
Host: grafika



 Comments   
Comment by Oleksii Zagorskyi [ 2010 Oct 26 ]

my post on forum (RU) with more detail analysis
http://www.zabbix.com/forum/showpost.php?p=73665&postcount=8

Comment by Oleksii Zagorskyi [ 2010 Nov 11 ]

Although this does not apply to this issue, but I wanted to ask: can you add support for value mapping of Float and Str, not only Integer?
And so it now works partially by server side, but it is impossible to add new value mapping of Float or Str, the web interface allows to enter only Integer.
Why? For example NUT returns UPS status as fixed string (see below).
It would be useful to convert them.

Returned UPS status - Description
OL - On line (mains is present)
OB - On battery (mains is not present)
LB - Low battery
RB - The battery needs to be replaced
CHRG - The battery is charging
DISCHRG - The battery is discharging (inverter is providing load power)
BYPASS - UPS bypass circuit is active - no battery protection is available
CAL - UPS is currently performing runtime calibration (on battery)
OFF - UPS is offline and is not supplying power to the load
OVER - UPS is overloaded
TRIM - UPS is trimming incoming voltage (called “buck” in some hardware)
BOOST - UPS is boosting incoming voltage

Comment by Alexander Vladishev [ 2010 Nov 11 ]

Available in development branch svn://svn.zabbix.com/branches/dev/ZBX-1600

Comment by Aleksandrs Saveljevs [ 2010 Nov 11 ]

Oleksiy, could you please add your thoughts about non-integer values to ZBX-3178? The problem described in this issue is resolved and the issue will be closed soon.

Comment by Oleksii Zagorskyi [ 2010 Nov 11 ]

I knew that it was not right, but wrote here because I gave here a link to the forum
I added my thoughts to ZBX-3178.

Comment by Aleksandrs Saveljevs [ 2010 Nov 12 ]

Thanks!

Comment by Alexander Vladishev [ 2010 Nov 12 ]

Fixed in version pre1.8.4, r15423.

Generated at Fri Apr 26 03:28:52 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.