Ad Widget

Collapse

Help with client install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathanb
    Junior Member
    • Sep 2011
    • 10

    #1

    Help with client install

    Hello everyone,

    I'm trying to get zabbix working, but it's very difficult. Zabbix has been installed, but now I'm trying to get a Win 7 64bit workstation into the zabbix webgui. I downloaded the Windows agent and somehow get it to work sort of.

    This is my 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=*secret ip*
    
    # Server port for sending active checks
    
    #ServerPort=10051
    
    # Unique hostname. Required for active checks.
    
    Hostname=localhost
    
    # 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
    # 4 - information (default)
    # 5 - for debugging (produces lots of information)
    
    DebugLevel=4
    
    # Name of PID file
    
    PidFile=/var/run/zabbix-agent/zabbix_agentd.pid
    
    # Name of log file.
    # If not set, syslog will be used
    
    LogFile=C:\win64\zabbix_agentd.log
    
    # Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
    #LogFileSize=1
    
    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30
    
    Timeout=3
    
    
    
    
    
    
    
    PerfCounter= NetIn,"\Network Interface(RedHat PV NIC Driver _2)\Bytes Received/sec",1
    PrefCounter= NetOut,"\Network Interface(RedHat PV NIC Driver _2)\Bytes Received/sec",1
    
    
    
    
    ####### 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":"
    Can someone please help me?
  • HullZabbix
    Senior Member
    • Feb 2011
    • 104

    #2
    You need to edit your config file on the w7 workstation to give it a unique hostname
    e.g.
    Code:
    # Unique hostname. Required for active checks.
    
    Hostname=w764workstation
    You need to restart the zabbix agent service on the windows machine everytime you make a change to the .conf file.

    Then you need to create a host in the zabbix gui. This host needs to be setup with the same name as in the .conf file.

    Comment

    • Jonathanb
      Junior Member
      • Sep 2011
      • 10

      #3
      Hello AxidaZabbix and thank you for your reply.

      I have done what you said, but when I go to my services.msc and manually start the zabbix service it gives me an error with terminated unexpectedly.

      Do you know how I start it?

      [EDIT]

      I found out how to start it by changing the location of the conf file to c:\. Do you know how I can change that?

      ---
      Jonathanb
      Last edited by Jonathanb; 13-09-2011, 16:42.

      Comment

      • HullZabbix
        Senior Member
        • Feb 2011
        • 104

        #4
        Just comparing our .conf files, there seems to be quite a bit of difference between them. How did you install the zabbix agent on windows?

        I would be tempted to uninstall it and reinstall.

        I've uploaded the .exe we're using on our windows machines (XP/W7, server 2000/2003/2008 tested) to here if you get no where with yours:

        http://www.mediafire.com/file/9wjib9..._installer.zip
        Last edited by HullZabbix; 14-09-2011, 17:07.

        Comment

        • Jonathanb
          Junior Member
          • Sep 2011
          • 10

          #5
          Well thank you for the installer! It did the job, but how did you get the installer because on the download page of zabbix I can only find a zipped file on the http://www.zabbix.com/download.php site. Where is the installer?

          Comment

          • HullZabbix
            Senior Member
            • Feb 2011
            • 104

            #6
            That's good to hear. I honestly can't remember where it came from.

            I work in a company and it's always been around somewhere, I've also asked my colleague, he's not sure either. Sorry

            Comment

            • Jonathanb
              Junior Member
              • Sep 2011
              • 10

              #7
              It doesn't really matter now, because it works! Thanks again for the installer.

              Comment

              • aniketbendre
                Junior Member
                • Nov 2011
                • 3

                #8
                hi i am trying to use windows agent(active) on my windows XP machine. However in the host section the availability against XP machine is greyed out. Also i have made changes to conf file as per active agents, still it doesnt seem to run.. Kindly guide me... I would be thankful to you..This is a config file for Zabbix Agent (Windows)
                Code:
                # To get more information about Zabbix, go to http://www.zabbix.com
                
                ############ GENERAL PARAMETERS #################
                
                ### Option: DebugLevel
                #	Specifies debug level
                #	0 - no debug
                #	1 - critical information
                #	2 - error information
                #	3 - warnings
                #	4 - for debugging (produces lots of information)
                #
                # Mandatory: no
                # Range: 0-4
                # Default:
                  DebugLevel=4
                
                ### Option: LogFile
                #	Name of log file.
                #	If not set, Windows Event Log is used.
                #
                # Mandatory: no
                # Default:
                # LogFile=
                
                LogFile=c:\zabbix\zabbix_agentd.log
                
                ### Option: LogFileSize
                #	Maximum size of log file in MB.
                #	0 - disable automatic log rotation.
                #
                # Mandatory: no
                # Range: 0-1024
                # Default:
                # LogFileSize=1
                
                ### Option: SourceIP
                #	Source IP address for outgoing connections.
                #
                # Mandatory: no
                # Default:
                # SourceIP=
                
                ### Option: EnableRemoteCommands
                #	Whether remote commands from Zabbix server are allowed.
                #	0 - not allowed
                #	1 - allowed
                #
                # Mandatory: no
                # Default:
                  EnableRemoteCommands=1
                
                ### Option: LogRemoteCommands
                #	Enable logging of executed shell commands as warnings.
                #	0 - disabled
                #	1 - enabled
                #
                # Mandatory: no
                # Default:
                # LogRemoteCommands=0
                
                ##### Passive checks related
                
                ### Option: Server
                #	List of comma delimited IP addresses (or hostnames) of Zabbix servers.
                #	No spaces allowed. First entry is used for receiving list of and sending active checks.
                #	If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
                #
                # Mandatory: yes
                # Default:
                # Server=
                
                Server=192.168.0.164
                
                ### Option: Hostname
                #	Unique, case sensitive hostname.
                #	Required for active checks and must match hostname as configured on the server.
                #	System hostname is used if undefined.
                #
                # Default:
                # Hostname=system.hostname
                
                Hostname=Windows XP
                
                ### Option: ListenPort
                #	Agent will listen on this port for connections from the server.
                #
                # Mandatory: no
                # Range: 1024-32767
                # Default:
                  ListenPort=10050
                
                ### Option: ListenIP
                #	Agent will listen on the specified interface.
                #
                # Mandatory: no
                # Default:
                # ListenIP=0.0.0.0
                
                ### Option: DisablePassive
                #	Disable passive checks. The agent will not listen on any TCP port.
                #	Only active checks will be processed.
                #	0 - do not disable
                #	1 - disable
                #
                # Mandatory: no
                # Default:
                # DisablePassive=0
                
                ##### Active checks related
                
                ### Option: DisableActive
                #	Disable active checks. The agent will work in passive mode listening for server.
                #
                # Mandatory: no
                # Default:
                  DisableActive=0
                
                ### Option: ServerPort
                #	Server port for retrieving list of and sending active checks.
                #
                # Mandatory: no
                # Default:
                  ServerPort=10051
                
                ### Option: RefreshActiveChecks
                #	How often list of active checks is refreshed, in seconds.
                #
                # Mandatory: no
                # Range: 60-3600
                # Default:
                  RefreshActiveChecks=120
                
                ### Option: BufferSend
                #	Do not keep data longer than N seconds in buffer.
                #
                # Mandatory: no
                # Range: 1-3600
                # Default:
                # BufferSend=5
                
                ### Option: BufferSize
                #	Maximum number of values in a memory buffer. The agent will send
                #	all collected data to Zabbix server or Proxy if the buffer is full.
                #
                # Mandatory: no
                # Range: 2-65535
                # Default:
                # BufferSize=100
                
                ### Option: MaxLinesPerSecond
                #	Maximum number of new lines the agent will send per second to Zabbix Server
                #	or Proxy processing 'log', 'logrt' and 'eventlog' active checks.
                #	The provided value will be overridden by the parameter 'maxlines',
                #	provided in 'log', 'logrt' or 'eventlog' item keys.
                #
                # Mandatory: no
                # Range: 1-1000
                # Default:
                # MaxLinesPerSecond=100
                
                ############ ADVANCED PARAMETERS #################
                
                ### Option: Alias
                #	Sets an alias for parameter. It can be useful to substitute long and complex parameter name with a smaller and simpler one.
                #	For example, if you wish to retrieve paging file usage in percents from the server,
                #	you may use parameter "perf_counter[\Paging File(_Total)\% Usage]", or you may define an alias by adding the following line to configuration file
                #	Alias = pg_usage:perf_counter[\Paging File(_Total)\% Usage]
                #	After that you can use parameter name "pg_usage" to retrieve the same information.
                #	You can specify as many "Alias" records as you wish.
                #	Aliases cannot be used for parameters defined in "PerfCounter" configuration file records.
                #
                # Mandatory: no
                # Range:
                # Default:
                
                ### Option: StartAgents
                #	Number of pre-forked instances of zabbix_agentd that process passive checks.
                #
                # Mandatory: no
                # Range: 1-100
                # Default:
                  StartAgents=3
                
                ### Option: Timeout
                #	Spend no more than Timeout seconds on processing
                #
                # Mandatory: no
                # Range: 1-30
                # Default:
                  Timeout=10
                
                ### Option: PerfCounter
                #	Syntax: <parameter_name>,"<perf_counter_path>",<period>
                #	Defines new parameter <parameter_name> which is an average value for system performance counter <perf_counter_path> for the specified time period <period> (in seconds).
                #	For example, if you wish to receive average number of processor interrupts per second for last minute, you can define new parameter "interrupts" as following:
                #	PerfCounter = interrupts,"\Processor(0)\Interrupts/sec",60
                #	Please note double quotes around performance counter path.
                #	Samples for calculating average value will be taken every second.
                #	You may run "typeperf -qx" to get list of all performance counters available in Windows.
                #
                # Mandatory: no
                # Range:
                # Default:
                
                ### Option: Include
                #	You may include individual files or all files in a directory in the configuration file.
                #
                # Mandatory: no
                # Default:
                # Include=
                
                # Include=c:\zabbix\zabbix_agentd.userparams.conf
                # Include=c:\zabbix\zabbix_agentd\
                
                ####### USER-DEFINED MONITORED PARAMETERS #######
                
                ### Option: UnsafeUserParameters
                #	Allow all characters to be passed in arguments to user-defined parameters.
                #	0 - do not allow
                #	1 - allow
                #
                # Mandatory: no
                # Range: 0-1
                # Default:
                # UnsafeUserParameters=0
                
                ### Option: UserParameter
                #	User-defined parameter to monitor. There can be several user-defined parameters.
                #	Format: UserParameter=<key>,<shell command>
                #	Note that shell command must not return empty string or EOL only.
                #	Example: UserParameter=system.test,echo 1
                #UserParameter=system.test,echo 1
                Attached Files

                Comment

                • Jonathanb
                  Junior Member
                  • Sep 2011
                  • 10

                  #9
                  Like always look at the logs of your server and the logs of the client which is located at c:\zabbix\zabbix_agentd.log if your conf is correct. Also try to find out if the ports are open at your server and if the windows firewall is activated on your xp machine.

                  Good luck.

                  Comment

                  • HullZabbix
                    Senior Member
                    • Feb 2011
                    • 104

                    #10
                    I'm pretty certain the hostname is case sensistive.

                    So in your zabbix web interface change the hostname to include the capital letter "Windows XP" like in your zabbix agent config.

                    Comment

                    • aniketbendre
                      Junior Member
                      • Nov 2011
                      • 3

                      #11
                      first of all sorry for giving late reply. i was out of station and hence didnt had access to computer. Thanks to both of you, Jonathanb your suggestion for looking into the logs helped a lot, also AxidaZabbix your statement is 100% perfect, it was case sensitivity issue. Thank you once again for your quick replies.. it helped me a lot

                      Comment

                      Working...