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

Windows zabbix agent: port 10050 is in listening state after stopping the service

XMLWordPrintable

    • Team A
    • Sprint 47, Dec 2018, Sprint 48, Jan 2019, Sprint 49 (Feb 2019)
    • 2

      We have several hundreds of windows hosts and on some of them after trying to stop/start "zabbix agent" port 10050 is not released and there are a lot of "time_wait" connections, so service coudn't be started until we reboot the machine. Via TcpView it is possible to close "time_wait" connections but not that which is in listening state and it shows <non-existent> process.

       

       

      C:\Windows\system32>sc query "zabbix agent"
      SERVICE_NAME: zabbix agent
       TYPE : 10 WIN32_OWN_PROCESS
       STATE : 1 STOPPED
       WIN32_EXIT_CODE : 1067 (0x42b)
       SERVICE_EXIT_CODE : 0 (0x0)
       CHECKPOINT : 0x0
       WAIT_HINT : 0x0
      C:\Windows\system32>netstat -ano | findstr :10050
       TCP 0.0.0.0:10050 0.0.0.0:0 LISTENING 2728
       TCP [::]:10050 [::]:0 LISTENING 2728
      C:\Windows\system32>taskkill /f /pid 2728
      ERROR: The process "2728" not found.
      c:\Program Files\Zabbix>zabbix_agentd.exe -V
      zabbix_agentd Win64 (service) (Zabbix) 3.4.6
      Revision 76819 15 January 2018, compilation time: Jan 15 2018 10:43:42
      

       

      Steps to reproduce:

      1. sc stop "zabbix agent"
      2. sc start "zabbix agent"

      Result:
      Service is in stopped state. No zabbix agent process, but port 10050 is listening.
      Expected:
      Service is successfully restarted

        1. 2018.12.19-16.18.37.jpg
          535 kB
          Sergey Lisikh
        2. 2018.12.19-16.42.30.jpg
          114 kB
          Sergey Lisikh
        3. comms_changes_patch.txt
          1 kB
          Andris Mednis
        4. image-2018-12-13-17-32-44-968.png
          43 kB
          Sergey Lisikh
        5. image-2018-12-19-17-30-42-731.png
          8 kB
          Sergey Lisikh
        6. netstat.log
          14 kB
          Sergey Lisikh
        7. proclist.png
          58 kB
          Sergey Lisikh
        8. zabbix_agent.log
          1.39 MB
          Sergey Lisikh

            Kalimulin Alex Kalimulin
            akelio Sergey Lisikh
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: