-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
S25-W44/45, S25-W46/47
-
3
I managed to reproduce one issue based on the comments in the Zabbix DevOps chat. I am not sure my steps to reproduce are the same as customer did, since the customer did not provide step by step steps to reproduce.
This is just one possible way to do it, which illustrates that there is a problem related to transitions between hosts created manually and with active agent autoregistration.
Part 1
Steps to reproduce
- In Zabbix frontend, create a host manually.
- Hostname, Linked templates, host groups, interface DNS (I used DNS) should match the respective agent options.
- Encryption should be configured on host:
- Connections to host: PSK
- Connections from host: No encryption, PSK
- The following (or some other) values of PSK identity and PSK can be used. They must match at server and agent side.
PSK identity Zabbix training PSK 9ff4efc7b866918b33e33a5d09332adf
- Agent settings can be used the same as described in
ZBX-26621in "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 HostInterface=uggla1
- Link template "Zabbix agent active". This is just for convenience. It has 4 items is it convenient to set update period to some small value like 10 seconds. Also remove "Unchanged with heartbeat" preprocessing steps from the 2 items where they are configured.
- In /etc/hosts, configure some hosts to the IP where your agent is located. This would be needed to trigger autoregistation. You may choose a different way to trigger autoregistration.
127.0.0.1 uggla1 127.0.0.1 uggla2
Observed
- Both passive and active checks work.
- On Zabbix server, in table "hosts" fields "tls_psk" and "tls_psk_identity" are configured to valid values.
Expected
The same as observed.
Part 2
Steps to reproduce
- In Zabbix frontend, configure autoregistration. Administration->General->Autoregistration->Encryption level
- No encryption: yes
- PSK: no
- In Zabbix frontend, go to Alerts->Actions->Autoregistration action. Configure autoregistation action. It would be needed later.
- Condition: Host metadata contains HostMetadata option in agent config.
- Operations:
- Add to host groups: Training/Servers
- Link templates: Zabbix agent active
- Run autoregistation. This can be done in any way. I did it by changing agent config option to HostInterface=uggla2. Restart the agent. There is not need to restart the server.
Observed
- Passive checks continue working. Active checks stopped working.
- On Zabbix server, in table "hosts" fields "tls_psk" and "tls_psk_identity" are empty.
Expected
- Both passive and agent checks continue working.
- On Zabbix server, in table "hosts" fields "tls_psk" and "tls_psk_identity" contain valid values.
- caused by
-
ZBX-26621 Autoregistration with PSK not applied on existing host
-
- Closed
-