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

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 4.4.6rc1, 5.0.0alpha2, 5.0 (plan)
    • None
    • Agent (G)
    • None

    Description

      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

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            asestakovs Aleksejs Sestakovs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: