[ZBX-12981] Get value from agent failed: cannot connect to [[IP]:10050]: [4] Interrupted system call Created: 2017 Nov 03  Updated: 2018 Jul 31  Resolved: 2017 Nov 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.4.2
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Paulo Dos Santos Assignee: Unassigned
Resolution: Commercial support required Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 9


Attachments: PNG File Support Zabbix.png     PDF File Zabbix Support.pdf    

 Description   

Hello, users of Zabbix for many years since the new installation we have a problem with external hosts, we have the message Get value from agent failed: can not connect to [[ip]: 10050]: [4] Interrupted system call for hosts inside the network it works well for external clients impossible to connect to Zabbix server



 Comments   
Comment by Ingus Vilnis [ 2017 Nov 03 ]

Hi,
You said that
If it works well for internal network, but not for external clients
These are passive agent checks that are failing from zabbix server to zabbix agent.
Please check those two things first:

  • Zabbix server tries to connect to remote agent port 10050. Is this port open on firewall ? you can test it with command
     telnet remote_ip_address 10050

    , where remote_ip_address is IP address of zabbix agent.

  • if the communication ports are open, the connection to zabbix agent may just simply time out because of poor network performance. The default timeout in zabbix is 3 seconds in zabbix_server.conf
    ### Option: Timeout
    #       Spend no more than Timeout seconds on processing
    #
    # Mandatory: no
    # Range: 1-30
    # Default:
    # Timeout=3
    

You can increase this value in zabbix_server.conf file, Zabbix Server restart is needed after configuration changes.

Comment by Paulo Dos Santos [ 2017 Nov 03 ]

Thank you for your answer, when you say telnet it means to make a telnet from the zabbix server to the remote agent so the remote machine, our old Zabbix version 2.2 we opened the firewall from the agent on the machines to our server Zabbix, we also changed the timeout to = 30 and it still does not work, we have a new message "Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer", thank you for your support

Comment by Paulo Dos Santos [ 2017 Nov 05 ]

Hello,
All tests of Telnet pass, here is also the Zabbix agent log and some screenshots and configuration files of the Zabbix server, thank you for your help

Comment by Kaspars Mednis [ 2017 Nov 06 ]

Hello,
There is a line in yor zabbix_agentd.conf

Server=127.0.0.1

On all your agents to make passive checks work, this IP must match Zabbix Server ip address

You can test the answer from zabbix agent in the following way:
Execute from the command_line the following command on the Zabbix server

zabbix_get -s AGENT_IP_ADDRESS -k agent.ping

where AGENT_IP_ADDRESS is IP address or DNS name of any of your non-responsive hosts.
You will see in answer the correct value, or error message explaining why you can't get a value

If you do not have zabbix_get utility installed on Zabbix server, you can get it for debian 9 with

apt-get install zabbix-get

you can read more about it here
https://www.zabbix.com/documentation/3.4/manual/concepts/get

Comment by Kaspars Mednis [ 2017 Nov 06 ]

This issue tracker is for bug reports only. No indication of a bug in this particular report. Please use IRC, forums or other channels for community support - see https://www.zabbix.org/wiki/Getting_help for more details.Alternatively contact [email protected] for commercial support.Closing as Commercial support required.

Comment by GIOVANNI SAVIO PEREIRA [ 2018 Jul 31 ]

Inicie o serviço do agente:

#service zabbix-agent start

Generated at Sat Apr 26 01:24:31 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.