Ad Widget

Collapse

1.4: agent and server still fail to properly restart

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abi
    Member
    • Jun 2006
    • 81

    #1

    1.4: agent and server still fail to properly restart

    hi,

    the server/agent still fail to be restarted from the init scripts:

    Code:
     20147:20070531:084622 One child process died. Exiting ...
     20166:20070531:084622 zabbix_agentd started. ZABBIX 1.4.
     20166:20070531:084622 Listener failed with error: Cannot bind to port 10050 for server [ANY]. Error [Address already in use]. Another zabbix_agentd already running ?.
     20147:20070531:084624 ZABBIX Agent stopped
    seems like its still the same old REUSE ADDR issue, just that its now failing
    on *each* erstart, not occassionally ..
  • abi
    Member
    • Jun 2006
    • 81

    #2
    it helps adding a sleep statement (about 2 seconds) to the init scripts..
    not nice but ... well

    Comment

    • juampe
      Junior Member
      • Apr 2007
      • 17

      #3
      external

      If you are using external scripts, kill all external scritps before start again

      Comment

      • Farzad FARID
        Member
        • Apr 2007
        • 79

        #4
        Originally posted by abi
        it helps adding a sleep statement (about 2 seconds) to the init scripts..
        not nice but ... well
        Hi,

        That's what I did in my modified version of the Fedora Core init scripts.. Not nice but I know many packages that need this kind of delay.

        So unless the source code is modified upstream to reuse the socket more efficiently, I second the suggestion of adding "sleep" to the init script.

        Regards

        Comment

        • abi
          Member
          • Jun 2006
          • 81

          #5
          Originally posted by Farzad FARID
          Hi,

          That's what I did in my modified version of the Fedora Core init scripts.. Not nice but I know many packages that need this kind of delay.

          So unless the source code is modified upstream to reuse the socket more efficiently, I second the suggestion of adding "sleep" to the init script.

          Regards
          yeah well, there are several other init scripts in debian that do the same
          thing. A sleep statement during restart isnt *that* bad, as it doesnt slow
          down the bootup etc.

          abi@ke:~$ grep sleep /etc/init.d/* | grep -c sleep
          35

          seems to be common practice, ..

          Comment

          • fatiha
            Member
            • Nov 2007
            • 78

            #6
            Hi,

            Today I has the same problem, so I stopped zabbix_agentd and I killed external scripts and now it works ! So thank you juampe.

            Fatiha

            Comment

            Working...