Zabbix basic sort of knowledge (concept papers)

 A, Zabbix Overview

In this cloud computing and virtualization era, the number of servers can be said to be more numerous, and now the Internet company, little more than a dozen servers, many tens of thousands
if a dozen that we can also write Shell script to monitor services running status or occupancy of system resources, if tens of thousands of Taiwan, which is obviously a thankless way
so if we want to understand the real-time operation of the server or network device, and a problem occurs, can the first a time to know and resolve, this time we use monitoring software that would be a good choice for
both large and small businesses, for now, there's certainly missed local server monitoring, monitoring tools now very much like Nagio and Cacti, these are two commonly used monitoring tools
but have not Zabbix flexibility, Zabbix can be flexible monitoring various objects, and combines the advantages of both Nagio with Cacti in one, it is very powerful, ranging all the advantages of Zabbix so it is in the range of applications is very wide market

What is Zabbix it? Zabbix It is a Web-based interface, highly integrated, enterprise-class open source monitoring tools, while providing distributed monitoring based solution is very flexible and can be used to monitor a variety of objects
objects Zabbix monitoring can be a Linux system, it can be Windows system, but can also be routers or switches and other network equipment, and supports a variety of alarm mode
it should be noted that, if the monitored object is a Linux or Windows server that is achieved through the deployment of Agent way, if the monitored object is a router or switch and other network equipment, which is implemented by configuring SNMP way

So far, the latest version of Zabbix is: 4.4, Chinese official website: https: //www.zabbix.com/cn/

1) Description Zabbix function

Alarm mechanisms: support micro letter, mail, nails, SMS, and other rich alarm mechanism 
privilege system: secure user authentication, some users may be limited to certain views of 
data collection: with a variety of monitoring architecture, you can define the data collected from frequency 
network discovery: supports automatic discovery of network devices and servers, Agent automatically registers 
Live plot: implement monitoring data in real-time graphics with built-drawing method for 
data storage: a database to store data, the storage period of historical data customizable, you can regularly delete outdated historical data

2) Zabbix monitoring objects

Host Monitoring: disk, memory, CPU, system uptime, the number of system processes, system load 
applications: running status of the service, the number of concurrent connections, the number of requests, the message queue of bytes 
hardware monitoring: server temperature, voltage, the fan speed 
LAN monitoring: Bandwidth usage, inflow and outflow of data packets and error number, Ping round trip time and success rate

3) Zabbix Data Acquisition

C / S mode: Client / Server

B / S mode: Browser / Server

Zabbix using C / S mode to collect data, and then through the B / S mode and display Web front-end configuration

Zabbix server: SNMP Agent and collected by the data sent to, written to the database, then Nginx front end or PHP + Apache + impressions via the PHP 
Zabbix client: If the server is deployed to collect data by the Agent, if the data network device configured to collect data by way of SNMP, and finally collected or sent to the Proxy Server

4) Zabbix important components

Zabbix Server: responsible for receiving core component of Agent sends report information, all of the operations carried out by the organization it 
Satabase storage: responsible for storing all configuration information and data collected by 
Web interface: Zabbix GUI interfaces, most of the time with Zabbix Server running on the same host 
Pxory: agent Zabbix Server to collect some data, and then forwarded to Zabbix Server, we can understand it as a proxy 
agent: deployed in the monitored end, responsible for collecting the data being monitored end hosts, such as CPU and memory, MySQL master-slave state then sent to a Proxy Server or end

5) Zabbix daemon

Zabbix-Server: server daemon, data have voluntarily submit also has passive submission, the initiative submitted and that the Server actively obtain data 
Zabbix-agent: client daemon for the monitoring client to collect data 
Zabbix-get: using Zabbix-get access to customer SUMMARY end to do troubleshooting 
Zabbix-sender: for sending data to the Server or proxy, for a long time-consuming checks 
Zabbix-proxy: Zabbix agent daemon, similar to Server function, the only difference is, it's like a transfer station, need to be actively or passively submit data collected up to Server 
zabbix-java-gateway: a feature introduced after Zabbix2.0, similar to the Agent, but only for the Java side, and it can only take the initiative to acquire data, not passive, data will eventually be submitted to or Proxy Server

6) Zabbix term monitoring

Host: The need to monitor a server or a network device, IP address or domain name may specify 
a host group: the container can be seen as a logical host, the host may contain a host group, but can also comprise a template 
monitored item: monitoring index defined, these data from a monitored object, such as a monitor MySQL is monitored item from the master 
flip-flop: the expression can be understood as, for data received in a specific monitored item evaluation whether the monitored object in a reasonable range, i.e. the threshold value, the received data amount greater than the threshold, the trigger status from OK transferred Problem, when the data is restored again to a reasonable range, and converted into OK 
event: trigger state changes will generate an event that contains information about state changes trigger occurs time and trigger a new state, the trigger will create two types of events, namely: normal (OK), the problem (problem) 
template: is used to define a set of pre-entry monitoring host, usually contains a monitored item, trigger devices, applications, and templates can also be a direct link A Host 
Application: Application is a collection of term monitoring of 
media: means for sending a notification, such as e-mail can be sent, as well as SMS 
notification: sending information about an event to the user through the selected media 
action: for a particular event processing method as defined previously, when to perform operations such as sending notifications

7) Zabbix monitoring architecture

Server-Client: temporarily called SC architecture, which is relatively simple architecture Zabbix, not through any agent between the monitoring and monitored nodes, exchanging data directly from the Server - Agent 
Master-Client the Node-: let us call MNC architecture that each Node is a Server, they have their own configuration files, you can access the following Node Proxy, you can also interact directly with the Agent 
Server-Proxy-Client: let us call it SPC architecture, Proxy no front itself do not store data, but the data forwarded by the Agent temporarily stored, and ultimately to give Server, this architecture is generally used across the room or across the network

The following figure shows very intuitive architecture Zabbix monitoring of:

[] Just to pass the time

Guess you like

Origin www.cnblogs.com/lvthinks/p/12362800.html