In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Download address:
Https://www.zabbix.com/downloads/3.4.0/zabbix_agents_3.4.0.win.zip
Create a new zabbix directory on disk C of the Windows system and extract the downloaded installation package (zabbix_agents_3.4.0.win.zip) to 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 The _ agentd.exe │ ├── zabbix_get.exe │ └── conf └── zabbix_agentd.win.conf conf directory is the agent configuration file bin file that stores the 32-bit and 64-bit installers under windows. Create a new zabbix-agent.log text file under the c:/zabbix/ directory to configure the configuration 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: the ip address of zabbix server, and ServerActive: zabbix actively monitors the ip address of server, where both Server and ServerActive specify the IP address of zabbix Server. The difference is that the former is passive and the latter is active. In other words, the configuration of Server is used to allow the 192.168.1.59 ip to come to me to get data. ServerActive's 192.168.1.59 means that the client actively submits data to him. Zabbix agent detection can be divided into two forms: active (agent active) and passive (agent). Both active and passive are discussed relative to agent. Active: agent requests server to obtain the active list of monitoring items, and actively submits the data to be detected in the monitoring items to server/proxy passively: server requests agent to obtain the data of monitoring items, and agent returns data. Hostname: hostname, must be unique, case sensitive. Hostname must be configured all the time on zabbix web, otherwise zabbix active monitoring will not work properly. Because agent asked server with this hostname, did I configure active monitoring items? Server takes this hostname to query inside the configuration, and then returns the information. Open CMD first to install (administrator permission is required) The CMD command runs the following code: (64-bit system runs win64 directory) installation: installC:\ zabbix\ bin\ win32\ zabbix_agentd.exe-c:\ zabbix\ conf\ zabbix_agentd.win.conf-I console information is as follows: zabbix_agentd.exe [10540]: service [Zabbix Agent] installed successfully zabbix_agentd.exe [10540]: event source [Zabbix Agent] installed successfully launch: startC:\ 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: (do not operate) first open CMD with an administrator Go to the program directory and uninstall it Execute zabbix_agentd.exe-dC:\ zabbix\ bin\ win32\ zabbix_agentd.exe-c C:\ zabbix\ conf\ zabbix_agentd.win.conf-d to view the Windows port using C:\ zabbix\ bin\ win64 > netstat-ano | findstr "10050" TCP 0.0.0.0 10050 0.0.0.0 LISTENING 10268TCP [:]: 10050 [:]: 0 LISTENING 10268C:\ zabbix\ bin\ win64 > tasklist | findstr "10268" zabbix_agentd.exe 10268 Services 0 6944 K to view task management Zabbix_agnetd.exe view the launched log Zabbix _ agentd.log: 5140 Starting Zabbix Agent 20171127 Starting Zabbix Agent 095853.281 [Windows_36]. Zabbix 3.4.0 (revision 71462). 5140 TLS support 20171127 TLS support 095853.281 * Enabled features * 5140 20171127 YES 095853.281 using configuration file: C:\ zabbix\ conf\ zabbix_agentd.win.conf 5140main process 20171127main process 095853.301 agent # 0 started [main process] 257671127main process 095853.301 agent # 1 started [collector] 6020 20171127main process 095853.305 agent # 2 started [listener # 1] 5812820171127purl 095853.305 agent # 3 started [listener # 2] 5940ren 20171127Vol 095853.305 agent # 4 started [listener # 3] 1320Rich 20171127ver 095853.305 agent # 5 started [active checks # 1] windows system Firewall Open Port 10050 Note: whether windows Firewall is turned on If enabled, inbound rules need to be set. You can use the ping command, or on the Zabbixserver side: zabbix_get-s current windows_ip-k system.uname refer to http://www.xitonghe.com/jiaocheng/Windows10-3861.html to open port 10050 operation steps: WIN+X brings up the system configuration menu, Control Panel-- > Select windows Firewall-- > Advanced Settings-- > set inbound rules (inbound rules: other computers access their own computers Outbound rules: your computer accesses other people's computers)-- > New rules-- > Port-- > next-- > Select the appropriate protocol, such as adding 10050 port, we choose TCP, enter 10050 at the local port; allow connection-- > next-- > check "Domain", "dedicated", "Company", click "next"-- > enter the port name and click "finish". Set boot to start and run the services.msc service. If you find Zabbix Agent, the default is boot. The zabbix_agentd.exe command description-c establishes the location of the configuration file-I install client-s start client-x stop client-d uninstall client batch script agentd.bat for Windows batch script agentd.bat to install, start, stop, uninstall zabbix_agentd on the client server. Premise: 1. Decompress zabbix_agents_2.4.4.win.zip to c:\ zabbix directory 2, Modified the parameter file c:\ zabbix\ conf\ zabbix_agentd.win.conf script: @ 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 "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:\ zabbix\ conf\ zabbix_agentd.win.conf-s goto loop: stop c:\ zabbix\ bin\ win64\ zabbix_agentd.exe-c:\ zabbix\ conf\ zabbix_agentd.win.conf-x goto loop: restart c:\ zabbix\ bin\ win64\ zabbix_agentd.exe-c:\ zabbix\ conf\ zabbix_agentd.win.conf-x c:\ zabbix\ bin\ win64\ zabbix_agentd.exe-c :\ zabbix\ conf\ zabbix_agentd.win.conf-s goto loop: install c:\ zabbix\ bin\ win64\ zabbix_agentd.exe-c:\ zabbix\ conf\ zabbix_agentd.win.conf-i goto loop: uninstall c:\ zabbix\ bin\ win64\ zabbix_agentd.exe-c:\ zabbix\ conf\ zabbix_agentd.win.conf-d goto loop: exit exit create host Check the monitoring effect (server WEB) configuration (configuration, configuration)-> Hosts (host)-> Create host (create host) host name: Windows_36 # is the same agent agent interface as Hostname in C:\ zabbix\ conf\ zabbix_agentd.win.conf file: 192.168.1.36 Create host 10050 template: Template OS Windows-- > add-- > Update
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.