-
Incident report
-
Resolution: Won't fix
-
Minor
-
None
-
2.0.5
-
Linux, centos, x64
When using multiple macros in an item prototype with LLD, it results in multiple requests for each macro leaving the other macro(s) undefined and resulting in errors..
In example, I setup a custom LLD for accounts, it grabs the IP and DNS (domain name) among others, and then an item prototype is setup to query the DNS server for the given zone
Item prototype: net.dns[
{#IP},{#DNS},A,,]However, this results in the following requests, I set it up for active agent to get the logging...
The active checks are requested as...
"key":"net.dns[123.23.12.1,{#DNS},A,,]",
"delay":30,
"lastlogsize":0,
"mtime":0},
{
"key":"net.dns[{#IP}
,domain.com,A,,]",
"delay":30,
"lastlogsize":0,
"mtime":0},
The results...
{
"host":"****************",
"key":"net.dns[123.23.12.1,
,A,,]",
"value":"0",
"clock":1367673313,
"ns":691974428},
{
"host":"***************",
"key":"net.dns[
,domain.com,A,,]",
"value":"ZBX_NOTSUPPORTED",
"clock":1367673313,
"ns":692199754}],
Am I doing something wrong here, are multiple macros in an item prototype suppose to result in multiple requests?