CN112685260A - Method for monitoring server - Google Patents
Method for monitoring server Download PDFInfo
- Publication number
- CN112685260A CN112685260A CN202110003800.9A CN202110003800A CN112685260A CN 112685260 A CN112685260 A CN 112685260A CN 202110003800 A CN202110003800 A CN 202110003800A CN 112685260 A CN112685260 A CN 112685260A
- Authority
- CN
- China
- Prior art keywords
- server
- zabbix
- monitoring
- agent
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 85
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000009434 installation Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 abstract description 6
- 238000012423 maintenance Methods 0.000 abstract description 6
- 230000000007 visual effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 3
- 238000009877 rendering Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to the Zabbix field, has provided a method for realizing monitoring to the Server specifically, characterized by, adopt Server-Client architecture mode, dispose Zabbix Server, operation monitoring module and application database in the end of the monitoring center; deploying a Zabbix agent client on a monitored server host, completing the collection of server hardware information and operating system information according to the requirement of a monitoring template issued by a Zabbix server by the Zabbix agent client, and sending the server hardware information and the operating system information to the Zabbix server of a center end at regular time, wherein the Zabbix server stores the data into an application database after receiving the monitoring data sent by the Zabbix agent. Compared with the prior art, the invention optimizes the monitoring mode of the server, simplifies operation and maintenance operation and realizes the visual display of the running state of the server by executing the automatic monitoring tool on the premise of ensuring the functions of the system.
Description
Technical Field
The invention relates to the field of Zabbix, and particularly provides a method for monitoring a server.
Background
With the rapid development of computer technology and the continuous expansion of network scale, networks have been deepened into various industries and ordinary daily life of people. In the face of a huge network and a plurality of servers, the traditional maintenance mode can not meet the monitoring requirement of the server system at present due to high labor cost, delayed accident discovery, response processing and the like.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method for realizing the monitoring of the server with strong practicability.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method for realizing Server monitoring adopts a Server-Client architecture mode, and deploys a Zabbix Server, an operation monitoring module and an application database at the end part of a monitoring center;
deploying a Zabbix agent client on a monitored server host, completing the collection of server hardware information and operating system information according to the requirement of a monitoring template issued by a Zabbix server by the Zabbix agent client, and sending the server hardware information and the operating system information to the Zabbix server of a center end at regular time, wherein the Zabbix server stores the data into an application database after receiving the monitoring data sent by the Zabbix agent.
Furthermore, the operation monitoring module processes the collected monitoring data and issues data service, the display front-end module obtains the latest monitoring data by calling a corresponding operation data interface to inquire according to the transmitted server coding parameters and the defined monitoring items, and the display front-end module performs rendering by using an icon tool after obtaining the data and then performs graphical display.
Further, the method specifically comprises the following steps:
s1, installing a Zabbix Server;
s2, installing Zabbix Agent;
and S3, deploying an operation monitoring module.
Further, in step S1, the method further includes:
s101, creating a user: establishing a zabbix user group, and adding the zabbix user to the group;
s102, compiling a source code: zabbix source code is compiled using configure, which specifies that Zabbix Server is installed and the database type used is MySql.
S103, installation: execute the make install command, install by default under the/usr/local/sbin directory.
S104, modifying the configuration file: and modifying the IP, the user name and the password of the Zabbix Server connection database.
S105, operating the Zabbix Server: and executing/usr/local/sbin/zabbix _ server to start the server end.
Further, in step S102, when the default compile is used, the command is compiled by looking at/default-help: fastener-enable-server-enable-agent-with-mysql;
if the lack of the dependency packages is prompted in the compiling process, the corresponding dependency packages need to be installed before compiling.
Further, in step S2, the method further includes:
s201, obtaining a zabbix _ agent.tar.gz program package;
s202, operating the Zabbix Agent.
Further, in step S201, the installation is performed on the monitored server, the package packet is decompressed to/usr/local/src/directory, and the switching is performed to/usr/local/src/zabbix _ agent/directory, and the rpm-Uvh × rpm command is executed;
editing client configuration files, editing/etc/Zabbix/Zabbix _ managed.conf, configuring Server end IP addresses, modifying an Agent mode into an active mode, and designating the IP addresses of the Zabbix servers by both the Server and the Server active.
Further, in step S3, the method further includes:
s301, configuring a monitoring module;
s302, configuring an addition monitoring host;
and S303, storing the data into an application database through the Zabbix Server.
Further, in step S301, a monitoring index item is selected, an automatic discovery rule is updated, and a monitoring item that does not support an active mode is removed and suspended.
Further, in step S302, the click configuration module selects a host function, clicks a create host button, adds a monitoring server, and configures a monitoring template to be used.
Compared with the prior art, the method for monitoring the server has the following outstanding beneficial effects:
on the premise of ensuring the functions of the system, the invention optimizes the monitoring mode of the server through the execution of the automatic monitoring tool, simplifies the operation and maintenance operation, can alarm the abnormal condition of the server and realizes the visual display of the running state of the server.
On the other hand, the operation and maintenance cost of the server is reduced, the participation operation of people is reduced, the monitoring and alarming of the server are realized through the automatic operation of a monitoring tool, and meanwhile, a plurality of flexible notification mechanisms such as mails and short messages are provided, so that a system administrator can quickly find, locate and solve various problems, the operation and maintenance monitoring automation is realized, and the safe operation of a server system is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for implementing server monitoring;
FIG. 2 is a schematic diagram (one) of a configuration monitoring module in a method for implementing server monitoring;
FIG. 3 is a schematic diagram (II) of a configuration monitoring module in a method for implementing server monitoring;
FIG. 4 is a schematic diagram (I) of adding a monitoring host in a configuration in a method for realizing server monitoring;
FIG. 5 is a schematic diagram (II) of adding a monitoring host to a configuration in a method for implementing monitoring on a server;
FIG. 6 is a schematic diagram (one) of operations in a method for implementing server monitoring;
fig. 7 is a schematic operation diagram (two) of a method for implementing server monitoring.
Detailed Description
The present invention will be described in further detail with reference to specific embodiments in order to better understand the technical solutions of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A preferred embodiment is given below:
as shown in fig. 1, in the method for implementing Server monitoring in this embodiment, a Server-Client architecture mode is adopted, and a Zabbix Server, an operation monitoring module and an application database are deployed at a monitoring center end, so as to provide functions of recording a monitoring Server, configuring and issuing a monitoring module, storing acquired data, displaying monitoring information, notifying a fault alarm, and the like. Deploying a Zabbix agent client on a monitored server host, completing the collection of the hardware information of the server or the use condition information of a memory, a CPU, a magnetic disk and the like related to an operating system according to the requirement of a monitoring template issued by a Zabbix server, and sending the information to the Zabbix server of a central end at regular time, wherein the Zabbix server stores the data into an application database after receiving the monitoring data sent by the Zabbix agent.
The operation monitoring module issues collected monitoring data as data service according to multi-dimensional processing of monitoring objects, time periods and the like, the display front-end module queries and obtains latest monitoring data by calling a corresponding operation data interface according to transmitted server coding parameters and defined monitoring items, and rendering is carried out by using graph tools such as Echarts and the like after the data are obtained, so that real-time utilization conditions of a monitoring object CPU, a memory, a hard disk, a network and the like of the server are graphically displayed.
The method mainly comprises the following steps:
s1, installing the Zabbix Server. Acquiring a Zabbix3.0 version source code program package, decompressing, and performing the following operations.
S101, creating a user: and (4) adopting non-root user installation, establishing a zabbix user group, and then adding the zabbix user to the group.
And S102, compiling the source code. Zabbix source code is compiled using configure, which specifies that Zabbix Server is installed and the database type used is MySql. While other compile-time configurations may be viewed via the/configure-help. Compiling a command: fastener-enable-server-enable-agent-with-mysql. If a certain dependency package is absent in the compiling process, the corresponding dependency package needs to be installed before compiling.
S103, installation: execute the make install command, install by default under the/usr/local/sbin directory.
S104, modifying the configuration file: and modifying the IP, the user name and the password of the Zabbix Server connection database.
And S105, operating the Zabbix Server. And executing/usr/local/sbin/zabbix _ server to start the server end.
S2, installing Zabbix Agent
S201, obtaining a zabbix _ agent.tar.gz program package, installing the program package on a monitored server, decompressing the program package to/usr/local/src/directory, switching to/usr/local/src/zabbix _ agent/directory, and executing an rpm-Uvh.
S202, editing client configuration file editing/etc/Zabbix/Zabbix _ managed.conf, configuring Server end IP address, modifying Agent mode into active mode, etc, wherein both Server and Server active specify the IP address of Zabbix Server.
S203, operating the Zabbix Agent.
S3, deployment operation monitoring module
S301, as shown in the figures 2 and 3, configuring an operation monitoring module, selecting a monitoring index item according to the operation and maintenance scene requirements, updating an automatic discovery rule, and simultaneously eliminating the monitoring item which does not support active mode to be suspended.
S302, as shown in the figures 4 and 5, the adding monitoring host is configured, the 'configuration' module is clicked to select the 'host' function, the 'creating host' button is clicked, the monitoring server is added, and the used monitoring template is configured.
And S303, as shown in FIGS. 6 and 7, acquiring operation index data of the monitoring Server through the steps S301 and S302, storing the operation index data into an application database through the Zabbix Server, and setting and maintaining each index acquisition frequency through a monitoring template. And finally, starting a monitoring index data processing service to provide data support for the front-end monitoring display function.
The above embodiments are only specific cases of the present invention, and the protection scope of the present invention includes but is not limited to the above embodiments, and any suitable changes or substitutions that are consistent with the method claims of the present invention for implementing the server monitoring and that can be made by one of ordinary skill in the art are all within the protection scope of the present invention.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (10)
1. A method for realizing Server monitoring is characterized in that a Server-Client architecture mode is adopted, and a Zabbix Server, an operation monitoring module and an application database are deployed at the end of a monitoring center;
deploying a Zabbix agent client on a monitored server host, completing the collection of server hardware information and operating system information according to the requirement of a monitoring template issued by a Zabbix server by the Zabbix agent client, and sending the server hardware information and the operating system information to the Zabbix server of a center end at regular time, wherein the Zabbix server stores the data into an application database after receiving the monitoring data sent by the Zabbix agent.
2. The method for monitoring the server according to claim 1, wherein the operation monitoring module processes the collected monitoring data and issues a data service, the display front-end module queries and acquires the latest monitoring data by calling a corresponding operation data interface according to the transmitted server coding parameters and the defined monitoring items, and renders the data by using an icon tool after acquiring the data, and then performs graphical display.
3. The method for realizing the monitoring of the server according to claim 2 is characterized by comprising the following steps:
s1, installing a Zabbix Server;
s2, installing Zabbix Agent;
and S3, deploying an operation monitoring module.
4. The method of claim 3, wherein in step S1, the method further comprises:
s101, creating a user: establishing a zabbix user group, and adding the zabbix user to the group;
s102, compiling a source code: zabbix source code is compiled using configure, which specifies that Zabbix Server is installed and the database type used is MySql.
S103, installation: execute the make install command, install by default under the/usr/local/sbin directory.
S104, modifying the configuration file: and modifying the IP, the user name and the password of the Zabbix Server connection database.
S105, operating the Zabbix Server: and executing/usr/local/sbin/zabbix _ server to start the server end.
5. The method of claim 4, wherein in step S102, when the command is compiled by using "/configure-help" to look at when the command is compiled except configuring the compiling, the command is compiled: fastener-enable-server-enable-agent-with-mysql;
if the lack of the dependency packages is prompted in the compiling process, the corresponding dependency packages need to be installed before compiling.
6. The method of claim 3, wherein in step S2, the method further comprises:
s201, obtaining a zabbix _ agent.tar.gz program package;
s202, operating the Zabbix Agent.
7. The method of claim 6, wherein in step S201, the installation is performed on the monitored server, the package is decompressed to/usr/local/src/directory, and the switch is made to/usr/local/src/zabbix _ agent/directory, and the rpm-Uvh rpm command is executed;
editing client configuration files, editing/etc/Zabbix/Zabbix _ managed.conf, configuring Server end IP addresses, modifying an Agent mode into an active mode, and designating the IP addresses of the Zabbix servers by both the Server and the Server active.
8. The method of claim 3, wherein in step S3, the method further comprises:
s301, configuring a monitoring module;
s302, configuring an addition monitoring host;
and S303, storing the data into an application database through the Zabbix Server.
9. The method as claimed in claim 8, wherein in step S301, a monitoring index item is selected, an auto discovery rule is updated, and a monitoring item that does not support proactive mode is removed.
10. The method of claim 8, wherein in step S302, clicking the configuration module selects a host function, clicking the create host button, adding a monitoring server, and configuring a monitoring template to be used.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110003800.9A CN112685260A (en) | 2021-01-04 | 2021-01-04 | Method for monitoring server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110003800.9A CN112685260A (en) | 2021-01-04 | 2021-01-04 | Method for monitoring server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112685260A true CN112685260A (en) | 2021-04-20 |
Family
ID=75457081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110003800.9A Pending CN112685260A (en) | 2021-01-04 | 2021-01-04 | Method for monitoring server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112685260A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778790A (en) * | 2021-08-19 | 2021-12-10 | 北京仿真中心 | A method and system for monitoring the state of a computing system based on Zabbix |
CN113923131A (en) * | 2021-09-10 | 2022-01-11 | 北京世纪互联宽带数据中心有限公司 | Monitoring information determination method and device, computing equipment and storage medium |
CN114168416A (en) * | 2021-12-06 | 2022-03-11 | 成都傲梅科技有限公司 | Method for monitoring FastDFS storage system based on zabbix custom expansion |
CN115022168A (en) * | 2022-06-30 | 2022-09-06 | 南斗六星系统集成有限公司 | Unified monitoring method based on zabbix and related equipment |
CN115827394A (en) * | 2021-12-07 | 2023-03-21 | 湖南博轩智能科技股份有限公司 | A monitoring and alarming method based on Zabbix |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120481A (en) * | 2018-09-27 | 2019-01-01 | 上海新炬网络信息技术股份有限公司 | Method based on Zabbix open source monitor component DCOS container and bosom part |
CN110071951A (en) * | 2018-01-24 | 2019-07-30 | 江苏迪纳数字科技股份有限公司 | Data query display systems and method under the conditions of a kind of big data |
CN110445694A (en) * | 2019-09-23 | 2019-11-12 | 成都长虹网络科技有限责任公司 | A method of trigger notice is monitored based on Zabbix |
-
2021
- 2021-01-04 CN CN202110003800.9A patent/CN112685260A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110071951A (en) * | 2018-01-24 | 2019-07-30 | 江苏迪纳数字科技股份有限公司 | Data query display systems and method under the conditions of a kind of big data |
CN109120481A (en) * | 2018-09-27 | 2019-01-01 | 上海新炬网络信息技术股份有限公司 | Method based on Zabbix open source monitor component DCOS container and bosom part |
CN110445694A (en) * | 2019-09-23 | 2019-11-12 | 成都长虹网络科技有限责任公司 | A method of trigger notice is monitored based on Zabbix |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778790A (en) * | 2021-08-19 | 2021-12-10 | 北京仿真中心 | A method and system for monitoring the state of a computing system based on Zabbix |
CN113923131A (en) * | 2021-09-10 | 2022-01-11 | 北京世纪互联宽带数据中心有限公司 | Monitoring information determination method and device, computing equipment and storage medium |
CN113923131B (en) * | 2021-09-10 | 2023-08-22 | 北京世纪互联宽带数据中心有限公司 | Monitoring information determining method and device, computing equipment and storage medium |
CN114168416A (en) * | 2021-12-06 | 2022-03-11 | 成都傲梅科技有限公司 | Method for monitoring FastDFS storage system based on zabbix custom expansion |
CN115827394A (en) * | 2021-12-07 | 2023-03-21 | 湖南博轩智能科技股份有限公司 | A monitoring and alarming method based on Zabbix |
CN115022168A (en) * | 2022-06-30 | 2022-09-06 | 南斗六星系统集成有限公司 | Unified monitoring method based on zabbix and related equipment |
CN115022168B (en) * | 2022-06-30 | 2024-03-19 | 南斗六星系统集成有限公司 | Unified monitoring method based on zabbix and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112685260A (en) | Method for monitoring server | |
CN112328456B (en) | Cluster resource monitoring system based on service discovery | |
US7316016B2 (en) | Homogeneous monitoring of heterogeneous nodes | |
CN103605722B (en) | Database monitoring method and device, equipment | |
JP5698429B2 (en) | Computer system, method and computer program for managing components | |
US11223680B2 (en) | Computer servers for datacenter management | |
CN111190888A (en) | Method and device for managing graph database cluster | |
JP2005531864A (en) | System event filtering and notification to OPC clients | |
CN111949831B (en) | Graphic database establishing method and device and readable storage medium | |
CN108363610A (en) | A kind of control method and equipment of virtual machine monitoring plug-in unit | |
CN111225064A (en) | Ceph cluster deployment method, system, device and computer-readable storage medium | |
CN114185734B (en) | Method and device for monitoring clusters and electronic equipment | |
CN113138900B (en) | Data acquisition processing method and device and electronic equipment | |
US10084640B2 (en) | Automatic updates to fabric alert definitions | |
US6961940B2 (en) | Dynamically adapting events to capabilities of a management system | |
EP3827578B1 (en) | Managing operations associated with an object on iot enabled devices | |
CN113094053A (en) | Product delivery method and device and computer storage medium | |
US20130307854A1 (en) | Method and System for Visualising a System Model | |
CN113765717A (en) | Operation and maintenance management system based on secret-related special computing platform | |
CN113254319B (en) | Log-based alarm method and device | |
CN111177116B (en) | Intelligent database management platform and management method thereof | |
JP2009169863A (en) | Computer system, method and computer program for managing components | |
CN117857339A (en) | Cluster configuration data processing method, device, equipment and storage medium | |
CN113868184A (en) | Configuration method and system of master-slave architecture cache-based configuration center | |
CN112416698A (en) | Monitoring system expansion method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210420 |