Ad Widget

Collapse

macros stopped to substitute in the agent (7)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wojkuk
    Junior Member
    • Sep 2024
    • 3

    #1

    macros stopped to substitute in the agent (7)

    Hello,

    Some of the items on my hosts stopped working - the error "special characters .... are not allowed in the parameters" started appearing i zabbix_agent logs.
    it's strange because it worked before and looking in the GUI I see that the macros still exist (or are inhrerited from the template).

    Now I see errors in zabbix_agent.log looking like this:
    Code:
    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 without any macros substituted.

    A week earlier we migrated the entire infrastructure to zabbix7 and proxygroups.
    The problem appeared after several days - as if only after some discovery, or previous items expired, or some failover on proxygroups.
  • wojkuk
    Junior Member
    • Sep 2024
    • 3

    #2
    Additional findings:
    After changing the proxy to generic, the macros are translated to strings like /var/log/syslog in the item parameters and everything goes back to normal.
    But after returning to the proxygroup, the agent starts executing items with unresolved macros like {$SYSLOG_FILE} again.

    I checked mysql databases of both proxies, and all entries (items, hosts, hostmacro, host_template) are identical.
    It looks like "generic" zabbix_proxy resolves macros when sending config to agent, and proxygroup sends raw config, without lookup to hostmacros.

    Both proxies are 7.0.3 Revision d93ce022627
    Last edited by wojkuk; 20-09-2024, 12:56.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      You can submit a bug report at https://support.zabbix.com/projects/ZBX/issues/ to get it confirmed and fixed.

      Comment

      • wojkuk
        Junior Member
        • Sep 2024
        • 3

        #4

        Comment

        Working...