Installing the Zabbix Agent client on Windows

Source: Internet
Author: User
Tags win32

Download
:

https://www.zabbix.com/downloads/3.4.0/zabbix_agents_3.4.0.win.zip

In the Windows system C-drive new Zabbix directory, unzip the downloaded installation package (Zabbix_agents_3.4.0.win.zip) into the c:/zabbix/directory:     zabbix_ Agents_3.4.0.win    ├── bin    │   ├── win32     │   │   ├── dev    │    │   │   ├── zabbix_sender.dll    │    │   │   └── zabbix_sender.lib    │    │   ├── zabbix_agentd.exe    │   │    ├── zabbix_get.exe    │   │   └──  zabbix_sender.exe    │   └── win64    │        ├── dev    │        │   ├── zabbix_sender.dll    │       │   └──  Zabbix_sender.lib    │       ├── zabbix_agentd.exe     │       ├── zabbix_get.exe     │       └── zabbix_sender.exe    └──  conf        └── zabbix_agentd.win.conf     The Conf directory is the agent configuration file     bin files that are stored under Windows 32-bit and 64-bit installers. Create a new Zabbix-agent.log text file in the c:/zabbix/directory
Configuration
To configure the C:\zabbix\conf\zabbix_agentd.win.conf file:
   logfile=c:\zabbix\zabbix-agent.log    server=192.168.1.59      serveractive=192.168.1.59     hostname=windows_36 
 parameter description: 
Modify the log path; Server:zabbix server IP Address, Serveractive:zabbix actively monitors the IP address of the server, where both server and serveractive specify the IP address of the Zabbix server, unlike the    The former is passive and the latter is active. This means that the server configuration is used to allow 192.168.1.59 this IP to come to me to fetch the data.    And Serveractive's 192.168.1.59 means that the client is actively submitting data to him.    Zabbix agent detection is divided into active (agent active) and passive (agent) two forms, active and passive statements are relative to the agent to discuss.    Active: The agent requests the server to get a list of active monitoring items and proactively submits the data that needs to be detected in the monitoring item to Server/proxy Passive: The server requests data from the agent to obtain the monitoring entries, and the agent returns the data. Hostname: Host name, must be unique, case sensitive.    Hostname must be configured on the Web with Zabbix, otherwise Zabbix active monitoring will not work properly. Because the agent takes the hostname to ask the server, do I have to configure the active monitoring item? The server takes the hostname to configure the inside query, and then returns the information.
Installation
First open cmd (requires Administrator privileges), the CMD command runs the following code: (64-bit system running Win64 directory)
Installation: Install
c:\zabbix\bin\win32\zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -i   The          console information is as follows:        zabbix_ agentd.exe [10540]: service [zabbix agent] installed successfully        zabbix_agentd.exe [10540]: event source [zabbix agent]  installed successfully 
Startup: Start
C:\zabbix\bin\win32\zabbix_agentd.exe-c C:\zabbix\conf\zabbix_agentd.win.conf-s Console Information Zabbix_agentd.exe [3176]: Service [Zabbix Agent] started successfully
Uninstall: (No action)
First use the administrator to open cmd, go to the program directory, to uninstall, execute Zabbix_agentd.exe-dc:\zabbix\bin\win32\zabbix_agentd.exe-c C:\zabbix\conf\zabbix_ Agentd.win.conf-d
View Windows port Usage
C:\zabbix\bin\win64>netstat-ano|findstr "10050" TCP 0.0.0.0:10050 0.0.0.0:0 LISTENING 10268TCP [::]:10050 [::]:0 LISTENING 10268c:\zabbix\bin\win64>tasklist|findstr "10268" Zabbix_agentd.exe 10268 Services 0 6,944 K
View Task Manager
Zabbix_agnetd.exe
To view the log Zabbix_agentd.log started:
  5140:20171127:095853.281 Starting Zabbix Agent [Windows_36]. Zabbix  3.4.0  (revision 71462) .      5140:20171127:095853.281 ****  enabled features ****      5140:20171127:095853.281 ipv6  support:          yes       5140:20171127:095853.281 tls support:             no      5140:20171127:095853.285 **************************       5140:20171127:095853.285 using configuration file: c:\ Zabbix\conf\zabbix_agentd.win.conf      5140:20171127:095853.301 agent   #0  started [main process]      2576:20171127:095853.301  agent  #1  started&nbsp [collector]      6020:20171127:095853.305 agent  #2  started [ listener  #1]      5812:20171127:095853.305 agent  #3  started  [listener  #2]      5940:20171127:095853.305 agent  #4   started [listener  #3]      1320:20171127:095853.305 agent  #5  started [active checks  #1]
Open port 10050 in Windows system Firewall
Note: Windows Firewall is turned on, if it is turned on, you need to set the inbound rules, you can use the ping command, or on the Zabbixserver side: zabbix_get-s current windows_ip-k system.uname reference/HTTP/ Www.xitonghe.com/jiaocheng/Windows10-3861.html Open 10050 Port operation step: Win+x bring up the System Configuration menu, Control Panel--Select Windows Firewall--Advanced settings-- > Set Inbound Rules (inbound rules: Someone else's computer accesses their computer; Outbound rules: own computer to access someone else's computer)--new rule--port--and next---Select the appropriate protocol, such as add 10050 port, we select TCP, Enter 10050 on the local port, allow connect-and-go next, tick "domain", "private", "Company", click "Next"-Enter the port name, click "Finish".
Set boot up
Run the Services.msc service and find the Zabbix Agent by default is boot-up,
Zabbix_agentd.exe Command Description
-C Make configuration file location-I install client-s start client-x Stop client-D uninstall client
Batch-processing script Agentd.bat
     @echo  off    chcp 65001    echo  ****************************************    echo *****Zabbix Agentd  operation************    echo ****************************************     echo ** a. start zabbix agentd********    echo * * b. stop zabbix agentd********    echo ** c. restart  Zabbix Agentd********    echo ** d. install Zabbix  agentd********    echo ** e. uninstall zabbix agentd********     echo ** f. exit Zabbix Agentd********     Echo ****************************************    :loop    choice  /c abcdef /m&nBSP; " Please choose "    if errorlevel 6 goto :exit      if errorlevel 5 goto uninstall    if errorlevel  4 goto install    if errorlevel 3 goto restart     if errorlevel 2 goto stop    if errorlevel 1  goto start    :start    c:\zabbix\bin\win64\zabbix_ Agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -s    goto loop     :stop    c:\zabbix\bin\win64\zabbix_agentd.exe -c c:\ zabbix\conf\zabbix_agentd.win.conf -x    goto loop    : Restart    c:\zabbix\bin\win64\zabbix_agentd.exe -c c:\zabbix\conf\zabbix_ Agentd.win.conf -x    c:\zabbix\bin\win64\zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -s     goto loop    :install    c:\zabbix\bin\win64\ zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -i    goto  Loop    :uninstall    c:\zabbix\bin\win64\zabbix_agentd.exe -c  c:\zabbix\conf\zabbix_agentd.win.conf -d    goto loop     :exit    exit
Create hosts to view monitoring effects (server side web)
Configuration (Configure) –>hosts (host) –>create host name: windows_36 # and C:\zabbix\conf\zabbix_ Hostname the same agent agent interface in the agentd.win.conf file: 192.168.1.36:10050 templates: Template OS windows--> Add-Update

Installing the Zabbix Agent client on Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.