I have set the following on the Zabbix server to enable PSK encryptions:

Then on the monitored server, I have set the following on the Zabbix agent (in /etc/zabbix/zabbix_agentd.conf):
The Server and ServerActive are also set correctly.
However, on the Zabbix agent, I'm getting the following errors:
And I get the following error on the Zabbix server:

Oddly though, when I run using zabbix_get, it seems to work fine:
I have searched the forums and none of the fixes seem to work for me.
Any help would be much appreciated.
Then on the monitored server, I have set the following on the Zabbix agent (in /etc/zabbix/zabbix_agentd.conf):
Code:
TLSConnect=psk TLSAccept=psk TLSPSKFile=/home/zabbix/secret.psk TLSPSKIdentity=ipcserver
However, on the Zabbix agent, I'm getting the following errors:
Code:
14175:20210717:003549.843 failed to accept an incoming connection: from IPADDRESS: zbx_tls_accept(): gnutls_handshake() failed: -24 Decryption has failed. 14175:20210717:003604.847 GnuTLS audit: "Discarded message[0] due to invalid decryption" 14175:20210717:003604.847 zbx_tls_accept() gnutls_handshake() returned: -24 Decryption has failed. 14175:20210717:003604.847 failed to accept an incoming connection: from IPADDRESS: zbx_tls_accept(): gnutls_handshake() failed: -24 Decryption has failed. 14175:20210717:003619.850 GnuTLS audit: "Discarded message[0] due to invalid decryption" 14175:20210717:003619.850 zbx_tls_accept() gnutls_handshake() returned: -24 Decryption has failed. 14175:20210717:003619.850 failed to accept an incoming connection: from IPADDRESS: zbx_tls_accept(): gnutls_handshake() failed: -24 Decryption has failed.
Oddly though, when I run using zabbix_get, it seems to work fine:
Code:
sudo zabbix_get -s IPADDRESS --tls-connect=psk --tls-psk-identity="ipcserver" --tls-psk-file=/home/ipczabbix/zabbix_agentd.psk -k vm.memory.size[available] # 683204608
Any help would be much appreciated.
Comment