Zabbix - Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer

NethServer Version: 7.9

Tried to install zabbix-server but after the installation the agent fails…

Any Ideas?

Did you install the Zabbix server module?

Is the agent installed?

1 Like

This is was I did:

yum -y install
yum -y install
yum -y --enablerepo=mrmarkuz,zabbix,zabbix-frontend install nethserver-zabbix
yum -y install nethserver-zabbix-agent --enablerepo=mrmarkuz

Is the agent running?

systemctl status zabbix-agent -l

Is it enabled?

config show zabbix-agent

1 Like
[root@infra02 ~]# zabbix_agent2
zabbix_agent2 [7799]: ERROR: cannot initialize PID file: Is this process already running? Could not lock PID file [/var/run/zabbix/]: resource temporarily unavailable

Coud this be the problem?

No, I think zabbix_agent2 is already running via systemd.

Did you follow the configuration guide?

Please share zabbix agent2 config:

config show zabbix-agent2

…and check which process listens on port 10050:

[root@server ~]# netstat -tlpn | grep 10050
tcp6       0      0 :::10050                :::*                    LISTEN      1177/zabbix_agent2
1 Like
[root@infra02 ~]# config show zabbix-agent2

[root@infra02 ~]# netstat -tlpn | grep 10050
tcp6       0      0 :::10050                :::*                    LISTEN      8446/zabbix_agent2

OK, I think I got it…

I had to change the agent-config:

1 Like

TNX Markus, for your support!

1 Like