Is anyone using the Zabbix agent on their realtek switch?
I have it on all my OpenWrt devices including my two realtek switches (D-Link DGS-1210-16 & Zyxel XGS1250-12 A1). Also I am using psk encryption on all devices without issues, except for the D-Link switch. Without psk, monitoring works just fine. As soon as I enable psk, it fails and I see
old text
daemon.warn: zabbix_agentd[2279]: failed to accept an incoming connection: from 192.168.11.29: TLS connections are not allowed
in the system log.
With 24.10.x it sometimes started working after a while and then would fail again a few days later.
With 25.12-rcx I was not yet able to get it to work.
I would assume that both devices use the exact package (zabbix-agentd-openssl), so the package likely is not the problem, but rather something on the D-Link seems to not work as expected by the Zabbix agent.
Woud anyone have any idea to further narrow this down and get more insights?
edit
Zabbix states: Get value from agent failed: TCP successful, cannot establish TLS to [[192.168.11.10]:10050]: zbx_tls_connect(): gnutls_handshake() failed: -110 The TLS connection was non-properly terminated.
edit new:
my bad,
I mixed sth up:
after I had issues in 24.10.x with zabbix agent via psk, I had for some reason disabled the config in addition to disabling psk on Zabbix end.
This explains the above error messages.
just enabled the config again in the current 25.12-rc5 and now I can see the same error in the logs I had in 24.10.x: daemon.warn: zabbix_agentd[5832]: failed to accept an incoming connection: from 192.168.11.29: TLS handshake set result code to 6:: TLS read warning alert "close notify"
on Zabbix end I see the following error instead: Get value from agent failed: TCP successful, cannot establish TLS to [[192.168.11.10]:10050]: timed out
I have no other ssl services running (other than luci’s https)
Package wise, both switchs have the same extra packages (only theme, zabbix and kmod-sfp)
On the 24.10 releases it was working and failing on the same version, so the version updates did not cause a change.
If you have an idea how to test that (i.e. what service could use to test ssl in general)
You could try openvpn-openssl maybe? or for a shorter-lived test httping (from your workstation to nginx on the device?). Or znc (IRC bouncer)? These are programs that use OpenSSL in versions available as binaries.
after I had issues in 24.10.x with zabbix agent via psk, I had for some reason disabled the config in addition to disabling psk on Zabbix end.
This explains the above error messages.
just enabled the config again in the current 25.12-rc5 and now I can see the same error in the logs I had in 24.10.x: daemon.warn: zabbix_agentd[5832]: failed to accept an incoming connection: from 192.168.11.29: TLS handshake set result code to 6:: TLS read warning alert "close notify"
on Zabbix end I see the following error instead: Get value from agent failed: TCP successful, cannot establish TLS to [[192.168.11.10]:10050]: timed out
psk file has the permissions 644 in both switches, so that should not be the issue.
That psk cert used in Zabbix does not have any expiry and is created via openssl rand -hex 32
Both have this config (different identity of course)
I know for a while mip32k was failing to complete CI checks for many packages; that seems to have been resolved, so I am thinking it might be worth trying a SNAPSHOT build.