Ad Widget

Collapse

Items Value with value mapping on e-mail notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Segovia
    Junior Member
    • Jan 2025
    • 1

    #1

    Items Value with value mapping on e-mail notifications

    Hello,

    After creating a new machine with Zabbix 7.0.3, I found out that some of the values aren't shown in the alert e-mails I created on zabbix 4.2.

    For example, with
    Code:
    Temperature: {{HOST.HOST}:temperature.last()}
    with zabbix 4.2 I received the text
    Code:
    Temperature: 23ºC
    on e-mail.

    With zabbix 7.0 I receive the text:

    Code:
    Temperature: {Basement:temperature.last()}
    After some (a lot...) of reading I found out that in zabbix 7.0 I can partially get what I want. with:

    Code:
    Temperature: {?last(/{HOST.HOST}/temperature)}
    I get on e-mail:

    Code:
    Temperature: 23
    The difference is the units shown and the value mapping. I can´t pass that data to the e-mail, and although I can manually insert "ºC" on e-mail template, the value mapping is essential for me, not on this item but in others. For example, in the variable "mode" the value "1" is heating, the value "2" is cooling, etc.

    The closest I got to solve this was this issue on a zabbix add-on on github, witch was not solved.

    Hello, do u have any idea why it does not show the correct information in the template? Did also read that it should be HOST.HOST in Zabbix but it doesnt work


    The objective with all this is to send all the actual data of the host when there is an active problem. the {ITEM.LASTVALUE} only refers to the item on the trigger, and I want all shown on the e-mail body.

    Any help?

    Thanks in advance.

    Zabbix 7.0.3 on debian 12.
Working...