Ad Widget

Collapse

Expression macro in email showing *unknown*

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sakoor
    Junior Member
    • Nov 2022
    • 4

    #1

    Expression macro in email showing *unknown*

    I would like to display some data such as uptime, CPU usage , etc in email alert when there is a problem . I am using expression macro {?last\host\key}, but all being shown as *unknown* in the mail alert. I am using version 6.2.3. Any idea on this. Thanks
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    See the documentation for the correct syntax: https://www.zabbix.com/documentation...ression_macros

    Markku

    Comment

    • Sakoor
      Junior Member
      • Nov 2022
      • 4

      #3
      Hi Markku,,
      Thanks for your reply.
      I forgot to mention that it was working well in 6.2.0.
      I'm getting this issue when upgrading to 6.2.3. For example here is the expression I'm using for uptime:
      {? last (/{HOST.HOST}/system.uptime)} ​​
      ​​I tried also​ {?last (//system.uptime)} with no luck
      ​​

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        If I remember correctly, there was some issue in the expression macros lately (but I don't have first-hand experience). See Zabbix release notes and support.zabbix.com for details if needed.

        Note that you are not using the latest version.

        Markku

        Comment

        • Sakoor
          Junior Member
          • Nov 2022
          • 4

          #5
          I just upgraded to 6.2.5 but issue still persisting.

          Comment

          • Markku
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Sep 2018
            • 1781

            #6
            Remove the extra spaces in your expressions, try 6.2.6 and then open a support case if you can detail your information there.

            Markku

            Comment

            • Sakoor
              Junior Member
              • Nov 2022
              • 4

              #7
              In my expression, I verify there is no space. I also upgraded to 6.2.6 but issue still not resolved.
              Could you perhaps share the link where I can raise a support case. Thanks.

              Comment

              • Markku
                Senior Member
                Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
                • Sep 2018
                • 1781

                #8

                Comment

                Working...