-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 7.0.31, 7.0.32
-
Component/s: Proxy (P), Server (S)
-
None
After a proxy of a proxy group goes offline and its hosts are later reassigned back to it, the proxy sometimes stops resolving user macros inherited from templates. It then sends raw item keys/parameters to agents (active checks) and uses them for its own checks.
Examples of affected keys (macros defined on templates, linked through nested templates):
system.run[{$RAMZABBIX}]
web.certificate.get[{$WSUS.FQDN},{$WSUS.PORT}]
perf_counter_en["\{$WSUS.ASPNET.OBJECT}\Requests Queued"]
vfs.fs.size[{$WSUS.CONTENT.DRIVE},pfree]
HTTP agent items with a user macro in the URL
Resulting errors:
Value of type "string" is not suitable for value type "Numeric (float)". Value "'{$RAMZABBIX}' is not recognized as an internal or external command, operable program or batch file."
Invalid parameters: port must be integer and must be between 0 and 65535.
Failed to get counter for path "\\{$WSUS.ASPNET.OBJECT}\\Requests Queued"
URL using bad/illegal format
Invalid update interval "{$...}"
- "Test" from the frontend works (macros are resolved by the server).
- The proxy stays online and logs no error.
- The proxy's local database is correct: host<->template links and template macros are present (checked on the proxy DB during a previous occurrence).
- zabbix_proxy -R config_cache_reload does not help, nor does editing the macros.
- Only a restart of zabbix-proxy fixes it. Moving the host to a standalone proxy also works around it.
This looks like ZBX-25413 (and its duplicate ZBX-25283), marked as fixed in 7.0.17. The difference: in ZBX-25413 the issue appeared as soon as a host was moved into a proxy group. Here it only happens after a failover and the reassignment back, and not every time. Either the fix is incomplete or the reassignment path regressed.
Timeline of 2026-11-25 (server log + internal events, CET)
| Time | Event |
|---|---|
| 10:28:25 | proxy_A goes offline |
| 10:28:37 | proxy_B receives full config (3.15 MB): hosts reassigned to B |
| 10:29:30 | proxy_A back online |
| 10:40:17 | proxy_A receives full config (3.15 MB): hosts reassigned back to A -> macros OK |
| 11:08:30 | proxy_A goes offline again |
| 11:08:52 | proxy_B receives full config (3.17 MB): hosts reassigned to B |
| 11:10:10 | proxy_A back online |
| 11:20:35 | proxy_A receives full config (3.16 MB): hosts reassigned back to A |
| 11:21:09 | first unresolved template macro on a host of proxy_A, then every affected item on all hosts of proxy_A within one 5 min cycle (17 hosts) |
| 11:47:24 | zabbix-proxy restarted on proxy_A (full config received) -> all items recover by 11:51 |
Hosts assigned to proxy_B were never affected. The anonymized server log excerpt is attached.
Previous occurrences (7.0.29)
- 2026-11-14: after repeated proxy disconnections (network incident), a proxy in a group stopped resolving template macros for 4 days until restarted. Affected items worked whenever their hosts were temporarily moved to the twin proxy, and failed again when moved back.
- 2026-11-18: same pattern on another proxy group after a network incident, about 1h30 until proxy restart.
Steps to reproduce (best effort, not deterministic)
- Create a template with an item using a user macro in its key (e.g. system.run[...] or net.tcp.service[tcp,,PORT_MACRO]), macro defined on the template; link it through nested templates to several hosts.
- Put the hosts in a proxy group of 2 proxies (failover delay 1m, min online 1).
- Make proxy_A unable to reach the server for more than the failover delay, then restore it.
- Wait for the hosts to be reassigned back to proxy_A (~10 min).
- Check item state. Repeat steps 3-5: in our case 1 move-back out of 2 failed.
Result
After some move-backs, items on proxy_A are executed with unresolved user macros until zabbix-proxy is restarted.
Expected
Template user macros are always resolved, whatever the host reassignment history.
We can provide the proxy log (DebugLevel 3), template export and the list of affected items if needed.