Ad Widget

Collapse

windows-agentd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patrickpeng
    Junior Member
    • Jul 2006
    • 26

    #1

    windows-agentd

    hello,
    When I install the zabbixw32 into windows xp, it shows successful installed, and then I set the ListenIP to my host IP , but when I run "zabbixw32 test", the system shows:Error: unknow option :ListenIP , can anyone tell me what's going on here? Or anybody who can give me an example on how to set the .conf file of zabbix-agent in windows OS?
  • mbjoerling
    Member
    • May 2006
    • 52

    #2
    Hi Patrick

    Try setting the host IP to 127.0.0.1, or Localhost and see if that works.

    Comment

    • rose
      Junior Member
      • Jul 2006
      • 11

      #3
      agent

      Hi PatrikPeng,

      I hope you 're ok now. I 'm sorry, I cant help you. But maybe you can.
      Can yow tell me how you make your W32 install?

      I cant' start ZabbixW32.exe.
      What's more, in the configuration menu, the monitored host is set not available and the gethostbyname function failed.

      I tried to launch the.bat : c\ Documents and Settings .....win32floppy> install.bat test 172.16.19.2 c:\Program Files\zabbix\zabbix_agent.conf
      I got this error message
      Installing Zabbix Agent files and
      INSTALL ERROR: Can't copy file "..ZabbixW32.exe" in to c:\Program!


      Could you please help me and give me some ideas.
      Regards
      Rose

      Comment

      • dantheman
        Senior Member
        • May 2006
        • 209

        #4
        Code:
        Server=10.2.1.123
        
        # Server port for sending active checks
        
        ServerPort=10051
        
        # Unique hostname. Required for active checks.
        
        Hostname=aub104
        
        # 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=2
        
        # How often refresh list of active checks. 2 minutes by default.
        
        #RefreshActiveChecks=20
        
        # Disable active checks. The agent will work in passive mode listening server.
        
        DisableActive=0
        
        #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 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=5
        This is my config file for a Windows XP system, I think i have more options in there than are necessary... if you open up the command line and go to the folder where the zabbix agent is installed, you can run zabbix232 check-config and it will tell you what errors if any, it finds with the config file and what line # they are on.

        Comment

        • patrickpeng
          Junior Member
          • Jul 2006
          • 26

          #5
          hello
          Thanks for all you help , now it works all right, I used to set wrong zabbix-agentd.conf, here I write out my step on how to set windows-agentd in windows xp:
          1. download the zabbix source package, not just the windows-agentd, because you need to make a zabbix-agentd.conf file, and this is contained in the zabbix package, under the file misc/conf
          2. copy the " zabbixW32.exe " to c:/" and also copy the zabbix_agentd.conf from "misc/conf" to "c:/", because the default path of zabbix_agentd.conf is "c:/".
          3.run "zabbixW32.exe install" under the Ms-Dos, or if you put your zabbix_agentd.conf in other path, then run
          "zabbixW32.exe --config <the path where you put your zabbix_agentd.conf> install"
          4. after step 3, the windows-agent should be installed already, then config the zabbix_agentd.conf. open this file using notepad , you need to set the server IP to what is your server IP is, remeber to delete the "#" infront it. and also the "server port" and "Listen port", do not change anything else any more, except the "Logfile" and "pidfile", you can put "#" infront of them or you can change the path of them, do not use the default, because there is no tmp file or var/tmp file in windows system. save all you sets.
          5. run " zabbixW32 test" to test the config file, if the screen shows : press ESC to exit, then it should be ok
          6. run " zabbixw32 start" to start the agent, hopefully you can monitor the windows now.
          do not forget to create a new host and let it link to the item of window_t .


          I am a chinese guy, sorry for my bad English. if you can't understand ,try to guess or ask someone else.

          Comment

          • rose
            Junior Member
            • Jul 2006
            • 11

            #6
            hi everybody

            thanks a lot for your help

            Comment

            Working...