Ad Widget

Collapse

Connection Reset By peer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sojeshj
    Junior Member
    • Apr 2005
    • 9

    #1

    Connection Reset By peer

    Hi,

    I have a linux box where the Zabbix server is running. In the same network, there is another windows box, where the agent is running. Zabbix service on the windows box shows it is running. My server IP is 192.168.10.2 and the Windows client is 192.168.10.137. The zabbix_agentd.conf on Windows is given below. The problem I'm facing is the server show "Connection reset by peer" in the Host section of the admin configuration. It is listening on port 10050 and shows status as "Monitored", but availability is "Not Available" and Error shows "Connection reset by peer. Please help.

    ------------
    # This is config file for zabbix_agentd
    # To get more information about ZABBIX, go http://www.zabbix.com

    ############ GENERAL PARAMETERS #################

    # IP address of ZABBIX server. No spaces allowed.

    #Server=127.0.0.1
    Server=192.168.10.2

    # Listen port. Default is 10050

    #ListenPort=10050
    ListenPort=10050

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

    #ListenIP=127.0.0.1

    # Number of pre-forked instances of zabbix_agentd.
    # Default value is 5
    # This parameter must be between 1 and 16

    StartAgents=5

    # Specifies debug level
    # 0 - debug is not created
    # 1 - critical information
    # 2 - error information
    # 3 - warnings (default)
    # 4 - for debugging (produces lots of information)

    DebugLevel=3

    # Name of PID file

    PidFile=/var/tmp/zabbix_agentd.pid

    # Name of log file.
    # If not set, syslog will be used

    LogFile=/tmp/zabbix_agentd.log

    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30

    Timeout=3

    ##### Experimental options. Use with care ! #####

    # Get rid of sockets in TIME_WAIT state
    # This will set socket option SO_LINGER

    # NoTimeWait=1

    ##### End of experimental options

    ####### USER-DEFINED MONITORED PARAMETERS #######
    # Format: UserParameter=<key>,<shell command>
    # Note that shell command must not return empty string or EOL only

    #UserParameter=system[test],who|wc -l

    ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
    ### Change -u<username> and add -p<password> if required

    #UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l
    #UserParameter=mysql[uptime],mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
    #UserParameter=mysql[threads],mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
    #UserParameter=mysql[questions],mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
    #UserParameter=mysql[slowqueries],mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
    #UserParameter=mysql[qps],mysqladmin -uroot status|cut -f9 -d":"
    #UserParameter=version[mysql],mysql -V
    -----------

    Also, the zabbix_agentd log on Windows box is as follows:
    ************************************************** ************
    [17-Apr-2005 05:14:22] Log file opened
    [17-Apr-2005 05:14:22] Collector thread initialized successfully
    [17-Apr-2005 05:14:22] Zabbix Win32 Agent started
    ----------

    I have also tried with port 10000 with no luck.

    Please let me know what the issue might be.

    Thanks,
    Soj
    Last edited by sojeshj; 17-04-2005, 14:21.
  • sojeshj
    Junior Member
    • Apr 2005
    • 9

    #2
    Also, this is the server log (zabbix_server.conf):

    ----
    001200:20050417:210100 Connection reset by peer. Host [Bm.com] Parameter [ping]
    001200:20050417:210100 Host [Bm.com] will be checked after [60] seconds
    001200:20050417:210200 Connection reset by peer. Host [Bm.com] Parameter [ping]
    001200:20050417:210200 Host [Bm.com] will be checked after [60] seconds
    -------

    Please let me know if any of you have faced this issue and if so, what the fix for this issues is?

    Thanks,
    Soj

    Comment

    • sauron
      Senior Member
      • Jan 2005
      • 215

      #3
      You set use ip ?

      Comment

      • Lovespider
        Member
        • Sep 2004
        • 99

        #4
        I posted the same problem here http://www.zabbix.com/forum/showthread.php?t=605
        No one answered.
        I've tryed changing the account the service use but no luck.

        Comment

        • sauron
          Senior Member
          • Jan 2005
          • 215

          #5
          First use tcpdump for view zabbix activity.
          Second i'm think zabbix try connected on bm.com ( 216.200.104.80 ).

          Comment

          • rickardp
            Junior Member
            • Dec 2004
            • 27

            #6
            As Sauron said mark the checkbox in the host setting "Use IP address" for you host "Bm.com" and you are probably set to go.

            Generally I try to connect using good old telnet to the agent on the agent port
            "telnet 192.168.1.47 10050" and just quickly paste "version[zabbix_agent]" and press return (you got 5 secs to do it) and the agent will return the current version.

            It's an easy first check to do.

            Comment

            • Lovespider
              Member
              • Sep 2004
              • 99

              #7
              Just to put this topic again on the top.
              I tryed to telnet to the agent port but after passing the string, it shut down the connection (the infamous "connection reset by peer") like it was an error inside the agent.
              Tryed with multiple admin users to start the service but nope.
              Any suggestions about testing?

              Lovespider

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Do you have correct settings for Server in zabbix_agentd.conf?
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • Lovespider
                  Member
                  • Sep 2004
                  • 99

                  #9
                  Yes, I checked all the config files. I also checked the logs in verbose mode but it seems that the agent starts nicely but every query reset the peer.
                  Permissions are ok and also the basic services are running...I really don't know where to look at

                  Comment

                  • Wolfgang
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified Specialist
                    • Apr 2005
                    • 116

                    #10
                    You might want to check the following:

                    -do you use windows xp with sp2? If so, try disabling the firewall.

                    -check with with netstat -na wether the windows client does listen on the required port. zabbix uses tcp on default port 10050.

                    -do you use any other software firewall? If so, try disabling the firewall.

                    -did you set the server correct on the zabbix_agentd.conf?

                    also, the settings of your pid and logfile in the zabbix_agentd.conf are wrong!
                    on a windows box, you should not use:

                    Code:
                    # Name of PID file
                    PidFile=/var/tmp/zabbix_agentd.pid
                    # Name of log file.
                    # If not set, syslog will be used
                    LogFile=/tmp/zabbix_agentd.log
                    but something like c:\ etc.



                    -
                    http://www.intellitrend.de
                    Specialised in monitoring large environments and Zabbix API programming.

                    Comment

                    • Lovespider
                      Member
                      • Sep 2004
                      • 99

                      #11
                      Well, I got problems on Windows Server 2003 not XP so there is no firewall to disable BUT I made a Netstat -a and there is NO listener on the port of Zabbix (I defined 9535 to avoid other services).
                      This is a good step to start solving this issue...do you have any idea now, why the zabbix listener does not appear?
                      In the meanwhile I'll investigate more further in this directions.....

                      Comment

                      • Lovespider
                        Member
                        • Sep 2004
                        • 99

                        #12
                        I reinstalled everything and now zabbix server says "Connection refused" but doing a telnet on that port and doing a quick paste of the version command now I got:

                        telnet xxx.xxx.xxx.xxx 10000
                        Trying xxx.xxx.xxx.xxx...
                        Connected to xxx.xxx.xxx.xxx.
                        Escape character is '^]'.
                        version[zabbix_agent]
                        ZBX_NOTSUPPORTED
                        Connection closed by foreign host.

                        I feel we are near the solution...

                        Comment

                        • Lovespider
                          Member
                          • Sep 2004
                          • 99

                          #13
                          SOLVED!!
                          I managed to start this bloody server...
                          For the future:

                          1) check that server address in agentd.conf is correct
                          2) no matter the user you start the service in windows, it works
                          3) check the port into zabbix
                          4) with multiple NIC, try to force the binding address in agentd.conf

                          Millions of thanks to everybody for support and happy capturing!

                          Lovespider

                          Comment

                          • Wolfgang
                            Senior Member
                            Zabbix Certified Trainer
                            Zabbix Certified Specialist
                            • Apr 2005
                            • 116

                            #14
                            Thank you for the summary of how you finally solved this
                            http://www.intellitrend.de
                            Specialised in monitoring large environments and Zabbix API programming.

                            Comment

                            Working...