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

zabbix-agent2.conf disfunctional when using Host Wizard script with IPv6 addresses

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.4.2, 8.0.0alpha1 (master)
    • Frontend (F)
    • Support backlog

      Steps to reproduce:

      1. Use the Host Wizard, enter IPv6 addresses as requested
      2. Deploy zabbix-agent via provided auto-deployment script
      3. check Zabbix-agent2 status

      Result:
      **

      root@pridoc:~# cat /etc/zabbix/zabbix_agent2.conf | grep ^Server=
      Server=[2001:XXXX::111]
      root@pridoc:~# cat /etc/zabbix/zabbix_agent2.conf | grep ^ServerActive=
      ServerActive=[2001:XXXX::111]:10051

      The script removes the port of the zabbix-servers address but leaves the brackets.
      The Server-Parameter requests the address without brackets. Meanwhile ServerActive requires brackets for ipv6 addresses.
      Removing the brackets from the Server-Parameter results in a startable Zabbix-agent2:

       

      root@pridoc:~# vim.tiny /etc/zabbix/zabbix_agent2.conf 
      root@pridoc:~# systemctl restart zabbix-agent2.service 
      root@pridoc:~# systemctl status zabbix-agent2.service 
      ● zabbix-agent2.service - Zabbix Agent 2
           Loaded: loaded (/usr/lib/systemd/system/zabbix-agent2.service; enabled; preset: enabled)
           Active: active (running) since Sun 2025-09-14 09:44:38 CEST; 10s ago
      [...]
      
      root@pridoc:~# cat /etc/zabbix/zabbix_agent2.conf | grep ^Server=
      Server=2001:XXXX::111
      root@pridoc:~# cat /etc/zabbix/zabbix_agent2.conf | grep ^ServerActive=
      ServerActive=[2001:XXXX::111]:10051
      

       

      Expected:
      Either remove the bracktes for Server and keep them for ServerActive via the install-zabbix.sh or require brackets at the Server-Parameter as well as at the ServerActive Parameter within the config

            zabbix.dev Zabbix Development Team
            pabe Patrick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: