Ad Widget

Collapse

Agentd Connection Lost

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kso
    Junior Member
    • Aug 2008
    • 9

    #1

    Agentd Connection Lost

    Hi ,


    From time to time, the connection from Agent (x64) is lost.

    Get value from agent failed. Error: ZBX_TCP_READ() failed [Connection reset by peer]

    I would like to restart automatically the agent service
    I can check the server is not listening anymore by verifying the tcp port:
    zabbix_agentd.exe -t net.tcp.port[HOSTNAME,10050]
    if 0 -> agent is down
    or by using simple check tcp,HOSTNAME,10050
    I can add a trigger to alert
    I can restart the service on the windows command line or script
    net stop "ZABBIX Agent"
    net start "ZABBIX Agent"

    As the agent in this state is disabled, i think to use external checks.
    But Does anybody know how can I Run the script to restart the service from the linux server Or is there another solution to restart automatically agentd ?
  • teferi
    Member
    • Jul 2008
    • 93

    #2
    "Error: ZBX_TCP_READ() failed [Connection reset by peer]" Doesn't always mean that agent is down.

    If you want to restart smth on linux/BSD-like systems - it's usually distribution-dependant and you might see some sample scripts for different distributions, that come with zabbix. You can connect via ssh and run smth like "/etc/init.d/zabbix_agentd restart" on Debian/Ubuntu for example

    Comment

    • Kso
      Junior Member
      • Aug 2008
      • 9

      #3
      Thank you teferi for your reply.

      I monitor Windows machine from a linux server.
      The problem is that when the connection is lost
      between my windows agent and the linux zabbix server
      i want to restart windows zabbix agent service in order to
      recreate the connection.

      From the linux zabbix server i can verify that the windows agent is listening on port 10050.
      When i detect that it is no more listening, i would like to restart the windows agent automatically.

      Is there a way to do it ?

      Comment

      • teferi
        Member
        • Jul 2008
        • 93

        #4
        Originally posted by Kso
        Thank you teferi for your reply.

        From the linux zabbix server i can verify that the windows agent is listening on port 10050.
        When i detect that it is no more listening, i would like to restart the windows agent automatically.

        Is there a way to do it ?
        Unless you have some tools that can do it via RDP or smth alike - I do not know how to perform what you want =) Sorry =)

        Comment

        Working...