ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-1600

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

    Details

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

      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

        Vitaly Zhuravlev created issue -
        richlv made changes -
        Field Original Value New Value
        Assignee Alexander Vladishev [ sasha ]
        richlv made changes -
        Fix Version/s 1.8 [ 10049 ]
        Alexei Vladishev made changes -
        Assignee Alexander Vladishev [ sasha ]
        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
        Alexander Vladishev made changes -
        Link This issue is duplicated by NTP-295 [ NTP-295 ]
        Alexander Vladishev made changes -
        Assignee Alexander Vladishev [ sasha ]
        Alexander Vladishev made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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
        Alexander Vladishev made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Assignee Alexander Vladishev [ sasha ]
        Resolution Fixed [ 1 ]
        Alexander Vladishev made changes -
        Affects Version/s 1.8.3 [ 10063 ]
        Fix Version/s 1.8.4 [ 10081 ]
        Alexander Vladishev made changes -
        Assignee Aleksandrs Saveljevs [ asaveljevs ]
        Aleksandrs Saveljevs made changes -
        Status Resolved [ 5 ] Tested [ 10002 ]
        Assignee Aleksandrs Saveljevs [ asaveljevs ] Alexander Vladishev [ sasha ]
        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.
        Alexander Vladishev made changes -
        Status Tested [ 10002 ] Closed [ 6 ]
        Assignee Alexander Vladishev [ sasha ]
        Alexei Vladishev made changes -
        Workflow Zabbix workflow [ 16700 ] Zabbix workflow - new [ 42901 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Vitaly Zhuravlev
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: