I would like to add a linux host to Zabbix, with active agent - unfortunately it does not work.
The Zabbix server consists of two nodes and operates in native HA.
The firewall is turned off on all machines.
The machines:
I add the host on the Zabbix web interface:
Configuration -> Hosts -> Add host
Host name: test-zbx-fe2
Templates: Linux by Zabbix agent active
Host groups: Zabbix servers
Interfaces: Agent: 192.168.24.176
Add button.
This host has only one data that works:
All other measurements are empty, but do not indicate an error. There are just no values.
The test-zbx-fe2 has zabbix-agent2 installed.
Configuration file /etc/zabbix/zabbix_agent2.conf:
When starting the zabbix agent, this appears in the log:
Meanwhile, the traffic between the host and the active zabbix server node:
Both ports are responding on the server:
What am I messing up?
The Zabbix server consists of two nodes and operates in native HA.
The firewall is turned off on all machines.
The machines:
Code:
test-zbx-fe2 - 192.168.24.176 test-zbx-srv1 - 192.168.24.169 test-zbx-srv1 - 192.168.24.170
Configuration -> Hosts -> Add host
Host name: test-zbx-fe2
Templates: Linux by Zabbix agent active
Host groups: Zabbix servers
Interfaces: Agent: 192.168.24.176
Add button.
This host has only one data that works:
Code:
Active agent availability 26s available (1)
The test-zbx-fe2 has zabbix-agent2 installed.
Configuration file /etc/zabbix/zabbix_agent2.conf:
Code:
PidFile=/run/zabbix/zabbix_agent2.pid LogFile=/var/log/zabbix/zabbix_agent2.log LogFileSize=0 Server=127.0.0.1 ServerActive=192.168.24.169;192.168.24.170 Hostname=test-zbx-fe2 Include=/etc/zabbix/zabbix_agent2.d/*.conf ControlSocket=/tmp/agent.sock Include=./zabbix_agent2.d/plugins.d/*.conf
Code:
2022/10/20 18:58:54.123878 Starting Zabbix Agent 2 (6.2.3) 2022/10/20 18:58:54.125303 OpenSSL library (OpenSSL 3.0.1 14 Dec 2021) initialized 2022/10/20 18:58:54.125435 using configuration file: /etc/zabbix/zabbix_agent2.conf 2022/10/20 18:58:54.125543 using plugin 'Agent' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.125590 using plugin 'Ceph' (built-in) providing following interfaces: exporter, runner, configurator 2022/10/20 18:58:54.125635 using plugin 'Cpu' (built-in) providing following interfaces: exporter, collector, runner 2022/10/20 18:58:54.125670 using plugin 'DNS' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.125706 using plugin 'Docker' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.125740 using plugin 'File' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.125771 using plugin 'Hw' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.125800 using plugin 'Kernel' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.125839 using plugin 'Log' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.125879 using plugin 'MQTT' (built-in) providing following interfaces: watcher, configurator 2022/10/20 18:58:54.125907 using plugin 'Memcached' (built-in) providing following interfaces: exporter, runner, configurator 2022/10/20 18:58:54.125935 using plugin 'Memory' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.125964 using plugin 'Modbus' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.125997 using plugin 'Mysql' (built-in) providing following interfaces: exporter, runner, configurator 2022/10/20 18:58:54.126035 using plugin 'NetIf' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126064 using plugin 'Oracle' (built-in) providing following interfaces: exporter, runner, configurator 2022/10/20 18:58:54.126094 using plugin 'Postgres' (built-in) providing following interfaces: exporter, runner, configurator 2022/10/20 18:58:54.126143 using plugin 'Proc' (built-in) providing following interfaces: exporter, collector 2022/10/20 18:58:54.126178 using plugin 'ProcExporter' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126208 using plugin 'Redis' (built-in) providing following interfaces: exporter, runner, configurator 2022/10/20 18:58:54.126237 using plugin 'Smart' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126265 using plugin 'Sw' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126292 using plugin 'Swap' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126326 using plugin 'SystemRun' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126359 using plugin 'Systemd' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126388 using plugin 'TCP' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126417 using plugin 'UDP' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126444 using plugin 'Uname' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126472 using plugin 'Uptime' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126506 using plugin 'Users' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126537 using plugin 'VFSDev' (built-in) providing following interfaces: exporter, collector 2022/10/20 18:58:54.126574 using plugin 'VFSDir' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126609 using plugin 'VfsFs' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126644 using plugin 'WebCertificate' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126672 using plugin 'WebPage' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126700 using plugin 'ZabbixAsync' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126729 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator 2022/10/20 18:58:54.126756 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits 2022/10/20 18:58:54.126783 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter 2022/10/20 18:58:54.126927 Plugin support version 1.0 2022/10/20 18:58:54.127018 Zabbix Agent2 hostname: [test-zbx-fe2] 2022/10/20 18:58:58.128487 [101] cannot connect to [192.168.24.169:10051]: dial tcp :0->192.168.24.169:10051: connect: connection refused 2022/10/20 18:58:58.128528 [101] cannot receive data from [192.168.24.170:10051]: Cannot read message: 'read tcp 192.168.24.176:57799->192.168.24.170:10051: i/o timeout' 2022/10/20 18:58:58.128536 [101] active check configuration update from host [test-zbx-fe2] started to fail
Code:
18:58:55.127920 ens192 Out IP 192.168.24.176.57799 > 192.168.24.170.10051: Flags [S], seq 2857464778, win 64240, options [mss 1460,sackOK,TS val 620551170 ecr 0,nop,wscale 7], length 0 18:58:55.128076 ens192 In IP 192.168.24.170.10051 > 192.168.24.176.57799: Flags [S.], seq 354635450, ack 2857464779, win 65160, options [mss 1460,sackOK,TS val 877657158 ecr 620551170,nop,wscale 7], length 0 18:58:55.128096 ens192 Out IP 192.168.24.176.57799 > 192.168.24.170.10051: Flags [.], ack 1, win 502, options [nop,nop,TS val 620551170 ecr 877657158], length 0 18:58:55.128494 ens192 Out IP 192.168.24.176.57799 > 192.168.24.170.10051: Flags [P.], seq 1:91, ack 1, win 502, options [nop,nop,TS val 620551171 ecr 877657158], length 90 18:58:55.128583 ens192 In IP 192.168.24.170.10051 > 192.168.24.176.57799: Flags [.], ack 91, win 509, options [nop,nop,TS val 877657159 ecr 620551171], length 0 18:58:58.128452 ens192 Out IP 192.168.24.176.57799 > 192.168.24.170.10051: Flags [F.], seq 91, ack 1, win 502, options [nop,nop,TS val 620554171 ecr 877657159], length 0 18:58:58.128627 ens192 Out IP 192.168.24.176.33585 > 192.168.24.170.10051: Flags [S], seq 3848447153, win 64240, options [mss 1460,sackOK,TS val 620554171 ecr 0,nop,wscale 7], length 0 18:58:58.128789 ens192 In IP 192.168.24.170.10051 > 192.168.24.176.33585: Flags [S.], seq 1653871958, ack 3848447154, win 65160, options [mss 1460,sackOK,TS val 877660159 ecr 620554171,nop,wscale 7], length 0 18:58:58.128812 ens192 Out IP 192.168.24.176.33585 > 192.168.24.170.10051: Flags [.], ack 1, win 502, options [nop,nop,TS val 620554171 ecr 877660159], length 0 18:58:58.130174 ens192 Out IP 192.168.24.176.33585 > 192.168.24.170.10051: Flags [P.], seq 1:96, ack 1, win 502, options [nop,nop,TS val 620554172 ecr 877660159], length 95 18:58:58.130280 ens192 In IP 192.168.24.170.10051 > 192.168.24.176.33585: Flags [.], ack 96, win 509, options [nop,nop,TS val 877660161 ecr 620554172], length 0 18:58:58.130350 ens192 In IP 192.168.24.170.10051 > 192.168.24.176.33585: Flags [F.], seq 1, ack 96, win 509, options [nop,nop,TS val 877660161 ecr 620554172], length 0 18:58:58.130683 ens192 Out IP 192.168.24.176.33585 > 192.168.24.170.10051: Flags [F.], seq 96, ack 2, win 502, options [nop,nop,TS val 620554173 ecr 877660161], length 0 18:58:58.130793 ens192 In IP 192.168.24.170.10051 > 192.168.24.176.33585: Flags [.], ack 97, win 509, options [nop,nop,TS val 877660161 ecr 620554173], length 0 18:58:58.168896 ens192 In IP 192.168.24.170.10051 > 192.168.24.176.57799: Flags [.], ack 92, win 509, options [nop,nop,TS val 877660199 ecr 620554171], length 0
Code:
[root@test-zbx-fe2 zabbix]# telnet 192.168.24.170 10050 telnet 192.168.24.170 10050 Trying 192.168.24.170... Connected to 192.168.24.170. Escape character is '^]'. Connection closed by foreign host. [root@test-zbx-fe2 zabbix]# telnet 192.168.24.170 10051 Trying 192.168.24.170... Connected to 192.168.24.170. Escape character is '^]'. quit Connection closed by foreign host. [root@test-zbx-fe2 zabbix]#
What am I messing up?

).
(maybe attach them as text files next time?)
Comment