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

Zabbix distributed Monitoring Application of Automated Operation and maintenance tools (5)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Overview of distributed Monitoring

Proxy and node

Three common architectures of Zabbix

-> Server-agent

-> Server-Node-agent

-> Server-Proxy-agent

Zabbix can efficiently monitor distributed IT architecture

Zabbix provides two solutions in large environments

-- > use proxy (proxy)

-- > use Node (node)

Proxy or Node?

-- > Agent (proxy) is used for local data collection and sends the data to server

-- > Node (node) provides a complete Zabbix server for establishing levels in distributed monitoring

Proxy

Node

Lightweight

Yes

No

GUI

No

Yes

Works independently

Yes

Yes

Easy maintenance

Yes

No

Automatic DB creation

Yes

No

Local administration

No

Yes

Ready for embedded hardware

Yes

No

One way TCP connections

Yes

Yes

Centralised configuration

Yes

No

Generates notifications

No

Yes

Proxy mode and Node mode

Node itself is a server, it has a complete Web page, a complete database, it will continue to transmit data to Master.

Proxy has only one daemon process of proxy, and Proxy also has its own database, but its database only stores data for a certain period of time. It communicates with Master by packaging a batch of information and sending it to Master,Master to merge the data into the Master database.

Compared with Master-Node, Master-Proxy has the following points:

-- > proxy pressure is small, and the database only stores data for a certain period of time

-- > Master pressure decreases, data is not continuously obtained, and IO pressure is reduced.

-- > the architecture is clearer and easier to maintain

Server-Node-Client characteristics

-- solve the problem of performance bottleneck faced by a single Server when there are too many host

-- > using multiple instance

-- > each instance is a separate set of zabbix with database and Frontend (optional)

Hot swapping is supported. The connection between Node and Server can be disconnected at any time, but the normal operation of Node is not affected.

-- > Node sends configuration,history,event to Server regularly

-- > Server sends configuration to Node regularly

-- > all configuration changes can only be performed on the Node node, not on Server.

-- > supports tree structure, and Node can be a Server.

Working characteristics of Server-Proxy-Client

-- Proxy does not synchronize configuration to Server, only receives

-- Proxy's database periodically transmits data to the Server,Proxy local database to save only data that has not been sent recently

Configure the zabbix_proxy server as follows:

(1) configure the mysql database as follows:

Mysql > CREATE DATABASE zabbix_proxy CHARACTER SET utf8;mysql > GRANT ALL ON zabbix_proxy.* TO 'zbxuser'@'172.16.%.%' IDENTIFIED BY' redhat';mysql > FLUSH PRIVILEGES

(2) install zabbix components

# lszabbix-2.0.8-3.el6.x86mm 64.rpmzabbix talk localinstall-mysql-2.0.8-3.el6.x86_64.rpmzabbix-proxy-2.0.8-3.el6.x86_64.rpm# yum-y localinstall * .rpmzabbix

(3) create zabbix_proxy table

# mysql-uzbxuser-predhat-h272.16.100.3 zabbix_proxy

< /usr/share/doc/zabbix-proxy-mysql-2.0.8/create/schema.sql (4)配置zabbix_proxy配置文件如下: # cat /etc/zabbix/zabbix_proxy.conf | grep -E '(Server|DBHost|DBName|DBUser|DBPassword)'Server=172.16.100.2Hostname=172.16.100.101DBHost=172.16.100.3DBName=zabbix_proxyDBUser=zbxuserDBPassword=redhat (5)启动zabbix-proxy服务 # service zabbix-proxy start (6)在zabbix web interface中添加proxy: Administration-->

GM-- > proxies [create proxy]

(7) the zabbix_agentd.conf configuration of the monitored host under proxy, as follows:

Vim / etc/zabbix/zabbix_agentd.conf Server=172.16.100.101-- modified to proxy address ServerActive=172.16.100.101UserParameter=memory.free,/usr/bin/free | awk'/ ^ Mem:/ {print $4} 'UserParameter=memory.usage [*], / bin/cat / proc/meminfo | awk' / ^ $1V / {print $$2} 'restart agent Service # service zabbix-agent restart

(8) create the host and item in zabbix web interface as follows

Installation and Management of zabbix-agent client in Windows Environment

Installation of clients in Windows environment

1) create a new directory under the C:\ windows directory on the target machine, such as the zabbix-- > (bin/conf/logs) directory

2) copy (zabbix_agents_2.0.8.win) the file to the directory you created

3) create a new zabbix_agentd.log file in the newly created logs directory

As follows:

4) configure zabbix_agentd.win.conf file with the following options:

LogFile=c:\ Windows\ zabbix\ logs\ zabbix_agentd.log

Server=172.16.100.101

Hostname=Windows Host

5) enter the CMD interface on the target machine

6) enter the newly created directory in the CMD interface: cd\ windows\ zabbix\ bin

7) enter the following command to install:

> cd c:\ WINDOWS\ zabbix\ bin > zabbix_agentd.exe-c:\ WINDOWS\ zabbix\ conf\ zabbix_agentd.win.conf-I

8) enter "services.msc" in "run", find "ZABBIXAGENT" in it, and start the service.

9) finally, the following is found in zabbix web interface:

10) add windows network traffic monitoring to Zabbix

(1) obtain the parameter list of the Nic on the client:

> typeperf-qx | find "Network Interface" | find "Bytes"

(2) Edit the zabbix_agentd.win.conf file on the target machine to add the following, and save:

# Option:NetworkPerfCounter=NetIn, "\ Network Interface (AMD PCNET Family PCI Ethernet Adapter)\ Bytes Received/sec", 15PerfCounter=NetOut, "\ Network Interface (AMD PCNET Family PCI Ethernet Adapter)\ Bytes Sent/sec", 15

The red word is taken from the parameters of the network card in the image above.

The blue NetIn and NetOut are the Key when configured in Zabbix.

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

(3) restart the zabbix_agentd service in the service or with the command.

(4) enter Zabbix and name it "Network" in the host related to configurationa-- > host-- > windows host (such as Windows New)-> Applications-- > create application.

(5) after the above steps are completed and save, then click Items-- > Create Item to establish the IN and OUT of the network interface, respectively.

The Key in the following figure is the value in the configuration file. Units is bps, but the value received is Byte, so multiply by 8.

Finally, create a Graphs for the two Item in the corresponding template group, as shown below:

The above is all the contents of the Zabbix distributed monitoring application of automated operation and maintenance tools.

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

Database

Wechat

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

12
Report