Ad Widget

Collapse

Host with agentd won't connect to Zabbix Server 5.4.6 even though they see each other

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmartinez127
    Junior Member
    • Sep 2023
    • 14

    #1

    Host with agentd won't connect to Zabbix Server 5.4.6 even though they see each other

    Greetings,

    I'm having issues to monitor an Ubuntu 22.02 host with agentd (or agent 1). As seen in this screenshot, I've got the red "ZBX" icon with the "Get value from agent failed: cannot connect to [[1XX.XXX.XXX.57]:10051]: [4] Interrupted system call" error.

    However, I noticed that the hostname was set wrong in the host and when I updated it, Zabbix Server dashboard reported the "System name has changed (new name: data.X.net)" and "ZBX" icon is still red as shown in the following screenshot. Even though the host "isn't being monitored", how did that happen?



    That would prove that the host is being monitored, right? How do I fix it then?

    I already tried to restart Zabbix Server. I uninstalled the host agent, reinstalled it again and carefully verified every configuration added in zabbix_agentd.conf is right. Tried to use port 10050 and 10051 too, but none of them worked (I verified that both ports are open). Zabbix server and host can ping each other. Ther is no firewall in Ubuntu host.

    If I run telnet from host to server:
    Code:
    telnet 1XX.XXX.XXX.X7 -p 10051
    Trying 1X.XXX.XXX.X7...
    Connected to 1XX.XXX.XXX.X7.
    Escape character is '^]'.
    Connection closed by foreign host.
    And if I run nc from host to server:
    Code:
    nc -vz 1XX.XXX.XXX.X7 10051
    Connection to 1XX.XXX.XXX.X7 10051 port [tcp/zabbix-trapper] succeeded!
    What am I missing?
Working...