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

lack of macro substitution when using proxygroup

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      I have 2 groups of zabbixproxies: (1) "traditional" proxies (not grouped) and (2) Proxy Group.

      When I moved some hosts from (1) to (2) proxies, some of items stopped collecting.

      I've checked it and I see errors in zabbix_agent.log looking like this:
      active check "file.stat[\{$SYSLOG_FILE},14]" is not supported: Special characters "\, ', ", `, *, ?, [, ], {, }, ~, $, !, &, ;, (, ), <, >, |, #, @, 0x0a" are not allowed in the parameters.
      It looks like zabbix_agent is getting "raw" configuration from proxies in proxygroup without any macros substituted.

      After changing the proxy to generic, zabbix_agent receives values translated to strings like /var/log/syslog in the item parameters and everything goes back to normal.

      After returning to the proxygroup, the agent starts executing items with unresolved macros like {$SYSLOG_FILE} again.

      All (proxies, server, agents) are 7.0.3 version.

       

      Steps to reproduce:

      1. create item with {$MACRO} in arguments, define macro in templates (with inheritance)
      2. connect host via Proxy - everything is collecting
      3. move host to Proxy Group - items with macros in parameters are marked with red [i] sign.

      Expected:
      Macros should always be substituted.

            kflorowski Kamil Florowski
            Wojciech Kuk Wojciech Kuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: