I have a problem that is not resolved on a new Ubuntu 20.04 machine
When I activate the monitoring it fails because of the ping.
I made some checks
From VPS to server
From server to VPS
From VPS to Server
Config zabbix client
Selinux is disable in zabbix client
Client is 6.X
Server zabbix is 5.X
When I activate the monitoring it fails because of the ping.
Code:
tail -f /var/log/zabbix/zabbix_server.log | grep -i albarid 2589713:20220703:080446.482 Zabbix agent item "agent.ping" on host "smtp.mydomain.es" failed: first network error, wait for 30 seconds 2589732:20220703:080546.531 temporarily disabling Zabbix agent checks on host "smtp.mydomain.es": host unavailable
- Check firewall in VPS and Zabbix server. Is open (fulll ports for test problem). Open
- Check ping from server zabbix to monitorized VPS. Works
- Check telnet connnection. Some issues
From VPS to server
Code:
root@smtp:~# telnet zabbix.server.tld 10050 Trying 51.15.158.217... Connected to zabbix.server.tld. Escape character is '^]'. root@smtp:~# telnet zabbix.server.tld 10051 Trying 51.15.158.217... Connected to zabbix.server.tld. Escape character is '^]'.
Code:
[root@monitor01 ~]# telnet smtp.mydomain.tld 10050 Trying 37.59.219.193... [root@monitor01 ~]# telnet smtp.mydomain.tld 10050 Trying 37.59.219.193...
Code:
root@smtp:~# telnet zabbix.server.tld 10050 Trying 51.15.158.217... Connected to zabbix.server.tld. Escape character is '^]'. Connection closed by foreign host. root@smtp:~# telnet zabbix.server.tld 10051 Trying 51.15.158.217... Connected to zabbix.server.tld. Escape character is '^]'. Connection closed by foreign host.
Code:
PidFile=/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix/zabbix_agentd.log LogFileSize=50 DebugLevel=3 Server=server.zabbix.ip StartAgents=5 ServerActive=server.zabbix.ip Hostname=smtp.mydomain.tld Include=/etc/zabbix/zabbix_agentd.d/*.conf
Selinux is disable in zabbix client
Code:
setenforce disabled setenforce: SELinux is disabled
Server zabbix is 5.X
Comment