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

Multiple macros in item prototype for LLD, results in multiple requests ending in failure

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 2.0.5
    • Server (S)
    • 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,

      {#DNS}

      ,A,,]",
      "value":"0",
      "clock":1367673313,
      "ns":691974428},

      {
      "host":"***************",
      "key":"net.dns[

      {#IP}

      ,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?

            Unassigned Unassigned
            curiouscapper Curtis Wood
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: