Zabbix Discovery Rule - Error for duplicate item prototype key gets lost when difference in upper / lower case

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: 2.2.21
    • Component/s: None

      Please find an example template with a discovery rule attached.

      Steps to reproduce:

      1. Import the attached discovery template.
      2. Create a host and attach the imported TMPL:APPL:Windows:Mona:Test template
      3. Send a discovery for the host via zabbix sender for the key: ifx.mona.discovery.processes that contains the following data:
        {\"data\":[{\"{#NAME}\":\"Process.exe\",\"{#NAME_WITHOUT_EXTENSION}\":\"Process\"}, {\"{#NAME}\":\"process\",\"{#NAME_WITHOUT_EXTENSION}\":\"process\"} ]}
        

      Full example call:

      ./zabbix_sender --zabbix-server <zbxserver> --host TEMPLATE_TEST_HOST --key ifx.mona.discovery.processes --value "{\"data\":[{\"{#NAME}\":\"Process.exe\",\"{#NAME_WITHOUT_EXTENSION}\":\"Process\"}, {\"{#NAME}\":\"process\",\"{#NAME_WITHOUT_EXTENSION}\":\"process\"} ]}" --verbose
      

      Result:
      The 3 perf_counter["\Process({#NAME_WITHOUT_EXTENSION}) items are missing due to an internal zabbix error
      --> the #NAME_WITHOUT_EXTENSION leads to a duplicate key, but the error is not reflected in Zabbix

      Expected:
      The discovery rule should be marked with an error (as shown in the attached image: no_discovery_error_Process_process)

      Note:
      When the upper / lower case of the macro is the same the error works -> shown in the other example image: discovery_error_process_process

      Easy to reprodue by changing the call to:

      {\"data\":[{\"{#NAME}\":\"Process.exe\",\"{#NAME_WITHOUT_EXTENSION}\":\"process\"}, {\"{#NAME}\":\"process\",\"{#NAME_WITHOUT_EXTENSION}\":\"process\"} ]}
      

        1. zbx_export_templates.xml
          30 kB
          Stefan Moser
        2. no_discovery_error_Process_process.JPG
          66 kB
          Stefan Moser
        3. items_missing_Process_process.JPG
          121 kB
          Stefan Moser
        4. items_available_Process_process2.JPG
          183 kB
          Stefan Moser
        5. example_calls.txt
          0.9 kB
          Stefan Moser
        6. discovery_error_process_process.JPG
          84 kB
          Stefan Moser

            Assignee:
            Unassigned
            Reporter:
            Stefan Moser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: