Ad Widget

Collapse

Zabbix 1.4.4 agent on Windows collect no data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fredfire
    Junior Member
    • Feb 2008
    • 13

    #1

    Zabbix 1.4.4 agent on Windows collect no data

    Ok I installed Zabbix 1.4.4 on my server Debian etch.

    The localhost is collecting data perfectly.

    Then When I add windows hosts, I add their IP.
    Install the agent and put a config file.

    Code:
    # This is config file for zabbix_agentd
    # To get more information about ZABBIX, go http://www.zabbix.com
    
    ############ GENERAL PARAMETERS #################
    
    # 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=10.131.56.110
    
    # Server port for sending active checks
    
    ServerPort=10051
    
    # Unique hostname. Required for active checks.
    
    Hostname=blx012-debian01
    
    # Listen port. Default is 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
    
    # How often refresh list of active checks. 2 minutes by default.
    
    RefreshActiveChecks=120
    
    # Disable active checks. The agent will work in passive mode listening server.
    
    #DisableActive=1
    
    # Enable remote commands for ZABBIX agent. By default remote commands disabled.
    
    EnableRemoteCommands=1
    
    # 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=4
    
    # Name of PID file
    
    #PidFile=
    
    # Name of log file.
    # If not set, syslog will be used
    
    LogFile=c:\zabbix_agentd.log
    
    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30
    
    Timeout=3
    
    ####### 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=mysql.version,mysql -V

    Then I get this error and on the server no data is collected.
    I get few things like this ZBXDD for host information.


    This is a small part of the log file on my client Windows xp

    Code:
      2232:20080226:100827 Before read
      2232:20080226:100827 Get active checks error: ZBX_TCP_READ() failed [Une connexion existante a dû être fermée par l'hôte distant.
    
    ]
      2232:20080226:100827 Getting list of active checks failed. Will retry after 60 seconds
      2216:20080226:100927 zabbix_agentd collector stopped
      2196:20080226:100927 thread [0] is terminated
      3616:20080226:100929 zabbix_agentd started. ZABBIX 1.4.4.
      3464:20080226:100929 zabbix_agentd collector started
       820:20080226:100929 zabbix_agentd listener started
      2408:20080226:100929 zabbix_agentd listener started
      1104:20080226:100929 zabbix_agentd listener started
       988:20080226:100929 zabbix_agentd active check started [10.131.56.110:10051]
      3464:20080226:100929 In GetCounterName() [index:6]
       988:20080226:100929 In init_active_metrics()
       988:20080226:100929 In refresh_metrics('10.131.56.110',10051)
       988:20080226:100929 get_active_checks('10.131.56.110',10051)
      3464:20080226:100929 In GetCounterName() [index:238]
       988:20080226:100929 Sending [ZBX_GET_ACTIVE_CHECKS
    blx012-debian01
    ]
      3464:20080226:100929 In GetCounterName() [index:6]
       988:20080226:100929 Before read
      3464:20080226:100929 In GetCounterName() [index:238]
       988:20080226:100929 Get active checks error: ZBX_TCP_READ() failed [Une connexion existante a dû être fermée par l'hôte distant.
    
    ]
      3464:20080226:100929 In GetCounterName() [index:44]
       988:20080226:100929 Getting list of active checks failed. Will retry after 60 seconds
      3464:20080226:100929 In GetCounterName() [index:2]
       988:20080226:101030 get_active_checks('10.131.56.110',10051)
       988:20080226:101030 Sending [ZBX_GET_ACTIVE_CHECKS
    blx012-debian01
    ]
       988:20080226:101030 Before read
       988:20080226:101030 Get active checks error: ZBX_TCP_READ() failed [Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
    
    ]
       988:20080226:101030 Getting list of active checks failed. Will retry after 60 seconds
       988:20080226:101131 get_active_checks('10.131.56.110',10051)
       988:20080226:101131 Sending [ZBX_GET_ACTIVE_CHECKS
    blx012-debian01
    ]
       988:20080226:101131 Before read
       988:20080226:101131 Get active checks error: ZBX_TCP_READ() failed [Une connexion existante a dû être fermée par l'hôte distant.
    
    ]
       988:20080226:101131 Getting list of active checks failed. Will retry after 60 seconds
  • BenP
    Member
    • Aug 2007
    • 35

    #2
    Hi,

    Try a telnet from the monitored server to your server on 10051 port :

    telnet 10.131.56.110 10051 you must have a connection establieshed.


    Check on your server configuration (i.e. :/etc/zabbix/zabbix_server.conf) the lines:
    ListenIP=10.131.56.110
    ListenPort=10051

    Check for open port on firwall (10050 for client, 10051 for server).

    Maybe posting your server conf might help.

    BenP

    Comment

    • fredfire
      Junior Member
      • Feb 2008
      • 13

      #3
      Seems the telnet do not works. It closes the windows. Cmd or putty dosen't work.
      iptables -nL show that it accept everything.

      heres my server conf.

      Code:
      # This is config file for ZABBIX server process
      # To get more information about ZABBIX, 
      # go http://www.zabbix.com
      
      ############ GENERAL PARAMETERS #################
      
      # This defines which server this is.
      # Default value 1
      # This parameter must be between 1 and 255
      Server=1
      
      # Number of pre-forked instances of pollers
      # Default value is 6
      # This parameter must be between 5 and 255
      StartPollers=6
      
      # Number of pre-forked instances of trappers
      # Default value is 5
      # This parameter must be between 2 and 255
      StartTrappers=5
      
      # Listen interface for trapper. Trapper will listen all network interfaces
      # if this parameter is missing.
      ListenIP=10.131.56.110
      
      # Listen port for trapping. Default port number is 10051. This parameter 
      # must be between 1024 and 32767
      
      ListenPort=10051
      
      # How often ZABBIX will perform housekeeping procedure
      # (in hours)
      # Default value is 1 hour
      # Housekeeping is removing unnecessary information from
      # tables history, laert, and alarms
      # This parameter must be between 1 and 24
      
      HousekeepingFrequency=1
      
      # How often ZABBIX will try to send unsent alerts
      # (in seconds)
      # Default value is 30 seconds
      SenderFrequency=30
      
      # Uncomment this line to disable housekeeping procedure
      
      #DisableHousekeeping=1
      
      # 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=4
      
      # Specifies how long we wait for agent (in sec)
      # Must be between 1 and 30 
      Timeout=5
      
      # After how many seconds of unavailability treat a host as unavailable
      UnavailablePeriod=20
      
      # Name of PID file
      
      PidFile=/var/run/zabbix-server/zabbix_server.pid
      
      # Name of log file
      # If not set, syslog is used
      
      LogFile=/var/log/zabbix-server/zabbix_server.log
      
      #Location for custom alert scripts
      AlertScriptsPath=/usr/local/sbin/
      
      #Location of 'fping. Default is /usr/sbin/fping
      FpingLocation=/usr/bin/fping
      
      # Frequency of ICMP pings. Defauls is 30 second.
      #PingerFrequency=30
      
      # Database host name
      # Default is localhost
      
      DBHost=localhost
      
      # Database name
      
      DBName=zabbix
      
      # Database user
      
      DBUser=zabbix
      
      # Database password
      # Comment this line if no password used
      
      DBPassword=*********
      
      # Connect to MySQL using Unix socket?
      
      #DBSocket=/tmp/mysql.sock
      Last edited by fredfire; 26-02-2008, 18:43.

      Comment

      • BenP
        Member
        • Aug 2007
        • 35

        #4
        Originally posted by fredfire
        Seems the telnet do not works. It closes the windows. Cmd or putty dosen't work.
        iptables -nL show that it accept everything.

        heres my server conf.
        can you try on the server:

        # netstat -anp | grep 10051

        you must have something like that
        tcp 0 0 <server_ip>:10051 0.0.0.0:* LISTEN 30235/zabbix_server

        Comment

        • fredfire
          Junior Member
          • Feb 2008
          • 13

          #5
          tcp 0 0 10.131.56.110:10051 0.0.0.0:* LISTEN 26202/zabbix_server
          tcp 0 0 10.131.56.110:10051 10.131.56.7:3216 TIME_WAIT -


          Thats the answer of netstat -anp |grep 10051
          10.131.56.7 is one of my servers.. wich I installed the agent.


          Edit: for port 10050 I have a bunch of connections in time_wait.
          All from my server to server

          tcp 0 0 10.131.56.110:10051 10.131.56.110:**** TIME_WAIT -
          Last edited by fredfire; 26-02-2008, 20:59.

          Comment

          • BenP
            Member
            • Aug 2007
            • 35

            #6
            Originally posted by fredfire
            tcp 0 0 10.131.56.110:10051 0.0.0.0:* LISTEN 26202/zabbix_server
            tcp 0 0 10.131.56.110:10051 10.131.56.7:3216 TIME_WAIT -


            Thats the answer of netstat -anp |grep 10051
            10.131.56.7 is one of my servers.. wich I installed the agent.

            Mine have 2 different states : CLOSE_WAIT or SYN_RECV ....

            If you trie some manual checks, did you get any answer?

            For example you can launch from server:
            # zabbix_get -s 10.131.56.7 -k agent.version

            It must return the agent version number, mine is 1.4.4

            Comment

            • fredfire
              Junior Member
              • Feb 2008
              • 13

              #7
              Wow really weird.


              When I request version on the server. I get ZBXDD thing but on my client log it says
              1752:20080226:140436 Requested [agent.version]
              1752:20080226:140436 Sending back [1.4.4]

              where's the problem?

              For sure my client seems to be working. But the comunication between both seems fucked up.
              I tried 2 machines in virtual machine server and XP. Same answer.
              Last edited by fredfire; 26-02-2008, 21:11.

              Comment

              • BenP
                Member
                • Aug 2007
                • 35

                #8
                can you post your server log located there: /var/log/zabbix-server/zabbix_server.log

                Comment

                • fredfire
                  Junior Member
                  • Feb 2008
                  • 13

                  #9
                  I was in debug 4 level but now its in level 3.

                  I restarted server. We can see that the server is receiving the wrong data...
                  at least its something but we do not have what we are supposed to get.


                  Code:
                  002936:20080226:142344 ZABBIX server is down.
                  002974:20080226:142344 Starting zabbix_server. ZABBIX 1.1.4.
                  002975:20080226:142344 server #1 started [Alerter]
                  002976:20080226:142344 server #2 started [Timer]
                  002977:20080226:142344 server #3 started [ICMP pinger]
                  002983:20080226:142344 server #6 started [Trapper]
                  002981:20080226:142344 server #4 started [Poller for unreachable hosts. SNMP:ON]
                  002982:20080226:142344 server #5 started [Poller. SNMP:ON]
                  002984:20080226:142344 server #7 started [Trapper]
                  002985:20080226:142344 server #8 started [Trapper]
                  002986:20080226:142344 server #9 started [Trapper]
                  002987:20080226:142344 server #10 started [Trapper]
                  002974:20080226:142344 server #0 started [Housekeeper]
                  002974:20080226:142344 ZABBIX server is up.
                  002974:20080226:142344 Executing housekeeper
                  002974:20080226:142345 Deleted 0 records from history and trends
                  002974:20080226:142345 Next housekeeper run is after 1h
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [proc.num[httpd]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD	] is not sutable for [vm.memory.size[free]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [system.swap.size[,free]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [vfs.file.size[c:\msdos.sys]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [proc.num[]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [vm.memory.size[total]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [system.swap.size[,total]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [vfs.fs.size[c:,free]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [system.cpu.load[,avg15]@Fred] having type [0]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [system.uptime@Fred] having type [0]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [agent.ping@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [vfs.fs.size[c:,total]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [system.cpu.load[,avg1]@Fred] having type [0]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [vfs.file.cksum[c:\autoexec.bat]@Fred] having type [0]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [proc.num[,,run]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [vfs.fs.size[d:,total]@Fred] having type [3]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [system.cpu.load[,avg5]@Fred] having type [0]
                  002982:20080226:142643 Returning NOTSUPPORTED
                  002982:20080226:142643 Type of received value [ZBXD] is not sutable for [vfs.file.cksum[c:\config.sys]@Fred] having type [0]
                  002982:20080226:142643 Returning NOTSUPPORTED

                  Comment

                  • BenP
                    Member
                    • Aug 2007
                    • 35

                    #10
                    hum .... can you change the debug level on the agent to 2 (i.e):
                    DebugLevel=2

                    ZBXD seems to be debug message (?) ... restart the agent and try again?

                    Comment

                    • fredfire
                      Junior Member
                      • Feb 2008
                      • 13

                      #11
                      ZBXD seems to be the data that the agent send to the server.

                      This is the problem. The server receive this bad data but rthe agent is logging that he send good data.

                      There is a communication problem.

                      I will do the changes to debug level2 and retry.



                      Ok debug in level 2 does nothing...
                      004498:20080226:145323 One server process died. Shutting down...
                      004498:20080226:145323 ZABBIX server is down.
                      004527:20080226:145323 ZABBIX server is up.


                      thats all..
                      Last edited by fredfire; 26-02-2008, 22:11.

                      Comment

                      • BenP
                        Member
                        • Aug 2007
                        • 35

                        #12
                        ok, looking at your server log file,your version of zabbix server is .... a little bit older .... it's an 1.1.4 and the agents are 1.4.4 ....

                        You will be obliged to upgrade ...

                        Can you confirm with a
                        # zabbix_server -V

                        Mine return:
                        ZABBIX Server (daemon) v1.4.4 (17 December 2007)
                        Compilation time: Dec 18 2007 18:10:08

                        Your server agent might be an 1.1.4 too, making him able to "talk" with server ...

                        (Bon assez d'anglais pour ce soir ... nan?)

                        Comment

                        • fredfire
                          Junior Member
                          • Feb 2008
                          • 13

                          #13
                          That could be an idea... !!!

                          MY bad! v1.1.4


                          ( je parle français aussi )
                          Last edited by fredfire; 26-02-2008, 23:17.

                          Comment

                          Working...