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

"failed: first network error, wait for 15 seconds" caused by detached USB drive

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Incomplete
    • Icon: Trivial Trivial
    • None
    • 6.0.21
    • Agent (G)
    • None
    • Windows Server 2019 Standard
      Zabbix Agent 2 6.0.21

      After fighting reported network errors on the proxy without resolution I increased the agent log level to 4 and watched the logs of both the proxy and agent. I observed network errors corresponding to the same time frame as agent errors. I observed the errors on the agent were related to querying a drive (D: ) that was not attached. This resulted in a broken line displayed for uptime, which I use as a trigger for down hosts. When I attached the drive in Disk Manager (D: ) the uptime graph returned to a normal solid line, even though proxy network errors continued to be reported.

      Steps to reproduce:

      1. See agent and proxy configs below.
      2. Attach external USB drive and allow it to be discovered.
      3. Detach drive.
      4. Observe logs. Issue presents itself every minute or so.

      Result:
      Agent log:
      $ grep -B3 ZBX.NOTSUPPORTED zabbix-log-nwa-hv.txt

      2023/08/23 10:55:56.069769 executed direct exporter task for key 'perf_counter_en["\PhysicalDisk(1 D: )\% Idle Time",60]'
      2023/08/23 10:55:56.069769 executing direct exporter task for key 'perf_counter_en["\PhysicalDisk(1 D: )\Disk Writes/sec",60]'
      2023/08/23 10:55:56.069769 executed direct exporter task for key 'perf_counter_en["\PhysicalDisk(1 D: )\Disk Writes/sec",60]'
      2023/08/23 10:55:56.069769 sending passive check response: ZBX_NOTSUPPORTED: 'No data available.' to '192.168.0.8'
      

      Proxy log:

        1246:20230823:105553.823 Zabbix agent item "perf_counter_en["\PhysicalDisk(1 D:)\Current Disk Queue Length",60]" on host "nwa-hv.longviewautotire.com" failed: first network error, wait for 15 seconds
        1253:20230823:105608.393 resuming Zabbix agent checks on host "nwa-hv.longviewautotire.com": connection restored
      
      $ grep -v "^#" zabbix_agent2.conf | grep -v ^$
      LogFile=C:\Program Files\Zabbix Agent 2\zabbix_agent2.log
      DebugLevel=4
      Server=192.168.0.8
      ServerActive=192.168.0.8
      Hostname=nwa-hv.example.com
      Timeout=25
      Include=C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\
      ControlSocket=\\.\pipe\agent.sock
      Include=.\zabbix_agent2.d\plugins.d\*.conf
      
      # grep -v "^#" zabbix_proxy.conf | grep -v ^$
      ProxyMode=1
      Server=1.2.3.4
      Hostname=proxy.example.com
      LogFile=/var/log/zabbix/zabbix_proxy.log
      LogFileSize=0
      PidFile=/var/run/zabbix/zabbix_proxy.pid
      SocketDir=/var/run/zabbix
      DBName=zabbix_proxy
      DBUser=zabbix
      DBPassword=<secret>
      StartPollers=10
      StartPollersUnreachable=5
      SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
      Timeout=25
      ExternalScripts=/usr/lib/zabbix/externalscripts
      FpingLocation=/usr/bin/fping
      Fping6Location=/usr/bin/fping6
      LogSlowQueries=3000
      

            zux Edgars Melveris
            dkoski David Koski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: