Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19425

Host macros are not resolved when used in actions

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 5.4.0
    • 5.4.2rc2, 6.0.0alpha1, 6.0 (plan)
    • Server (S)
    • None
    • Centos8, MariaDB
    • Team A
    • Sprint 76 (May 2021), Sprint 77 (Jun 2021)
    • 1

    Description

      Start with a 5.0 instance.

      Create host, and on that host add 2 macros:

       

      Macro name Macro value Macro type
      {$MACRO1} clear clear text
      {$MACRO2} hidden secret text

      Build an item, trigger and make an action based on that trigger.

      Action:

      Force the trigger to go into the problem state, and see what's going on in the event details:

      This can be confirmed by checking that log.log file:

       

      [[email protected] zabbix]# cat log.log  
      The hidden macro: hidden and the clear: clear
      

       

       

      Now build the same setup in a 5.4 instance (or upgrade your 5.0), and check the event details:

       

       

      When opening that log file:

       

      [[email protected] zabbix]# cat log.log
      The hidden macro: {} and the clear: {}
      

       

       

      Expected: The same behaviour as 5.0 since hostmacros aren't that strange to use in your actions.

       

      Attachments

        Activity

          People

            dgoloscapov Dmitrijs Goloscapovs
            brian.baekel Brian van Baekel
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: