CN114168416A - Method for monitoring FastDFS storage system based on zabbix custom expansion - Google Patents

Method for monitoring FastDFS storage system based on zabbix custom expansion Download PDF

Info

Publication number
CN114168416A
CN114168416A CN202111479165.8A CN202111479165A CN114168416A CN 114168416 A CN114168416 A CN 114168416A CN 202111479165 A CN202111479165 A CN 202111479165A CN 114168416 A CN114168416 A CN 114168416A
Authority
CN
China
Prior art keywords
zabbix
monitoring
server
fastdfs
agent
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
Application number
CN202111479165.8A
Other languages
Chinese (zh)
Inventor
刘文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Aomei Technology Co ltd
Original Assignee
Chengdu Aomei Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chengdu Aomei Technology Co ltd filed Critical Chengdu Aomei Technology Co ltd
Priority to CN202111479165.8A priority Critical patent/CN114168416A/en
Publication of CN114168416A publication Critical patent/CN114168416A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for monitoring a FastDFS storage system based on zabbix custom expansion, which comprises the following steps: server building S1: building a zabbix-server; monitor connection S2: installing a zabbix-agent on the FasDFS host, and connecting the zabbix-agent with a zabbix-server; start monitoring S3: starting a zabbix-agent service; add monitor S4: adding software and hardware resources of a FastDFS storage system to a zabbix-server by using a zabbix monitoring template for monitoring; setting independent monitoring S5: setting independent monitoring items by modifying the custom script; set monitoring warning S6: setting a trigger for the monitoring item according to the emergency degree on the zabbix-server and sending alarm information; transmission abnormality information S7: and sending the monitored abnormal information to a manager through a mail. The invention combines zabbix and FastDFS to realize the burden reduction work of operation and maintenance work, and can quickly inform operation and maintenance personnel through zabbix when the FastDFS server is abnormal, thereby achieving the purposes of managing and remedying the system stability and the storage data safety.

Description

Method for monitoring FastDFS storage system based on zabbix custom expansion
Technical Field
The invention belongs to the technical field of computer data monitoring, and particularly relates to a method for monitoring a FastDFS storage system based on zabbix custom expansion.
Background
In the current situation, a storage system realized based on the FastDFS can expand a plurality of servers to form a cluster, and has extremely high requirements on the stability of hardware and software of the servers.
The storage server cluster realized based on the FastDFS needs to provide uninterrupted external services for 24 hours all day, and operation and maintenance personnel cannot always concern about the situation of the storage cluster.
Disclosure of Invention
The invention aims to provide a method for monitoring a FastDFS storage system based on zabbix custom extension, so as to solve the problem that the current FastDFS does not have system abnormity monitoring in the background technology.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for monitoring a FastDFS storage system based on zabbix custom extension comprises the following steps:
server building step S1: building a zabbix-server and starting the server;
the monitor program connects step S2: installing a zabbix-agent on the FasDFS host, and connecting the zabbix-agent with a zabbix-server built in a server building S1;
start monitoring step S3: starting a zabbix-agent service;
add monitor step S4: adding software and hardware resources of a FastDFS storage system to a zabbix-server by using a zabbix monitoring template for monitoring;
setting an independent monitoring step S5: setting an independent monitoring item by modifying the custom script, and adding other programs into the zabbix-server for monitoring;
set monitoring warning step S6: setting a trigger for the monitoring item on the zabbix-server according to the fatal, serious, generally serious and warning emergency degree to send warning information;
transmitting abnormality information step S7: and sending the monitored abnormal information to a manager through a mail.
According to the above scheme, in the monitoring program connection step S2, the specific connection manner between the zabbix-agent and the zabbix-server is as follows: after the zabbix-server is successfully installed, a zabbix-agent host is additionally installed in a page through http:// { zabbix-server ip }:8080, the zabbix-agent host is sequentially clicked to enter a configuration/host/creation host, the zabbix-agent host is created, the created host is connected with the zabbix-server, and at the moment, the zabbix-agent is successfully connected with the zabbix-server.
According to the above scheme, the step S4 of adding the monitor program includes the following specific steps: logging in a zabbix-server front-end page, sequentially clicking to enter a configuration/host/template, selecting a monitoring template for the host, and sequentially clicking to enter the monitoring/latest data to see the latest data of various software and hardware monitoring items arranged in the template.
According to the above scheme, in the step of setting independent monitoring S5, the custom script specifically includes: a shell script or a python script that implements a specific function.
According to the above scheme, in the step of setting independent monitoring S5, the setting of independent monitoring items specifically includes: firstly, adding a monitoring item to be monitored into a zabbix-agent, then logging in a front page of the zabbix-server, sequentially clicking to enter a configuration/host/monitoring item/create a monitoring item, and adding the monitoring item to be monitored.
According to the above scheme, in the setting monitoring warning step S6, the trigger includes: fatal, severe, generally severe, warning four levels.
According to the above scheme, in the step S7 of sending abnormal information, whether the information is abnormal is judged by a threshold value:
if the information is larger than the set threshold value, judging the information to be abnormal and sending the information through a mail; if the information is less than the set threshold value, the information is judged to be normal and is not processed.
Compared with the prior art, the invention has the following beneficial effects:
the invention relates to a technology for monitoring hardware resources of a FastDFS storage server, software resources such as the process state and data health of a developed web project, gateway API and the like based on zabbix open source software. And deploying the customer service end of zabbix to a FastDFS server needing to be monitored by using the zabbix server, collecting data needing to be monitored, calculating according to a set rule, displaying the data on a webpage by using the zabbix server or informing a server administrator in an email mode, and repairing the FastDFS server by using the administrator according to an alarm message.
The invention combines zabbix and FastDFS to realize the burden reduction work of operation and maintenance work, and can quickly inform operation and maintenance personnel through zabbix when the FastDFS server is abnormal, thereby achieving the purposes of managing and remedying the system stability and the stored data safety, and the like.
Drawings
FIG. 1 is a main flow chart of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Example one
As shown in fig. 1, a method for monitoring a FastDFS storage system based on zabbix custom extension includes the following steps:
server building step S1: building a zabbix-server and starting the server;
the monitor program connects step S2: installing a zabbix-agent on the FasDFS host, and connecting the zabbix-agent with a zabbix-server built in a server building S1;
start monitoring step S3: starting a zabbix-agent service;
add monitor step S4: adding software and hardware resources of a FastDFS storage system to a zabbix-server by using a zabbix monitoring template for monitoring;
setting an independent monitoring step S5: setting an independent monitoring item by modifying the custom script, and adding other programs into the zabbix-server for monitoring;
set monitoring warning step S6: setting a trigger for the monitoring item on the zabbix-server according to the fatal, serious, generally serious and warning emergency degree to send warning information;
transmitting abnormality information step S7: and sending the monitored abnormal information to a manager through a mail.
In the monitoring program connection step S2, the specific connection mode between the zabbix-agent and the zabbix-server is as follows: after the zabbix-server is successfully installed, a zabbix-agent host is additionally installed in a page through http:// { zabbix-server ip }:8080, the zabbix-agent host is sequentially clicked to enter a configuration/host/creation host, the zabbix-agent host is created, the created host is connected with the zabbix-server, and at the moment, the zabbix-agent is successfully connected with the zabbix-server.
The specific operation is as follows: rpm-Uvh https:// repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7. nonarch. rpm, yum install zabbix-agent, the 'Server ═ field in/etc/zabbix/zabbix _ agent _ conf is modified into' Server ═ Server IP '(zabbix-Server ip)', after the zabbix-Server is successfully installed, the host for installing zaix-agent is added to the page through http:/{ zabbix-Server ip }, 8080, and the zaix-agent is clicked into the configuration/host in turn to create the host, and the zabbix-agent is successfully connected with the zabbix-Server at this time.
The specific steps of the monitoring program adding step S4 are as follows: logging in a zabbix-server front-end page, sequentially clicking to enter a configuration/host/template, selecting a monitoring template for the host, and then sequentially clicking to enter the monitoring/latest data to see the latest data of various software and hardware monitoring items arranged in the template.
In the step of setting independent monitoring S5, the custom script specifically includes: a shell script or a python script that implements a specific function. E.g. checking whether a certain process exists, etc.
In the step S5 of setting independent monitoring, the setting of independent monitoring items specifically includes: firstly, adding a monitoring item to be monitored into a zabbix-agent, then logging in a front-end page of the zabbix-server, sequentially clicking to enter a configuration/host/monitoring item/create a monitoring item, operating according to a page prompt, and adding the monitoring item to be monitored.
In the setting monitoring warning step S6, the trigger includes: fatal, severe, generally severe, warning four levels.
In the step S7 of sending abnormal information, whether the information is abnormal is determined by a threshold value:
if the information is larger than the set threshold value, judging the information to be abnormal and sending the information through a mail; if the information is less than the set threshold value, the information is judged to be normal and is not processed, for example, when the utilization rate of the CPU exceeds 90%, an alarm is sent, and if the utilization rate of the CPU is less than 90%, the information is judged to be normal and is not processed.
Example two
This embodiment is a further refinement of embodiment one. The specific implementation manner in step S4 is: the page http of the front end of the zabbix-server:// { zabbix-server ip }, 8080 clicks to enter the configuration/host computer in sequence (the host computer to be monitored is selected according to the host computer name), and the appropriate monitoring template is found according to the official introduction of a zabbix official website (https:// www.zabbix.com) to be selected as the host computer, and at the moment, the latest data of monitoring items of various software and hardware arranged in the template can be seen in the monitoring/latest data by clicking in sequence.
The specific implementation steps of the step of setting independent monitoring S5 are as follows: taking a custom script check _ httpd.sh as an example, modifying unsafee userparameters in a configuration file/etc/zabbix/zabbix _ agentd.conf on a zabbix-agent node to be 1, then adding userparameters to check _ httpd, sh/user/local/etc/zabbix/scripts/check _ htpds.sh, saving and exiting, executing systemctl restart zaix-agent to restart a zaix-agent process, logging in zabbix-server front-end page http:/{ zabbix-server ip }, and sequentially clicking 8080 to enter a configuration/host (selecting a host to be monitored according to a host name), monitoring/creating a monitoring item, operating according to a page prompt, and setting the key value to check _ httpd.
EXAMPLE III
The main conception of the invention is as follows: 1) finding a server independently to build a zabbix-server and starting the server;
2) installing zabbix-agent on each FastDFS server, setting the configuration file to be connected with the zabbix-server set up in the first step, and then starting the zabbix-agent service;
3) adding software and hardware resources of a FastDFS storage system into zabbix-server for monitoring by using a zabbix default monitoring item, and simultaneously adding an independent monitoring item which is set by modifying a custom script into other programs for monitoring;
4) setting triggers for monitoring items according to different emergency degrees on the zabbix-server, and sending abnormal information to a manager through mails and the like;
example four
This embodiment is a further refinement of embodiment two.
Interpretation of professional terms:
zabbix-server: the monitoring server, zabbix is an enterprise-level open source solution which provides distributed system monitoring and network monitoring functions based on a WEB interface, and comprises zabbix-server and zabbix-agent, wherein the zabbix-server is a service end, and can provide functions of monitoring remote server/network state, collecting data and the like by SNMP, zabbix agent, ping, port monitoring and the like;
zabbix-agent: the monitoring client, zabbix-agent, needs to be installed on the monitored target server, which mainly completes the collection of hardware information or information related to the operating system, CPU, etc.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A method for monitoring a FastDFS storage system based on zabbix custom extension is characterized by comprising the following steps: the method comprises the following steps:
server building step S1: building a zabbix-server and starting the server;
the monitor program connects step S2: installing a zabbix-agent on the FasDFS host, and connecting the zabbix-agent with a zabbix-server built in a server building S1;
start monitoring step S3: starting a zabbix-agent service;
add monitor step S4: adding software and hardware resources of a FastDFS storage system to a zabbix-server by using a zabbix monitoring template for monitoring;
setting an independent monitoring step S5: setting an independent monitoring item by modifying the custom script, and adding other programs into the zabbix-server for monitoring;
set monitoring warning step S6: setting a trigger for the monitoring item according to the emergency degree on the zabbix-server and sending alarm information;
transmitting abnormality information step S7: and sending the monitored abnormal information to a manager through a mail.
2. The method of monitoring the FastDFS storage system based on zabbix custom extension of claim 1, wherein: in the monitoring program connection step S2, the specific connection mode between the zabbix-agent and the zabbix-server is as follows: after the zabbix-server is successfully installed, a zabbix-agent host is additionally installed in a page through http:// { zabbix-server ip }:8080, the zabbix-agent host is sequentially clicked to enter a configuration/host/creation host, the zabbix-agent host is created, the created host is connected with the zabbix-server, and at the moment, the zabbix-agent is successfully connected with the zabbix-server.
3. The method of monitoring the FastDFS storage system based on zabbix custom extension of claim 1, wherein: the specific steps of the monitoring program adding step S4 are as follows: logging in a zabbix-server front-end page, sequentially clicking to enter a configuration/host/template, selecting a monitoring template for the host, and sequentially clicking to enter the monitoring/latest data to see the latest data of various software and hardware monitoring items arranged in the template.
4. The method of monitoring the FastDFS storage system based on zabbix custom extension of claim 1, wherein: in the step of setting independent monitoring S5, the custom script specifically includes: the script is a peel script or a python script that implements a specific function.
5. The method of monitoring the FastDFS storage system based on zabbix custom extension of claim 1, wherein: in the step S5 of setting independent monitoring, the setting of independent monitoring items specifically includes: firstly, adding a monitoring item to be monitored into a zabbix-agent, then logging in a front page of the zabbix-server, sequentially clicking to enter a configuration/host/monitoring item/create a monitoring item, and adding the monitoring item to be monitored.
6. The method of monitoring the FastDFS storage system based on zabbix custom extension of claim 1, wherein: in the setting monitoring warning step S6, the trigger includes: fatal, severe, generally severe, warning four levels.
7. The method of monitoring the FastDFS storage system based on zabbix custom extension of claim 1, wherein: in the step S7 of sending abnormal information, whether the information is abnormal is determined by a threshold value:
if the information is larger than the set threshold value, judging the information to be abnormal and sending the information through a mail; if the information is less than the set threshold value, the information is judged to be normal and is not processed.
CN202111479165.8A 2021-12-06 2021-12-06 Method for monitoring FastDFS storage system based on zabbix custom expansion Pending CN114168416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111479165.8A CN114168416A (en) 2021-12-06 2021-12-06 Method for monitoring FastDFS storage system based on zabbix custom expansion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111479165.8A CN114168416A (en) 2021-12-06 2021-12-06 Method for monitoring FastDFS storage system based on zabbix custom expansion

Publications (1)

Publication Number Publication Date
CN114168416A true CN114168416A (en) 2022-03-11

Family

ID=80483441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111479165.8A Pending CN114168416A (en) 2021-12-06 2021-12-06 Method for monitoring FastDFS storage system based on zabbix custom expansion

Country Status (1)

Country Link
CN (1) CN114168416A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514674A (en) * 2022-08-24 2022-12-23 智网安云(武汉)信息技术有限公司 Automatic monitoring item creating method and equipment based on script remote connection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514674A (en) * 2022-08-24 2022-12-23 智网安云(武汉)信息技术有限公司 Automatic monitoring item creating method and equipment based on script remote connection
CN115514674B (en) * 2022-08-24 2023-12-26 智网安云(武汉)信息技术有限公司 Automatic monitoring item creation method and equipment based on script remote connection

Similar Documents

Publication Publication Date Title
US9917741B2 (en) Method and system for processing network activity data
US10348809B2 (en) Naming of distributed business transactions
CN110036599B (en) Programming interface for network health information
US7500142B1 (en) Preliminary classification of events to facilitate cause-based analysis
US7287193B2 (en) Methods, systems, and media to correlate errors associated with a cluster
US9219639B2 (en) Automated alert management
US20080016115A1 (en) Managing Networks Using Dependency Analysis
JP2004021549A (en) Network monitoring system and program
US10452469B2 (en) Server performance correction using remote server actions
US7681088B2 (en) Apparatus expressing high availability cluster demand based on probability of breach
US7469287B1 (en) Apparatus and method for monitoring objects in a network and automatically validating events relating to the objects
US10891193B2 (en) Application health monitoring and automatic remediation
US20090138583A1 (en) Method and apparatus for generating statistics on information technology service management problems among assets
CN114168416A (en) Method for monitoring FastDFS storage system based on zabbix custom expansion
US8677323B2 (en) Recording medium storing monitoring program, monitoring method, and monitoring system
US7673035B2 (en) Apparatus and method for processing data relating to events on a network
WO2004017199A1 (en) Method for monitoring and managing an information system
US20060095561A1 (en) Method and apparatus to correlate system management information using instant messaging facilities
US20080125878A1 (en) Method and system to detect application non-conformance
CN106487599B (en) Method and system for distributed monitoring of running state of cloud access controller
US20090138889A1 (en) Method and apparatus for exposing information technology service management problems to a systems management system
EP4006807A1 (en) Event monitoring with support system integration
Zohuri et al. Event Management and Best Practice
US8166116B2 (en) Automatic distribution of corrective configuration information
JP2003186702A (en) Terminal operation monitoring system and terminal operation monitoring method

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