I'm trying to setup the simplest Zabbix POC possible -
- Zabbix server in docker
- Zabbix agent on server's host
- Zabbix agent on my desktop
and I could not figure out how to make them talk on each other.
I use official zabbix docs to install server from docker-compose - https://www.zabbix.com/documentation...docker-compose
I installed agent2 by
I run it by
I did not change agent conf file as it seems it points correctly to 127.0.0.1 server
My host system is Ubuntu 22.04
I can open Zabbix web at 192.168.x.x/zabbix
Server cannot communicate with agent -
127.0.0.1 can be pinged from docker
but zabbix get returns error
zabbix agent log does not show any errors
ufw is inactive
it looks like it fails to listen on 10050 tcp ?
Here is also ss -nltp output
On my windows desktop I installed agent from msi.
zabbix get returns 1 fro this agent
zabbix_get -s 192.168.0.141 -k agent.ping
I added new Host for my desktop , but it shows grey
What to try next?
Also, should I manually add a Host on server after installing agent on machine? Can it be done automatically? We were planning to install Zabbix to monitor ~700 hosts and it will be a real showstopper if we auto onboarding does not work.
- Zabbix server in docker
- Zabbix agent on server's host
- Zabbix agent on my desktop
and I could not figure out how to make them talk on each other.
I use official zabbix docs to install server from docker-compose - https://www.zabbix.com/documentation...docker-compose
I installed agent2 by
Code:
sudo apt install zabbix-agent2
Code:
sudo systemctl start zabbix-agent2
My host system is Ubuntu 22.04
I can open Zabbix web at 192.168.x.x/zabbix
Server cannot communicate with agent -
127.0.0.1 can be pinged from docker
but zabbix get returns error
zabbix agent log does not show any errors
Code:
2023/12/20 04:07:02.868336 [Modbus] Config is valid 2023/12/20 04:07:02.868413 Plugin communication protocol version is 6.0.13 2023/12/20 04:07:02.868438 Zabbix Agent2 hostname: [Zabbix server] 2023/12/20 04:07:02.868584 starting manager 2023/12/20 04:07:02.868606 [101] starting memory cache 2023/12/20 04:07:02.868700 [101] starting server connector for [127.0.0.1:10051] 2023/12/20 04:07:02.868745 [0] starting listener for '0.0.0.0:10050' 2023/12/20 04:07:02.869278 listening for control connections on /tmp/agent.sock 2023/12/20 04:07:03.869333 [101] In refreshActiveChecks() from [127.0.0.1:10051] 2023/12/20 04:07:03.870597 [101] End of refreshActiveChecks() from [127.0.0.1:10051] 2023/12/20 04:07:03.870618 [101] processing update request (0 requests) 2023/12/20 04:07:03.870633 [101] skipping empty update for unregistered client
it looks like it fails to listen on 10050 tcp ?
Code:
netstat -na | grep 10051 tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN tcp6 0 0 :::10051 :::* LISTEN
Code:
netstat -na | grep 10050 tcp6 0 0 :::10050 :::* LISTEN
Code:
ss -nltp | grep 10050 LISTEN 0 4096 *:10050 *:*
zabbix get returns 1 fro this agent
zabbix_get -s 192.168.0.141 -k agent.ping
I added new Host for my desktop , but it shows grey
What to try next?
Also, should I manually add a Host on server after installing agent on machine? Can it be done automatically? We were planning to install Zabbix to monitor ~700 hosts and it will be a real showstopper if we auto onboarding does not work.
Comment