Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix3.0 installs agent under Windows

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Zabbix is a monitoring system with CS structure, which supports many monitoring tasks such as ping,snmp, but most of the monitoring tasks need the support of client-side agentd. The server end listens on port 10051 and the client listens on port 10050.

1. Installation media

ZABBIX client

Http://www.zabbix.com/downloads/3.0.4/zabbix_agents_3.0.4.win.zip

Environment and constraints

Operating system: Windows

two。 Installation process

1) unzip the zabbix folder and place it in C:\

2) create a new zabbix_agent.log file under C:\ zabbix\

3) configure the zabbix_agentd.win.conf file (located in C:\ zabbix\ conf\). The areas that need to be modified are as follows:

Logfile= C:\ zabbix\ zabbix_agent.log

Server=X.X.X.X

Hostname=X.X.X.X

Note:

L Server is the IP address of the zabbix server

L LogFile is the location of the zabbix_agentd.log file, which is used to record events. The zabbix_agentd.log here enter the location of the new log file you created.

L Hostname needs to be the same as the host name entered by the server-side configuration host, otherwise the "host {hostname} not found" error will be reported in the log

4) Open the CMD command line, and notice the execution of the file path:

64 bit

C:\ zabbix\ bin\ win64\ zabbix_agentd.exe-c C:\ zabbix\ conf\ zabbix_agentd.win.conf-I

C:\ zabbix\ bin\ win64\ zabbix_agentd.exe-c C:\ zabbix\ conf\ zabbix_agentd.win.conf-s

32 bit

C:\ zabbix\ bin\ win32\ zabbix_agentd.exe-c C:\ zabbix\ conf\ zabbix_agentd.win.conf-I

C:\ zabbix\ bin\ win32\ zabbix_agentd.exe-c C:\ zabbix\ conf\ zabbix_agentd.win.conf-s

Help

C:\ zabbix\ bin\ win32\ zabbix_agentd.exe-c C:\ zabbix\ conf\ zabbix_agentd.win.conf-h

5) enter "services.msc" in "run", find "ZABBIX AGENT" in it, and start the service. Check the status of ZabbixAgent in windows's system service list, and normally you will see that ZabbixAgent already exists in the system service and starts automatically, installs Agent and registers the service, as shown in figure 1.

Figure 1:zbbix agent service

This completes the installation and configuration of ZABBIX windows agent.

6) configuration command

L C:\ zabbix\ bin\ win32\ zabbix_agentd-c C:\ zabbix\ conf\ zabbix_agentd.win.conf-I

-c: specify all locations of the configuration file

-I: install the client

-s: start the client

-x: stop the client

-d: uninstall the client

7) confirm the parameter setting of the network card in the zabbix/conf/zabbix_agentd.win.conf file.

Obtain the parameter list of the Nic on the client:

Typeperf-qx | find "Network Interface" | find "Bytes"

Confirm the following:

Add Custom key

We need to monitor the traffic of the windows system, which is actually monitoring the traffic of the network card information.

Edit the zabbix_agentd.win.conf configuration file with Notepad++

Add 3 custom key at the end of the line

# Option:Network

PerfCounter=Net_In, "\ Network Interface (Realtek PCIe GBE Family Controller)\ Bytes Received/sec", 30

PerfCounter=Net_Out, "\ Network Interface (Realtek PCIe GBE Family Controller)\ Bytes Sent/sec", 30

PerfCounter=Net_Total, "\ Network Interface (Realtek PCIe GBE Family Controller)\ Bytes Total/sec", 30

The "" part is taken from the Nic parameters in the figure above, and Net_In,Net_Out and Net_Total are the Key when configured in Zabbix.

The last 30 refers to the value time, in "seconds"

4. Other problems and solutions

1) Firewall restriction. Configuration is not successful.

If the machine has a firewall, please turn it off, otherwise the configuration may not be successful, or the port used by zabbix may be opened. Open firewall port 10050

5. The next step is the configuration interface of web.

1. Create a template

two。 Create a monitoring item on a template

Incoming traffic monitoring items

Monitoring items of outflow traffic

3. Create Ima

4. View Ima

5. Select the corresponding host to view the corresponding traffic graph

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report