(1) Download Zabbix Client for Windows
After the official Download Zabbix agent, the compressed package contains 2 directories, one for Win32, the other is Win64, each directory should have 3 files, respectively: Zabbix_agentd.exe zabbix_get.exe zabbix_ Sender.exe
Depending on the operating system, place the file in the C:\zabbix directory
(2) Add client zabbix_agentd,conf file
Create a new zabbix_agentd.conf file in the C:\zabbix folder and write the following basic content:
Logfile=c:\zabbix\zabbix_agentd.log
Server=serverip or Zabbix_proxy ip,127.0.0.1
listenip=0.0.0.0
hostname=192.168.1.4
Unsafeuserparameters=1
#TOMCAT
Userparameter=tomcat.activeconnections,c:\zabbix\bat\tomcat_activeconnections.bat
Userparameter=tomcat.status,c:\zabbix\bat\tomcat_status.bat
Tomcat_activeconnections.bat:
@echo off
Netstat-ano|findstr "8080" |find/c/I "established"
Tomcat_status.bat:
@echo off
TASKLIST|FIND/C/I "Tomcat"
(3) Install Zabbix client and start
Go to the target host's C:\zabbix directory and execute the following command to complete the client installation:
Zabbix_agentd.exe-c C:\zabbix\zabbix_agentd.conf-i
If the installation encounters an error, try running the CMD program by right-clicking "Run as Administrator" before running the command above.
Execute the following command to start the client:
Zabbix_agentd.exe-c c:\zabbix\zabbix_agentd.conf-s
Parameter meaning:
-C Make configuration file location
-I is the installation client
-S Start client
-X Stop Client
-D Uninstalling the client
Windows client must be on port 10050 if firewall is turned on (default passive mode needs to be released)
This article is from the "Linux Technology blog" blog, make sure to keep this source http://qiujiebin2010.blog.51cto.com/4701626/1604134
Zabbix_agent for Windows installation