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

Autoregistration with PSK not applied on existing host

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.16
    • None
    • None

      Zabbix agent's autoregistration action is not executed after changing the TLSConnect and TLSAccept parameters to ‘PSK’ and ‘PSK,unencrypted’ in the agent configuration. In the Zabbix frontend, the autoregistration global settings are set to both ‘No encryption’ and ‘PSK’ or only to ‘PSK’.

      The autoregistration action is executed only after the host without PSK is deleted. After that, the newly registered host has PSK encryption enabled. Changing the HostMetadata parameter also does not trigger the autoregistration action.

      Steps to reproduce:

      1. Have a monitored host in Zabbix without encryption and autoregistration action.
      2. Add the PSK option in Administration > General > Autoregistration.
      3. Configure PSK in the agent’s configuration file and change HostMetadata parameter (for rerun autoregistration), then restart the agent
      4. Active checks stop working, the autoregistration action is not triggered, and the host remains monitored without encryption.

      Expected:
      The autoregistration action executes and updates the host, enabling PSK encryption as it is described in the documentation.

      Zabbix Server log:

        1612:20250628:095217.431 no active checks on server [127.0.0.1:10051]: connection of type "TLS with PSK" is not allowed for host "Zabbix server Autoreg"
        1612:20250628:095217.431 Active check configuration update started to fail
      

      Zabbix Agent log:

        1636:20250628:095316.813 no active checks on server [127.0.0.1:10051]: connection of type "TLS with PSK" is not allowed for host "Zabbix server Autoreg"
        1636:20250628:095316.813 Active check configuration update started to fail

      Agent config for first reg:

      PidFile=/run/zabbix/zabbix_agentd.pid
      LogFile=/var/log/zabbix/zabbix_agentd.log
      LogFileSize=0
      Server=127.0.0.1
      ServerActive=127.0.0.1
      Hostname=Zabbix server Autoreg
      HostMetadata=Linux_test
      Include=/etc/zabbix/zabbix_agentd.d/*.conf 

      Agent config with PSK:

      PidFile=/run/zabbix/zabbix_agentd.pid
      LogFile=/var/log/zabbix/zabbix_agentd.log
      LogFileSize=0
      Server=127.0.0.1
      ServerActive=127.0.0.1
      Hostname=Zabbix server Autoreg
      HostMetadata=Linux_testpsk
      Include=/etc/zabbix/zabbix_agentd.d/*.conf
      TLSConnect=psk
      TLSAccept=unencrypted,psk
      TLSPSKIdentity=TEST
      TLSPSKFile=/etc/zabbix/zabbix_agent.psk 

      Autoregistration actions settings:

            zabbix.dev Zabbix Development Team
            pwegrzyn Piotr Wegrzyn
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: