CN116340101A - Resource monitoring method, system, electronic equipment and readable storage medium - Google Patents

Resource monitoring method, system, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116340101A
CN116340101A CN202310315862.2A CN202310315862A CN116340101A CN 116340101 A CN116340101 A CN 116340101A CN 202310315862 A CN202310315862 A CN 202310315862A CN 116340101 A CN116340101 A CN 116340101A
Authority
CN
China
Prior art keywords
resource
resource identifier
server
data
identifier
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
CN202310315862.2A
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.)
Beijing Hechuang Sanzen Energy Tech Stock Corp
Original Assignee
Beijing Hechuang Sanzen Energy Tech Stock Corp
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 Beijing Hechuang Sanzen Energy Tech Stock Corp filed Critical Beijing Hechuang Sanzen Energy Tech Stock Corp
Priority to CN202310315862.2A priority Critical patent/CN116340101A/en
Publication of CN116340101A publication Critical patent/CN116340101A/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/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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3433Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment for load management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a resource monitoring method, a system, an electronic device and a readable storage medium, wherein the method comprises the steps of obtaining a resource identifier and a monitoring period corresponding to the resource identifier; acquiring the latest resource identification according to the monitoring period; when the resource identifier and the latest resource identifier are different, outputting alarm information and a restarting instruction according to the resource identifier and the latest resource identifier. The invention has the effects of timely finding out the server faults and improving the server fault troubleshooting efficiency to a certain extent.

Description

Resource monitoring method, system, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of resource monitoring technologies, and in particular, to a resource monitoring method, a system, an electronic device, and a readable storage medium.
Background
At present, in the using process of the server, the scheduling work of various resources needs to be completed, and when the utilization rate or load of any one of the resources is too high, the operation of the server may be caused to be problematic. Once a server fails, a large loss is brought to the enterprise. The service loss caused by the periodic maintenance of the server and unpredictable downtime can not be estimated each year, the maintenance and problem investigation of the server are also a very time-consuming task, and sometimes it takes a long time to determine which link the problem occurs in, so that the problem investigation is difficult and heavy.
The prior art solutions described above have the following drawbacks: when a problem occurs in the server, the problem is quickly detected.
Disclosure of Invention
In order to improve the problem-solving efficiency of the server, the application provides a resource monitoring method, a system, electronic equipment and a readable storage medium.
In a first aspect of the present application, a resource monitoring method is provided. The method comprises the following steps:
acquiring a resource identifier and a monitoring period corresponding to the resource identifier;
acquiring the latest resource identifier according to the monitoring period;
when the resource identifier and the latest resource identifier are different;
and outputting alarm information and a restarting instruction according to the resource identifier and the latest resource identifier.
According to the technical scheme, the monitoring period is acquired, the latest resource identifier is acquired according to the monitoring period, the latest resource identifier is compared with the resource identifier acquired before, and when the resource identifier is different from the latest resource identifier, alarm information and a restarting instruction are output according to the resource identifier and the latest resource identifier. Through the mode, the monitoring of various resources of the server is realized, when a certain part of the server has a problem, prompt information can be timely output, and the problem investigation efficiency of the server can be improved to a certain extent.
In one possible implementation, the method further includes:
acquiring a resource utilization rate and a resource utilization threshold corresponding to the resource identifier according to the monitoring period;
judging whether the resource utilization rate is larger than the resource utilization threshold value or not;
if yes, outputting alarm information according to the resource identification.
In one possible implementation, the method further includes:
acquiring a resource synchronization instruction;
generating a resource updating code according to the resource synchronization instruction and the updating code generating rule;
acquiring local resource information and local server information according to the resource synchronization instruction;
binding and transmitting the local resource information, the local server information and the resource updating code.
In one possible implementation, the resource identifiers include a hard disk resource identifier, a memory resource identifier, a processor resource identifier, a software resource identifier, and a database resource identifier.
In one possible implementation manner, the obtaining the latest resource identifier includes:
sending a request acquisition message;
receiving returned resource information to generate a response message;
and the response message forms the latest resource identifier.
In a possible implementation manner, the method further includes a method for determining the resource usage threshold, including:
acquiring historical use data of a server, wherein the historical use data of the server comprises a server type, a server year, a server use rate and a server performance grade;
classifying the historical usage data of the server according to the server type and the server age;
historical use data of each type of server is used, and the fluctuation level of the performance level of the server is determined according to the fluctuation calculation rule;
and determining a resource use threshold according to the fluctuation judgment rule and the fluctuation level.
According to the technical scheme, the server history use data are obtained and classified according to the server types and service period years, the resource use threshold corresponding to the servers with the same types and service period years is determined according to the fluctuation calculation rule and the fluctuation judgment rule for each type of the server history use data, the accuracy of server fault detection can be improved to a certain extent, and false alarm and missing report situations are reduced as far as possible.
In one possible implementation manner, the determining the resource usage threshold according to the fluctuation judgment rule and the fluctuation level includes:
the fluctuation level comprises a plurality of data, the data are ordered according to ascending order, and a fluctuation sequence is determined;
sequentially acquiring a difference value between two adjacent data in the fluctuation sequence, and acquiring two data corresponding to the maximum value in the difference value;
and obtaining server utilization rates corresponding to the two data corresponding to the maximum value, and calculating an average number of the server utilization rates, wherein the average number is a resource utilization threshold value.
According to the technical scheme, the data in the fluctuation sequence represent the fluctuation condition of the server resource data in a period of time, the fluctuation condition is sequenced from small to large, the difference between two adjacent data in the fluctuation sequence is calculated, the difference represents the difference of the waveform conditions, the maximum value in the difference is obtained, the maximum value represents the larger difference of the fluctuation conditions of the two groups of data, one group of data is normal fluctuation, the other group of data comprises normal data and abnormal data, the average of the server utilization rates of the two groups of data is calculated, the obtained average is the data between the normal data and the abnormal data, when the average is exceeded, the average is represented to be exceeded by the normal data, faults are easy to cause, the resource utilization threshold value is determined through the calculation method, and the accuracy of the server fault detection can be improved to a certain extent.
In a second aspect of the present application, a resource monitoring system is provided. The system comprises:
the first data acquisition module is used for acquiring a resource identifier and a monitoring period corresponding to the resource identifier;
the second data acquisition module is used for acquiring the latest resource identification according to the monitoring period;
the data judging module is used for judging whether the resource identifier is the same as the latest resource identifier;
and the instruction output module is used for outputting alarm information and a restarting instruction according to the resource identifier and the latest resource identifier when the resource identifier and the latest resource identifier are different.
In a third aspect of the present application, an electronic device is provided. The electronic device includes: a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method as described above when executing the program.
In a fourth aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as according to the first aspect of the present application.
In summary, the present application includes at least one of the following beneficial technical effects:
1. by acquiring the monitoring period and the latest resource identification according to the monitoring period, comparing the latest resource identification with the corresponding resource identification, when the resource identification is different from the latest resource identification, outputting alarm information and restarting instructions according to the resource identification and the latest resource identification, monitoring various resources of the server is realized, and when a certain part of the server has a problem, prompt information can be timely output, so that the problem investigation efficiency of the server can be improved to a certain extent.
Drawings
Fig. 1 is a schematic flow chart of a resource monitoring method provided in the present application.
Fig. 2 is a schematic structural diagram of the resource monitoring system provided in the present application.
Fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
In the figure, 200, a resource monitoring system; 201. a first data acquisition module; 202. a second data acquisition module; 203. a data judging module; 204. an instruction output module; 301. a CPU; 302. a ROM; 303. a RAM; 304. an I/O interface; 305. an input section; 306. an output section; 307. a storage section; 308. a communication section; 309. a driver; 310. removable media.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
Embodiments of the present application are described in further detail below with reference to the drawings attached hereto.
The embodiment of the application provides a resource monitoring method, and the main flow of the method is described as follows:
as shown in fig. 1:
step S101: and acquiring the resource identifier and a monitoring period corresponding to the resource identifier.
Specifically, the resource identifier includes a hard disk resource identifier, a memory resource identifier, a processor resource identifier, a software resource identifier and a database resource identifier. In this embodiment, the resource monitoring is to monitor information states of a hard disk, a memory, a CPU, software, a database, and the like, where the hard disk resource identifier represents monitoring data of the hard disk, the memory resource identifier represents monitoring data of the memory, the processor resource identifier represents monitoring data of the CPU, the software resource identifier represents monitoring data of various software, and the database resource identifier represents monitoring data of various databases. The monitoring period of the hard disk resource identifier is 24 hours, the monitoring period of the memory resource identifier is 1 hour, the monitoring period of the processor resource identifier is 1 hour, the monitoring periods corresponding to the software resource identifier and the database resource identifier are 1 hour, the monitoring period is set for people, and the monitoring periods of different resource identifiers can be modified according to different use requirements.
Step S102: and acquiring the latest resource identification according to the monitoring period.
Specifically, for each resource identifier, every one monitoring period, a request acquisition message is sent to software or hardware corresponding to the resource identifier, the request acquisition message is used for acquiring the latest resource identifier from the software or hardware corresponding to the resource identifier, the resource information returned by the server is received to generate a response message, and the response message forms the latest resource identifier. The returned resource information is the information state corresponding to the resource identifier, and it can be understood that the data types of the resource identifier and the latest resource identifier are the same, and the difference between the resource identifier and the latest resource identifier is that the resource identifier is pre-stored data, and the latest resource identifier is the latest data acquired at each interval of monitoring period.
Step S103: when the resource identifier and the latest resource identifier are different, outputting alarm information and a restarting instruction according to the resource identifier and the latest resource identifier.
Specifically, the resource identifier is compared with the latest resource identifier, and when the resource identifier is different from the corresponding latest resource identifier, alarm information is output. When the resource identifier is a software resource identifier, the alarm information is output and the software corresponding to the software resource identifier is controlled to restart. When the resource identifier is other resource identifiers, only alarm information is output when the resource identifier is different from the corresponding latest resource identifier.
In this embodiment, data monitoring is performed on information states of the SSH port, software, and database. The SSH port is monitored once per hour, a designated server is accessed through SSH without secret access, a SSH command is sent to monitor the SSH default port by using ps-ef|grep sshd in linux, whether returned data are consistent with a resource identifier is processed, whether the server runs normally is judged, and when the data are inconsistent, alarm information is output to remind a manager to process in time. The software is monitored once every hour, different ip addresses and port ports are accessed according to the difference of the ip addresses and the port ports when the software is started, whether an access result is consistent with a resource identifier is judged, when the result is inconsistent, the software is considered to have a problem, alarm information is output, and meanwhile, a restarting instruction is output to control the software to restart. The MYSQL database is monitored once every one hour, a section of unique and fixed data is stored in the MYSQL database, when the section of data is read, the MYSQL database is considered to be normally operated, and if the section of data is not read, alarm information is required to be output to prompt a manager that the MYSQL database is abnormally operated and the management needs to be timely processed. The Redis database is monitored once every hour, a section of unique and fixed data is stored in the Redis database, when the section of data is read successfully, the Redis database is considered to run normally, and if the section of data cannot be read, alarm information needs to be output to prompt a manager that the Redis database has abnormality in running and needs to be processed in time.
Step S104: acquiring a resource utilization rate and a resource utilization threshold corresponding to the resource identifier according to the monitoring period; when the resource utilization rate is greater than the resource utilization threshold, alarm information is output according to the resource identification.
Specifically, according to the monitoring period, the resource utilization rate and the resource utilization threshold value corresponding to the resource identifier are obtained, namely, for different resource identifiers, according to the monitoring period corresponding to each interval, the resource utilization rate corresponding to the resource identifier is obtained, the resource utilization threshold value corresponding to the resource identifier is called from the database, when the resource utilization rate is smaller than or equal to the resource utilization threshold value, the current resource is indicated to have no problem, normal use can be kept, when the resource utilization rate is larger than the resource utilization threshold value, the current resource is indicated to have higher load, the resource failure can be possibly caused, and alarm information is output.
In this embodiment, data monitoring is performed on information states of the hard disk, the memory and the CPU. Every twenty-four hours, the hard disk is monitored once, a designated server is accessed through ssh without a secret access, a df command in linux is used for monitoring a server data disk, the utilization rate of the hard disk is calculated, and when the utilization rate is greater than or equal to 80%, alarm information is output to remind a manager to process in time. The memory is monitored once every hour, a designated server is accessed through ssh without a secret access, a free command in linux is used for monitoring the memory of the server, the utilization rate of the memory is calculated, and when the utilization rate is more than or equal to 80%, alarm information is output to remind management personnel to process in time. The CPU, namely the central processing unit, is monitored once every hour, a designated server is accessed through ssh without being accessed densely, a top command in linux is used, top-b-n1|sed-n '3p' is used, data of one row of the CPU are obtained, the CPU utilization rate is obtained through calculation, and when the CPU utilization rate is greater than 80%, alarm information is output to remind a manager to process in time. The 80% is the resource usage threshold.
Prior to step S104, the method for determining a resource usage threshold is further included:
specifically, server history use data including a use time, a server type, a server year, a server use rate, and a server performance level is obtained, where the use time is an output time of the piece of data. The server type represents the model of the server, the server period represents the service life of the server, the service utilization rate comprises memory utilization rate, CPU utilization rate and hard disk utilization rate, and the service performance level comprises the storage speed of the memory, the working efficiency of the CPU and the transmission rate of the hard disk. According to the server type and the server age, the historical use data of the server are classified, namely, the historical use data of the server with the same server type and the same server age are used as one type. And for each type of server historical use data, determining the fluctuation level of the server performance level according to the fluctuation calculation rule. And determining a resource use threshold according to the fluctuation judgment rule and the fluctuation level. The fluctuation level comprises a plurality of data, the plurality of data are ordered according to ascending order, and a fluctuation sequence is determined; sequentially acquiring a difference value between two adjacent data in the fluctuation sequence, and acquiring two data corresponding to the maximum value in the difference value; and obtaining server utilization rates corresponding to the two data corresponding to the maximum value, and calculating an average of the server utilization rates, wherein the average is a resource utilization threshold.
In this embodiment, for each type of server history usage data, ascending order is performed according to the usage time, then data of each preset time interval is used as a small branch, variance of each small branch data is calculated, then the variances are ascending order ordered according to the numerical value, difference values between two adjacent variances are sequentially calculated, a maximum value in the difference values is obtained, two difference values corresponding to the maximum value are determined according to the maximum value, history usage data corresponding to the two difference values are obtained, server usage rates in the history usage data corresponding to the two interpolation values are averaged, and the average is a resource usage threshold corresponding to the server type and the server age of the type.
Through the scheme, the resource use threshold corresponding to the servers with the same type and service life can be determined by analyzing the servers with different types and service life, so that the accuracy of server fault detection can be improved to a certain extent, and the situations of false alarm and missing report can be reduced as far as possible.
Step S105: and acquiring a resource synchronization instruction, determining local information according to the synchronization instruction, and transmitting the local information.
Specifically, a resource synchronization instruction is acquired, a resource update code is generated according to the resource synchronization instruction and an update code generation rule, local resource information and local server information are acquired according to the resource synchronization instruction, and the local resource information, the local server information and the resource update code are bound and transmitted.
In this embodiment, an operator clicks a resource synchronization button to generate a resource synchronization instruction, a server receives the resource synchronization instruction, and generates a section of code uuid after receiving the resource synchronization instruction, where uuid is the resource update code, and is used to identify that the section of data is a monitoring result that has completed updating, and obtain monitoring resource data, that is, the local resource information and the local server information, and bind the resource update code, the local resource information and the local server information and send the bound information to a global server, where an address of the global server is preconfigured, that is, the bound information is sent to a designated location. And meanwhile, on the local server, the latest data result is updated, namely, the data which is not updated by the uuid is found from the existing monitoring result, and the data corresponding to the latest returned uuid is updated. The generation method of the resource update code is a technical means known to those skilled in the art, and will not be described herein.
Referring to fig. 2, the resource monitoring system 200 includes:
a first data obtaining module 201, configured to obtain a resource identifier and a monitoring period corresponding to the resource identifier;
a second data obtaining module 202, configured to obtain the latest resource identifier according to the monitoring period;
a data judging module 203, configured to judge whether the resource identifier and the latest resource identifier are the same;
and the instruction output module 204 is configured to output alarm information and a restart instruction according to the resource identifier and the latest resource identifier when the resource identifier and the latest resource identifier are different.
It will be clear to those skilled in the art that, for convenience and brevity of description, reference may be made to the corresponding process in the foregoing method embodiment for the specific working process of the described module, which is not described herein again.
The embodiment of the application discloses electronic equipment. Referring to fig. 3, the electronic device includes a Central Processing Unit (CPU) 301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage portion 307 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the system operation are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other by a bus. An input/output (I/O) interface 304 is also connected to the bus.
The following components are connected to the I/O interface 304: an input section 305 including a keyboard, a mouse, and the like; an output portion 306 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 307 including a hard disk and the like; and a communication section 308 including a network interface card such as a LAN card, a modem, or the like. The communication section 308 performs communication processing via a network such as the internet. A driver 309 is also connected to the I/O interface 304 as needed. A removable medium 310 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 309 as needed, so that a computer program read out therefrom is installed into the storage section 307 as needed.
In particular, according to embodiments of the present application, the process described above with reference to flowchart fig. 1 may be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 308, and/or installed from the removable media 310. The above-described functions defined in the apparatus of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 301.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the application referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or their equivalents is possible without departing from the spirit of the application. Such as the above-mentioned features and the technical features having similar functions (but not limited to) applied for in this application are replaced with each other.

Claims (10)

1. A method for monitoring resources, comprising:
acquiring a resource identifier and a monitoring period corresponding to the resource identifier, wherein the resource identifier comprises a hard disk resource identifier, a memory resource identifier, a processor resource identifier, a software resource identifier and a database resource identifier;
acquiring the latest resource identifier according to the monitoring period;
when the resource identifier and the latest resource identifier are different;
and outputting alarm information and a restarting instruction according to the resource identifier and the latest resource identifier.
2. The resource monitoring method of claim 1, further comprising:
acquiring a resource utilization rate and a resource utilization threshold corresponding to the resource identifier according to the monitoring period;
judging whether the resource utilization rate is larger than the resource utilization threshold value or not;
if yes, outputting alarm information according to the resource identification.
3. The resource monitoring method of claim 1, further comprising:
acquiring a resource synchronization instruction;
generating a resource updating code according to the resource synchronization instruction and the updating code generating rule;
acquiring local resource information and local server information according to the resource synchronization instruction;
binding and transmitting the local resource information, the local server information and the resource updating code.
4. The resource monitoring method of claim 1, wherein the resource identification comprises a hard disk resource identification, a memory resource identification, a processor resource identification, a software resource identification, and a database resource identification.
5. The method for monitoring resources according to claim 1, wherein the obtaining the latest resource identifier includes:
sending a request acquisition message;
receiving returned resource information to generate a response message;
and the response message forms the latest resource identifier.
6. The resource monitoring method according to claim 2, further comprising a determination method of the resource usage threshold, comprising:
acquiring historical use data of a server, wherein the historical use data of the server comprises a server type, a server year, a server use rate and a server performance grade;
classifying the historical usage data of the server according to the server type and the server age;
historical use data of each type of server is used, and the fluctuation level of the performance level of the server is determined according to the fluctuation calculation rule;
and determining a resource use threshold according to the fluctuation judgment rule and the fluctuation level.
7. The method of claim 6, wherein determining the resource usage threshold based on the fluctuation judgment rule and the fluctuation level comprises:
the fluctuation level comprises a plurality of data, the data are ordered according to ascending order, and a fluctuation sequence is determined;
sequentially acquiring a difference value between two adjacent data in the fluctuation sequence, and acquiring two data corresponding to the maximum value in the difference value;
and obtaining server utilization rates corresponding to the two data corresponding to the maximum value, and calculating an average number of the server utilization rates, wherein the average number is a resource utilization threshold value.
8. A resource monitoring system, comprising:
a first data acquisition module (201) for acquiring a resource identifier and a monitoring period corresponding to the resource identifier;
a second data acquisition module (202) for acquiring the latest resource identifier according to the monitoring period;
a data judging module (203) for judging whether the resource identifier and the latest resource identifier are the same;
and the instruction output module (204) is used for outputting alarm information and a restarting instruction according to the resource identifier and the latest resource identifier when the resource identifier and the latest resource identifier are different.
9. An electronic device comprising a memory and a processor, wherein the memory has stored thereon a computer program, and wherein the processor implements the method of any of claims 1-7 when the program is executed.
10. A computer readable storage medium, characterized in that a computer program is stored thereon, which program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202310315862.2A 2023-03-28 2023-03-28 Resource monitoring method, system, electronic equipment and readable storage medium Pending CN116340101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310315862.2A CN116340101A (en) 2023-03-28 2023-03-28 Resource monitoring method, system, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310315862.2A CN116340101A (en) 2023-03-28 2023-03-28 Resource monitoring method, system, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116340101A true CN116340101A (en) 2023-06-27

Family

ID=86881974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310315862.2A Pending CN116340101A (en) 2023-03-28 2023-03-28 Resource monitoring method, system, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116340101A (en)

Similar Documents

Publication Publication Date Title
CN112162878B (en) Database fault discovery method and device, electronic equipment and storage medium
JP2010526352A (en) Performance fault management system and method using statistical analysis
CN106874135B (en) Method, device and equipment for detecting machine room fault
US10127092B1 (en) Method and apparatus for monitoring a message transmission frequency in a robot operating system
CN107800783B (en) Method and device for remotely monitoring server
CN112764956A (en) Database exception handling system, and database exception handling method and device
CN113656252B (en) Fault positioning method, device, electronic equipment and storage medium
CN114461439A (en) Fault diagnosis method, device, equipment and storage medium
CN114238036A (en) Method and device for monitoring abnormity of SAAS (software as a service) platform in real time
CN112887355B (en) Service processing method and device for abnormal server
CN113760634A (en) Data processing method and device
CN116634493A (en) Alarm information processing method and device, equipment and computer readable storage medium
CN116340101A (en) Resource monitoring method, system, electronic equipment and readable storage medium
CN116645082A (en) System inspection method, device, equipment and storage medium
CN115509714A (en) Task processing method and device, electronic equipment and storage medium
CN115543345A (en) Distributed computing system for power time sequence data and implementation method thereof
CN114779747A (en) Vehicle fault cause determination system and method
CN111459752A (en) Operation and maintenance method and device for working equipment, server and operation terminal
CN112541011A (en) Power grid terminal fault processing method and device based on RPA and AI
US11243776B2 (en) Systems and/or methods for generating complex event processing (CEP) events and query definitions for real-time decomposition of resource usage data
CN111737132A (en) Project code data publishing method, system, electronic device and storage medium
CN116737339A (en) Batch task processing method, device, equipment, system, medium and program product
CN117827587A (en) Database abnormal node determination method, apparatus, device, medium and program product
CN116684905A (en) Information processing method, device and equipment
CN115794537A (en) Information system risk early warning method and device

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