Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17291

Inconsistent error message if connection dropped by agent2 because of access permissions

XMLWordPrintable

    • Support backlog

      If the connection from the host is denied by parameter 'Server' in zabbix_agentd.conf then the following error message is displayed:
      Received empty response from Zabbix Agent at [127.0.0.1]. Assuming that agent dropped connection because of access permissions.

      But in case of zabbix_agent2 the error message is inconsistent:
      Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer

      Probable reason for that difference is:

      • zabbix_agent close connection by calling shutdown() and close() on socket, results in FIN+RST packets on TCP level
      • zabbix_agent2 close connection by calling net.TCPConn.Close(), results in RST packet only

      Steps to reproduce:

      Set
      Server=zabbix.example.com
      in the configuration file of agent2 (zabbix_agent2.conf)

      Result:
      See screenshot zabbix_agent2.png
      Expected:
      See screenshot zabbix_agentd.png

            zabbix.dev Zabbix Development Team
            asestakovs Aleksejs Sestakovs (Inactive)
            Team INT
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: