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

Check for duplicate command-line options is missing in agent2 and web service

XMLWordPrintable

    • 3

      Steps to reproduce:

      Use any of the options twice for zabbix_agent2 or zabbix_web_server, for example:

      sbin/zabbix_agent2 --test-config -c etc/zabbix_agent2.conf --test-config -c etc/zabbix_agent2.conf
      Validating configuration file "etc/zabbix_agent2.conf"
      Validation successful
      

      Note: in the provided example the new option from ZBXNEXT-1400 is used

      Result:
      Success

      Expected:
      Check for duplicated options should be present for agent2 and web service, same as for other components. In case of duplicates, error message should be displayed. Example, using same options for agentd:

      sbin/zabbix_agentd --test-config -c etc/zabbix_agentd.conf --test-config -c etc/zabbix_agentd.conf
      zabbix_agentd [135687]: option "-c" or "--config" specified multiple times
      zabbix_agentd [135687]: option "-T" or "--test-config" specified multiple times
      

            rzvejs Rudolfs Zvejs (Inactive)
            ngogolevs Nikita Gogolevs
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: