ZABBIX BUGS AND ISSUES

( Show value "throw map" ) doesn't work with {ITEM.VALUE1} macro in email alerts

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.3
  • Fix Version/s: 1.8.4
  • Component/s: Server (S)
  • Labels:
    None
  • Zabbix ID:
    NA

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





Activity

Hide
Oleksiy Zagorskyi added a comment -

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

Show
Oleksiy Zagorskyi added a comment - my post on forum (RU) with more detail analysis http://www.zabbix.com/forum/showpost.php?p=73665&postcount=8
Hide
Oleksiy Zagorskyi added a comment - - edited

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

Show
Oleksiy Zagorskyi added a comment - - edited 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
Hide
Alexander Vladishev added a comment -

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

Show
Alexander Vladishev added a comment - Available in development branch svn://svn.zabbix.com/branches/dev/ZBX-1600
Hide
Aleksandrs Saveljevs added a comment - - edited

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.

Show
Aleksandrs Saveljevs added a comment - - edited 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.
Hide
Oleksiy Zagorskyi added a comment -

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.

Show
Oleksiy Zagorskyi added a comment - 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.
Hide
Aleksandrs Saveljevs added a comment -

Thanks!

Show
Aleksandrs Saveljevs added a comment - Thanks!
Hide
Alexander Vladishev added a comment -

Fixed in version pre1.8.4, r15423.

Show
Alexander Vladishev added a comment - Fixed in version pre1.8.4, r15423.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: