Ad Widget

Collapse

listener failed: bind() for [[-]:10050] failed: [98] Address already in use

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirish_okram
    Junior Member
    • Jul 2015
    • 6

    #1

    listener failed: bind() for [[-]:10050] failed: [98] Address already in use

    Hey guys,


    i know the error says the port, 10050 is in use. But the port is used by zabbix_agentd itself. So why is the zabbix_agentd failing to start.


    The agent log:

    21507:20150716:173905.706 using configuration file: /opt/mount1/zabbix/etc/zabbix_agentd.conf
    21507:20150716:173905.707 listener failed: bind() for [[-]:10050] failed: [98] Address already in use
    22658:20150716:181524.968 Starting Zabbix Agent [server_name]. Zabbix 2.2.0 (revision 40163).
    22658:20150716:181524.968 using configuration file: /opt/mount1/zabbix/etc/zabbix_agentd.conf
    22658:20150716:181524.969 listener failed: bind() for [[-]:10050] failed: [98] Address already in use
    22735:20150716:181534.916 Starting Zabbix Agent [server_name]. Zabbix 2.2.0 (revision 40163).
    22735:20150716:181534.917 using configuration file: /opt/mount1/zabbix/etc/zabbix_agentd.conf
    22735:20150716:181534.917 listener failed: bind() for [[-]:10050] failed: [98] Address already in use
    22774:20150716:181536.756 Starting Zabbix Agent [server_name]. Zabbix 2.2.0 (revision 40163).
    22774:20150716:181536.756 using configuration file: /opt/mount1/zabbix/etc/zabbix_agentd.conf
    22774:20150716:181536.756 listener failed: bind() for [[-]:10050] failed: [98] Address already in use


    The netstat confirms it:

    ]# netstat -ntlp

    tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 26773/zabbix_agentd


    Processes running on the server.

    [root@c4t02193 singhok]# ps aux | grep zabbix_agentd
    root 23133 0.0 0.0 103252 844 pts/0 S+ 18:37 0:00 grep zabbix_agentd
    zabbix 26773 0.0 0.0 19824 1256 ? S Jun18 9:14 /opt/zabbix/sbin/zabbix_agentd: listener #1 [waiting for connection]
    zabbix 26774 0.0 0.0 19824 1256 ? S Jun18 9:17 /opt/zabbix/sbin/zabbix_agentd: listener #2 [waiting for connection]
    zabbix 26775 0.0 0.0 19824 1252 ? S Jun18 9:15 /opt/zabbix/sbin/zabbix_agentd: listener #3 [waiting for connection]
    zabbix 26776 0.0 0.0 19840 1096 ? S Jun18 3:59 /opt/zabbix/sbin/zabbix_agentd: active checks #1 [idle 1 sec]





    ]# service zabbix_agentd status
    zabbix_agentd is not running [FAILED]
    # service zabbix_agentd restart
    zabbix_agentd restarted [ OK ]
    # service zabbix_agentd status
    zabbix_agentd is not running [FAILED]


    To fix this, i have to "kill -9 $PID's that were returned by the (ps aux | grep -i zabbix_agentd) & start the "zabbix_agentd" server on the server.
  • joseperes
    Junior Member
    • Mar 2019
    • 20

    #2
    I have the same problem, did you get a solution for that?

    Comment

    • joseperes
      Junior Member
      • Mar 2019
      • 20

      #3
      Originally posted by joseperes
      I have the same problem, did you get a solution for that?
      I found the problem and the solution...
      Using the command systemctl list-dependencies i found that i had zabbix_agent and zabbix_agentd, so that was making a conflict, so i removed the zabbix_agent doing systemctl disable zabbix_agent, after reboot everything was fine

      Comment

      • NAGIREDK
        Junior Member
        • Feb 2021
        • 3

        #4
        I have the same problem, did you get a solution for that?

        30834:20210304:042049.965 listener failed: bind() for [[-]:10050] failed: [98] Address already in use

        Comment

        Working...