Ad Widget

Collapse

Problem with Zabbix on Windows machines

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sid
    Member
    • Jul 2006
    • 44

    #1

    Problem with Zabbix on Windows machines

    Hello,

    I am installing Zabbix on a couple of servers with different OSs'. I seem to be successful on all except windows boxes. However, all my windows boxes show a "connection reset by peer" error.

    I installed the newest Zabbix pre-compiled agent for Windows, v1.1. I checked the processes and zabbix_agentd is running. I checked ports, everything looks correct. I couldn't find an error log for the agents.

    Does anybody have any idea what could be wrong? I am curious about one thing, the address of the PID file: PidFile=c:\Zabbix\zabbix_agentd.pid. However, I cannot seem to find any PID file. Is this just an address for allocation sake? Or is this a file that I actually have to put up myself?

    Thanks for any help possible.
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    Windows doesn't use the PID file.

    Can you post your config file for the windows agents so we can see how you are setting them up?

    Comment

    • sid
      Member
      • Jul 2006
      • 44

      #3
      Here is the conf file i'm using:

      # 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=<zabbixserver>

      # Server port for sending active checks

      #ServerPort=10051

      # Unique hostname. Required for active checks.

      Hostname=<agent_server>

      # 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=3

      # Name of PID file

      PidFile=c:\Zabbix\zabbix_agentd.PID

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

      LogFile=c:\Zabbix\zabbix_agentd.log

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

      Timeout=30

      ####### 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

      Comment

      • dantheman
        Senior Member
        • May 2006
        • 209

        #4
        Was there no error log showing up at LogFile=c:\Zabbix\zabbix_agentd.log ?

        Try opening up a command prompt, navigate to your zabbix agent directory and run zabbixw32 check-config that will tell you if it finds any errors with the config file.

        Comment

        • befortin
          Member
          • Jul 2005
          • 48

          #5
          Can you telnet your Zabbix client from the Zabbix server on port 10050?

          Comment

          • sid
            Member
            • Jul 2006
            • 44

            #6
            Here is the log:

            [21-Jul-2006 08:29:19] *************** Log file opened ****************
            [21-Jul-2006 08:29:19] Collector thread initialized successfully
            [21-Jul-2006 08:29:19] Zabbix Win32 Agent started
            [21-Jul-2006 08:29:19] Information: 1324 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 1320 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 1292 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 1288 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 2156 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 2284 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 2252 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 2168 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 1424 : Listen thread is Started.
            [21-Jul-2006 08:29:19] Information: 2244 : Listen thread is Started.
            When i try to telent, says :

            $ telnet server 10050
            Trying <IP Address>...
            Connected to server.domain.com (<IP Address>).
            Escape character is '^]'.
            Connection closed by foreign host.
            Thanks for the help.

            Comment

            • ericb
              Junior Member
              • Jul 2006
              • 24

              #7
              mine didnt work unitl i did the following on the agent conf

              192.168.24.98 is the ip of the zabbix server
              testserver is the name of the windows 2003 server


              server=192.168.24.98
              hostname=testserver


              i found when i used the hostname rather than ip i got errors.
              i found that if i didnt have the hostname bit in then eventlog monitoring didnt work

              so for me it was important to use the ip of the server rather than the name and if you want the eventlog monitor to work add the hostname line with name.


              and oh make sure you stop/start the agent if you make any changes to the agents conf

              Comment

              • sid
                Member
                • Jul 2006
                • 44

                #8
                that worked!!!!

                i can't believe it was the IP address.

                thank you all for the help.

                Comment

                Working...