Ad Widget

Collapse

Problem with zabbix agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heithem
    Junior Member
    • Sep 2010
    • 6

    #1

    Problem with zabbix agent

    Greetings ,

    I'm using the vmware suse zabbix server and a virtual windows xp, snmp is working but i cannot get the zabbix agent working, always getting the same message
    "Get value from agent failed: ZBX_TCP_READ() failed [Connection reset by peer]"
    My firewall is off and no antivirus on my virtual machine.
    I stopped the firewall of the server.
    I used Telnet command to verify the zabbix_agentd.exe on port 10050 but it responds failed to connect to port 10050.

    Please help
  • dima_dm
    Senior Member
    • Dec 2009
    • 2697

    #2
    See zabbix_agentd.conf
    Check IP Zabbix Server
    # List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
    # No spaces allowed. First entry is used for sending active checks.
    # Note that hostnames must resolve hostname->IP address and
    # IP address->hostname.

    Server=172.16.36.77

    and ListenIP
    # IP address to bind agent
    # If missing, bind to all available IPs
    #ListenIP=

    Comment

    • heithem
      Junior Member
      • Sep 2010
      • 6

      #3
      thank you for replying so fast,
      the agent config file contains the following

      #############################

      Server=192.168.246.129
      StartAgents=5
      DebugLevel=3
      PidFile=/var/tmp/zabbix_agentd.pid
      LogFile=c:\zabbix_agentd.log
      Timeout=3

      #############################

      still have the same problem

      i'm asking if you can remote my computer with teamviewer or any other program and see what's going wrong, thanks in advance

      Comment

      • dima_dm
        Senior Member
        • Dec 2009
        • 2697

        #4
        This problem may be on zabbix_server or zabbix_agent.
        Change zabbix_agentd.conf
        Server=192.168.246.129,127.0.0.1
        Restart zabbix_agent
        And check from Windows Server
        Code:
        zabbix-get -s 127.0.0.1 -k system.uptime 
        47427179
        zabbix-get -s 127.0.0.1 -k agent.version
        1.8.2

        Comment

        • heithem
          Junior Member
          • Sep 2010
          • 6

          #5
          hi once again

          I did as you told me and here is the result of executing the commands:

          C:\>zabbix_get -s 127.0.0.1 -k agent.version
          1.8.3

          C:\>zabbix_get -s 127.0.0.1 -k system.uptime
          19261

          Comment

          • dima_dm
            Senior Member
            • Dec 2009
            • 2697

            #6
            You must find problems on network or Zabbix Server (firewall, SELinux etc).
            Check from Zabbix Server
            zabbix_get -s IP -k system.uptime
            IP - IP Windows Server with zabbix_agent
            Last edited by dima_dm; 14-09-2010, 19:27.

            Comment

            • heithem
              Junior Member
              • Sep 2010
              • 6

              #7
              Finally it's working now,
              the error was in zabbix-server.conf I put ListenIP=192.163.246.129
              Trapper was not listening to all network interfaces, he was listening only to him self, that's why he could not see other agents.
              Now the problem is resolved by deleting that line from server config file.
              thank you for your help.

              Comment

              Working...