Ad Widget

Collapse

listener failed: zbx_tcp_listen() fatal error: unable to serve on any address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Renate
    Member
    • Apr 2008
    • 34

    #1

    listener failed: zbx_tcp_listen() fatal error: unable to serve on any address

    I'm trying to install zabbix on a new (virtual) server. But i have troubles with the zabbix_agentd on the zabbix server. I get the error below and don't know how to fix it... Can someone help me out or point me in the correct direction?

    Error logging zabbix_agentd (on zabbix server):
    16795:20130325:144550.564 Starting Zabbix Agent [server-adres]. Zabbix 2.0.3 (revision 30485).
    16795:20130325:144550.580 listener failed: zbx_tcp_listen() fatal error: unable to serve on any address [[-]:10050]

    configuration zabbix_agentd on the zabbix server:

    PidFile=/var/run/zabbix/zabbix_agentd.pid
    LogFile=/var/log/zabbix/zabbix_agentd.log
    DebugLevel=4 # for now
    Server=127.0.0.1
    ServerActive=127.0.0.1
    Hostname=server-adress also tried ip adress, same error


    with command netstat:
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 31428/./zabbix_agen
    tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 5690/./zabbix_serve
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    what is the output of "netstat -ltn"? You most likely already have something listening on port 10050. When Zabbix tries to bind to the port, it can't because the port isn't available.

    Comment

    • Renate
      Member
      • Apr 2008
      • 34

      #3
      Thank you for the reply.

      The output of netstat -ltn
      Is there anywhere else where i can look?

      $ netstat -ltn
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State
      tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN
      tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:60615 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:8400 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:8402 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:980 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
      tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
      tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
      $

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN
        tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN
        Yup, according to the output you already have processes listening on ports 10050 and 10051 (probably Zabbix processes you started up before). If you are trying to restart the agent/server processes after changing configuration stuff, you MUST kill the processes before you can start new ones up. Do that by running these commands:

        1. To kill Zabbix Server - "killall -TERM zabbix_server"
        2. To kill Zabbix agentd - "killall -TERM zabbix_agentd"

        Comment

        • Renate
          Member
          • Apr 2008
          • 34

          #5
          i've killed zabbix server and agentd, started the zabbix server and agentd again.
          The logging of the agentd;

          24287:20130326:085654.841 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
          24287:20130326:085654.841 End of send_buffer():SUCCEED
          24287:20130326:085654.841 Sleeping for 1 second(s)
          24283:20130326:085655.651 In update_cpustats()
          24283:20130326:085655.651 End of update_cpustats()
          24287:20130326:085655.842 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
          24287:20130326:085655.842 End of send_buffer():SUCCEED
          24287:20130326:085655.842 Sleeping for 1 second(s)
          24283:20130326:085656.652 In update_cpustats()
          24283:20130326:085656.652 End of update_cpustats()
          24287:20130326:085656.843 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
          24287:20130326:085656.843 End of send_buffer():SUCCEED
          24287:20130326:085656.843 Sleeping for 1 second(s)

          With the zabbix server i'm nog there yet... i shall try dns
          The logging of de zabbix server;

          5690:20130326:085049.988 Zabbix Server stopped. Zabbix 2.0.3 (revision 30485).
          24159:20130326:085506.914 Starting Zabbix Server. Zabbix 2.0.3 (revision 30485).
          24159:20130326:085506.914 ****** Enabled features ******
          24159:20130326:085506.914 SNMP monitoring: YES
          24159:20130326:085506.914 IPMI monitoring: NO
          24159:20130326:085506.914 WEB monitoring: YES
          24159:20130326:085506.914 Jabber notifications: NO
          24159:20130326:085506.914 Ez Texting notifications: YES
          24159:20130326:085506.914 ODBC: NO
          24159:20130326:085506.914 SSH2 support: NO
          24159:20130326:085506.915 IPv6 support: YES
          24159:20130326:085506.915 ******************************
          24165:20130326:085507.109 server #1 started [configuration syncer #1]
          24167:20130326:085507.137 server #2 started [db watchdog #1]
          24185:20130326:085507.189 server #19 started [trapper #1]
          24186:20130326:085507.245 server #20 started [trapper #2]
          24188:20130326:085507.246 server #21 started [trapper #3]
          24190:20130326:085507.256 server #22 started [trapper #4]
          24192:20130326:085507.267 server #23 started [trapper #5]
          24194:20130326:085507.277 server #24 started [icmp pinger #1]
          24196:20130326:085507.315 server #25 started [alerter #1]
          24198:20130326:085507.318 server #26 started [housekeeper #1]
          24198:20130326:085507.348 executing housekeeper
          24199:20130326:085507.396 server #27 started [timer #1]
          24202:20130326:085507.397 server #28 started [http poller #1]
          24205:20130326:085507.416 server #30 started [history syncer #1]
          24207:20130326:085507.439 server #31 started [history syncer #2]
          24209:20130326:085507.456 server #32 started [history syncer #3]
          24211:20130326:085507.540 server #33 started [history syncer #4]
          24215:20130326:085507.568 server #35 started [proxy poller #1]
          24217:20130326:085507.833 server #36 started [self-monitoring #1]
          24159:20130326:085507.833 server #0 started [main process]
          24175:20130326:085508.281 server #9 started [poller #7]
          24169:20130326:085508.303 server #3 started [poller #1]
          24180:20130326:085508.315 server #14 started [poller #12]
          24183:20130326:085508.324 server #17 started [poller #15]
          24174:20130326:085508.345 server #8 started [poller #6]
          24172:20130326:085508.354 server #6 started [poller #4]
          24173:20130326:085508.362 server #7 started [poller #5]
          24170:20130326:085508.379 server #4 started [poller #2]
          24181:20130326:085508.387 server #15 started [poller #13]
          24171:20130326:085508.395 server #5 started [poller #3]
          24179:20130326:085508.429 server #13 started [poller #11]
          24178:20130326:085508.466 server #12 started [poller #10]
          24184:20130326:085508.506 server #18 started [unreachable poller #1]
          24177:20130326:085508.657 server #11 started [poller #9]
          24176:20130326:085508.712 server #10 started [poller #8]
          24182:20130326:085508.762 server #16 started [poller #14]
          24212:20130326:085507.567 server #34 started [escalator #1]
          24198:20130326:085509.125 housekeeper deleted: 848 records from history and trends, 0 records of deleted items, 0 events, 0 alerts, 0 sessions
          24204:20130326:085509.147 server #29 started [discoverer #1]
          24186:20130326:085606.776 cannot send list of active checks to [127.0.0.1]: host [10.70.9.63] not found
          24186:20130326:085806.948 cannot send list of active checks to [127.0.0.1]: host [10.70.9.63] not found
          24186:20130326:090006.111 cannot send list of active checks to [127.0.0.1]: host [10.70.9.63] not found
          24186:20130326:090206.287 cannot send list of active checks to [127.0.0.1]: host [10.70.9.63] not found
          $


          outcomming of netstat -ltn;

          $ netstat -ltn
          Active Internet connections (only servers)
          Proto Recv-Q Send-Q Local Address Foreign Address State
          tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN
          tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:60615 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:8400 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:8402 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:980 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
          tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
          tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
          tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
          $

          Comment

          • Renate
            Member
            • Apr 2008
            • 34

            #6
            Looking better to the log of the agentd, the active_checks wasn't working correct. So i search in this forum again.
            The hostname in de zabbix-agent.conf should be the same as in the frondend, see configuration/ Host/ Host name

            problem solved....and going on with the next challenge

            24287:20130326:093206.694 refresh_active_checks('127.0.0.1',10051)
            24287:20130326:093206.694 Sending [{
            "request":"active checks",
            "host":"xx.xx.x.xx"}]
            24287:20130326:093206.694 Before read
            24287:20130326:093206.702 Got [{
            "response":"failed",
            "info":"host [xx.xx.x.xx] not found"}]

            24287:20130326:093206.702 In parse_list_of_checks()
            24287:20130326:093206.702 In disable_all_metrics()
            24287:20130326:093206.702 No active checks on server: host [xx.xx.x.xx] not found
            24287:20130326:093206.703 In process_active_checks('127.0.0.1',10051)
            24287:20130326:093206.703 End of process_active_checks()

            Used the right hostname in de zabbix-agentd.conf and the logging now;

            30952:20130326:155339.099 refresh_active_checks('127.0.0.1',10051)
            30952:20130326:155339.100 Sending [{
            "request":"active checks",
            "host":"Zabbix_server"}]
            30952:20130326:155339.100 Before read
            30952:20130326:155339.103 Got [{
            "response":"success",
            "data":[]}]

            30952:20130326:155339.103 In parse_list_of_checks()
            30952:20130326:155339.103 In disable_all_metrics()
            30952:20130326:155339.103 In process_active_checks('127.0.0.1',10051)
            30952:20130326:155339.103 End of process_active_checks()

            Comment

            Working...