CN114090387A - Server monitoring method and device, server and storage medium - Google Patents

Server monitoring method and device, server and storage medium Download PDF

Info

Publication number
CN114090387A
CN114090387A CN202111405524.5A CN202111405524A CN114090387A CN 114090387 A CN114090387 A CN 114090387A CN 202111405524 A CN202111405524 A CN 202111405524A CN 114090387 A CN114090387 A CN 114090387A
Authority
CN
China
Prior art keywords
server
index value
target format
monitoring
aix
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
CN202111405524.5A
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111405524.5A priority Critical patent/CN114090387A/en
Publication of CN114090387A publication Critical patent/CN114090387A/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/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • 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/3068Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data format conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The application provides a server monitoring method, a device, a server and a storage medium, wherein the method acquires a monitoring index value of an AIX server, wherein the monitoring index value is acquired through an operation instruction of the AIX server; converting the monitoring index value into a target format index value which can be recognized by a Promiers server according to a preset conversion rule; the target format index value is exposed through the hypertext transfer protocol server, so that the Prometheus server captures the target format index value according to the hypertext transfer protocol server and performs server fault identification according to the target format index value, monitoring and fault identification of the AIX server through the Prometheus server are achieved, and stability and safety of the AIX server are improved.

Description

Server monitoring method and device, server and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a server monitoring method, an apparatus, a server, and a storage medium.
Background
With the rapid development of the computer industry, the application of the server in practical application, especially in large-scale data centers, cloud computing bases and other occasions, is more and more extensive, so that the server needs to be monitored to ensure the operation quality of the server. The operating system aix (advanced Interactive eXexecuting) is a set of UNIX-like operating systems, and runs on a small machine hardware system.
At present, a server mostly adopts Prometheus promemeus to realize monitoring, the Prometheus is a time sequence database written by Go language, can support clients of multiple languages, is an advanced monitoring system born in the cloud native era, and provides a complete solution for a server operating system mainstream in the current industry, such as Linux and Windows.
For the AIX server operating system which does not support the Go language compiler, however, Prometheus cannot be adopted to realize server monitoring.
Disclosure of Invention
The application provides a server monitoring method, a server monitoring device, a server and a storage medium, which are used for solving the technical problem that the monitoring of the server cannot be realized by Prometheus aiming at an AIX server operating system which does not support a Go language compiler in the prior art.
In a first aspect, the present application provides a server monitoring method, including:
acquiring a monitoring index value of the AIX server, wherein the monitoring index value is acquired through an operation instruction of the AIX server;
converting the monitoring index value into a target format index value which can be recognized by a Promiers server according to a preset conversion rule;
and exposing the target format index value through a hypertext transfer protocol server so that the Promiex server captures the target format index value according to the hypertext transfer protocol server and performs server fault identification according to the target format index value.
The method comprises the steps of firstly obtaining a monitoring index value of the AIX server through an operation instruction of the AIX server, then converting the monitoring index value of the AIX server into a target format index value which can be identified by a Prometheus server according to a preset conversion rule, and then exposing the target format index value through a HyperText Transfer Protocol (HTTP) server for the Prometheus server to capture periodically or non-periodically so as to realize the monitoring and fault identification of the AIX server through the Prometheus server and improve the stability and the safety of the AIX server.
Optionally, the preset conversion rule includes a preset index name conversion rule, a preset index description conversion rule and a preset index data type conversion rule;
correspondingly, the converting the monitoring index value into a target format index value recognizable by the prometies server according to a preset conversion rule includes:
converting the monitoring index value into a target index name, a target index description and a target index data type according to the preset index name conversion rule, the preset index description conversion rule and the preset index data type conversion rule;
and determining a target format index value which can be identified by the Promiers server according to the target index name, the target index description and the target index data type.
Here, when the monitoring index value is converted, the monitoring index value may be converted through a preset index name conversion rule, a preset index description conversion rule and a preset index data type conversion rule, so as to obtain a target index name, a target index description and a target index data type which meet requirements of a Prometheus server, and further obtain a target format index value, which is convenient for capturing of Prometheus server identification, further ensures feasibility of the Prometheus server on monitoring of the AIX server, accurately converts the format, and also improves monitoring accuracy.
Optionally, after the converting the monitoring index value into a target format index value recognizable by a prometix server, the method further includes:
and storing the target format index value.
The storing the target format indicator value comprises:
and storing the target format index value to a cloud server.
Here, after the AIX server obtains the target format index value, the target format index value may be stored, so that the Prometheus server can obtain the monitoring index of the AIX server in time, and also can determine the fault condition of the AIX server according to the monitoring index at different times, further, the target format index value is stored in the cloud server, so that the Prometheus server can capture the monitoring index, and the Prometheus server can perform batch server monitoring through the content stored in different AIX servers in the cloud server, thereby improving the monitoring efficiency.
Optionally, after the exposing the target format index value by the hypertext transfer protocol server, the method further includes:
receiving fault information sent by the Promisis server;
and carrying out fault processing according to the fault information.
Here, the application can receive the fault information sent by the Prometheus server, and carry out fault processing according to the fault information, thereby further improving the safety and stability of the AIX server.
In a second aspect, the present application provides a server monitoring method, including:
capturing a target format index value through a hypertext transfer protocol server, wherein the target format index value is a target format index value acquired by an AIX server, converting the monitoring index value into a target format index value which can be identified by a Promiers server according to a preset conversion rule, and exposing the target format index value through the hypertext transfer protocol server;
and according to the target format index value, performing server fault identification on the AIX server.
The application provides a server monitoring method applied to a Prometous server, which can capture the target format index value converted by the AIX server and realize the monitoring and fault identification of the AIX server.
Optionally, the capturing, by the hypertext transfer protocol server, the target format indicator value includes:
capturing target format index values of a plurality of AIX servers on a cloud storage server through a hypertext transfer protocol server;
correspondingly, the identifying the server fault of the AIX server according to the target format index value comprises the following steps:
and according to the target format index value, performing server fault identification on the plurality of AIX servers.
The Prometheus server can monitor and identify faults of a plurality of AIX servers in batches, the efficiency of server monitoring and fault identification is further improved, and the intellectualization and automation of server monitoring are improved.
Optionally, after the identifying the server failure of the AIX server, the method further includes:
and sending the failure information to the AIX server.
In a third aspect, the present application provides a server monitoring apparatus, including:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a monitoring index value of the AIX server, and the monitoring index value is acquired through an operation instruction of the AIX server;
the conversion module is used for converting the monitoring index value into a target format index value which can be identified by the Promiers server according to a preset conversion rule;
the first processing module is used for exposing the target format index value through a hypertext transfer protocol server so that the Promiers server captures the target format index value according to the hypertext transfer protocol server and performs server fault identification according to the target format index value.
Optionally, the preset conversion rule includes a preset index name conversion rule, a preset index description conversion rule and a preset index data type conversion rule;
correspondingly, the conversion module is specifically configured to:
converting the monitoring index value into a target index name, a target index description and a target index data type according to the preset index name conversion rule, the preset index description conversion rule and the preset index data type conversion rule;
and determining a target format index value which can be identified by the Promismus server according to the target index name, the target index description and the target index data type.
Optionally, after the converting module converts the monitoring index value into a target format index value recognizable by the prometies server, the apparatus further includes:
and the storage module is used for storing the target format index value.
Optionally, the storage module is specifically configured to store the target format index value to a cloud server.
Optionally, after the first processing module exposes the target format index value through a hypertext transfer protocol server, the apparatus further includes:
the second processing module is used for receiving fault information sent by the Promishs server; and carrying out fault processing according to the fault information.
In a fourth aspect, the present application provides a server monitoring apparatus, including:
the capturing module is used for capturing a target format index value through a hypertext transfer protocol server, wherein the target format index value is a target format index value obtained by an AIX server, the monitoring index value is converted into a target format index value which can be identified by a Promiers server according to a preset conversion rule, and the target format index value is exposed through the hypertext transfer protocol server;
and the identification module is used for identifying the server fault of the AIX server according to the target format index value.
Optionally, the fetching module is specifically configured to fetch target format index values of a plurality of AIX servers on a cloud storage server through a hypertext transfer protocol server;
correspondingly, the module is specifically configured to:
and according to the target format index value, performing server fault identification on the plurality of AIX servers.
Optionally, after the identifying module identifies the server failure of the AIX server, the apparatus further includes:
and the sending module is used for sending the fault information to the AIX server.
In a fifth aspect, the present application provides a server, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the server monitoring method as set forth in the first aspect above and in various possible designs of the first aspect.
In a sixth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions, and when a processor executes the computer-executable instructions, the server monitoring method according to the first aspect and various possible designs of the first aspect is implemented.
In a seventh aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the server monitoring method as described above in the first aspect and in various possible designs of the first aspect.
In an eighth aspect, the present application provides a server, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform the server monitoring method as set forth in the second aspect above and in various possible designs of the second aspect.
In a ninth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions, and when executed by a processor, implements the server monitoring method according to the second aspect and various possible designs of the second aspect.
In a tenth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the server monitoring method as set forth in the second aspect above and in various possible designs of the second aspect.
According to the server monitoring method, the server monitoring device, the server and the storage medium, firstly, the monitoring index value of the AIX server is obtained through the operation instruction of the AIX server, then the monitoring index value of the AIX server is converted into the target format index value which can be identified by the Prometheus server according to the preset conversion rule, and then the target format index value is exposed through the HTTP server and is periodically or non-periodically grabbed by the Prometheus server, so that the AIX server can be monitored and identified through the Prometheus server, and the stability and the safety of the AIX server are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be 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 only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a server monitoring system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a server monitoring method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another server monitoring method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server monitoring apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server monitoring device according to an embodiment of the present application
Fig. 6 is a schematic structural diagram of another server monitoring apparatus according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terms "first," "second," "third," and "fourth," if any, in the description and claims of this application and the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As a Unix-like operating system, AIX carries a Python script language, a standard library can support all required functions, a running environment or an extension library does not need to be installed for the operating system, Python is a convenient and non-invasive development language relative to the AIX operating system, and therefore AIX _ exporter can be developed by using the Python language. Prometheus is an advanced monitoring system born by the cloud native age, provides a set of efficient, stable and flexible monitoring solution with easily-expanded functions, and provides a complete solution for the server operating system which is mainstream in the current industry, such as Linux and Windows. However, for other operating systems that do not provide a mature agent, such as IBM AIX operating system, which is still deployed in large numbers by large enterprises, Prometheus and its ecological application programs are mostly developed using Go language, including node _ exporter for Linux operating system server monitoring, which cannot implement server monitoring using Prometheus because the AIX server operating system does not support Go language compiler.
In order to solve the foregoing technical problem, embodiments of the present application provide a server monitoring method, apparatus, server, and storage medium, which may obtain an index value of a monitoring index through an operation instruction of an AIX server, perform format conversion, and expose the converted index value in a format recognizable by a Prometheus server for being captured by the monitoring server.
Optionally, fig. 1 is a schematic diagram of a server monitoring system architecture provided in an embodiment of the present application. As shown in fig. 1, the architecture includes a Prometheus server 101, a first AIX server 102, a second AIX server 103, and a third AIX server 104.
The Prometheus server 101 is in communication connection with a first AIX server 102, a second AIX server 103, and a third AIX server 104, respectively.
Exemplarily, the server monitoring system architecture of the embodiment of the present application includes 3 AIX servers, and it is understood that in an actual application process, the Prometheus server 101 may establish a connection with any number of AIX servers.
In some possible embodiments, the embodiments of the present application may be applied to solve the host resource monitoring and alarm problem of a large-scale AIX operating system server cluster in Infrastructure as a Service (IaaS). IaaS refers to a service mode in which Internet Technology (IT) infrastructure is provided as a service to the outside through a network and is charged according to the actual usage or occupation of resources by users.
The Prometheus server 101 may supervise any of the first AIX server 102, the second AIX server 103, and the third AIX server 104, or may monitor all the AIX servers in the server monitoring system in a batch manner, such as the first AIX server 102, the second AIX server 103, and the third AIX server 104 in fig. 1.
Optionally, the Prometheus server and the AIX server may be communicatively connected via an http server.
It is to be understood that the illustrated structure of the embodiment of the present application does not form a specific limitation to the architecture of the server monitoring system. In other possible embodiments of the present application, the foregoing architecture may include more or less components than those shown in the drawings, or combine some components, or split some components, or arrange different components, which may be determined according to practical application scenarios, and is not limited herein. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
In addition, the network architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided in the embodiment of the present application, and it can be known by a person skilled in the art that along with the evolution of the network architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
The technical solutions of the present application are described below with several embodiments as examples, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of a server monitoring method provided in an embodiment of the present application, where an execution subject in the embodiment of the present application may be any AIX server in the embodiment shown in fig. 1, and a specific execution subject may be determined according to an actual application scenario. As shown in fig. 2, the method comprises the steps of:
s201: and acquiring a monitoring index value of the AIX server.
Wherein, the monitoring index value is obtained by the operation instruction of the AIX server.
Optionally, the operational instruction of the AIX server is an AIX self-contained Python scripting language instruction.
Optionally, the subpacess packet of the Python standard library may execute the operating system command and read the return result, and in this way, execute the appropriate operating system command, and intercept and analyze the text content of the command execution result, thereby obtaining the value of the monitoring index.
In one possible implementation, the monitoring metric values include system runtime and system average load.
Optionally, the run "uptime" command obtains the system run time and the system average load.
The "uptime" command includes up, which is the system running time, and load average, which represents the average load of the system.
In one possible implementation, the monitoring indicator includes a Central Processing Unit (CPU) utilization.
Alternatively, a "vmstat 11" command is run to acquire the CPU usage.
The command vmstat 11 includes us, sy, id and wa, which are respectively a user space CPU utilization rate, a kernel space CPU utilization rate, an idle CPU utilization rate and a CPU utilization rate for input/output (io) waiting.
In one possible implementation, the monitoring indicator value includes a memory indicator.
Optionally, the memory index is obtained by running the svmon-G.
In one possible implementation, the monitoring indicator value includes file system space usage.
Optionally, a "df-k" command is run to obtain file system space usage.
In one possible implementation, the monitoring indicator value includes an indicator related to the usage of the disk.
Optionally, running the "iostat 11" command to obtain the relevant index of the disk usage.
In one possible implementation, the monitoring index value includes an en0 network card index.
Optionally, a command of 'netstat-v en 0' is run to obtain an en0 network card index. The commands may include Transmit status, Receive status, Packets, Bytes, Errors, and Dropped. Transmit Statistics column is the sending Statistics, Receive Statistics is the receiving Statistics, Packets is the number of transmitted data Packets, Bytes is the number of transmitted Bytes, Errors are the number of error Packets, and Dropped is the number of discarded Packets.
S202: and converting the monitoring index value into a target format index value which can be recognized by the Promiers server according to a preset conversion rule.
Optionally, the preset conversion rule includes a preset index name conversion rule, a preset index description conversion rule and a preset index data type conversion rule; correspondingly, according to a preset conversion rule, converting the monitoring index value into a target format index value which can be recognized by the Promishs server, and the method comprises the following steps:
converting the monitoring index value into a target index name, a target index description and a target index data type according to a preset index name conversion rule, a preset index description conversion rule and a preset index data type conversion rule; and determining a target format index value which can be identified by the Promishs server according to the target index name, the target index description and the target index data type.
The pointer obtained by aix _ exporter needs to be converted into a pointer format exposure required by Prometheus, and then the pointer can be correctly identified and captured.
Optionally, the target index data type has an index format of:
# HELP index name index description
Data TYPE of # TYPE index name index
Index name (tag: tag value …) index value timestamp
Through the format conversion, the Prometheus server can periodically capture the monitoring index of the AIX server at a fixed time interval and store the monitoring index into the time sequence database for subsequent inquiry, display and evaluation alarm, and the function of monitoring the AIX server is realized.
Here, when the monitoring index value is converted, the monitoring index value may be converted through a preset index name conversion rule, a preset index description conversion rule, and a preset index data type conversion rule, so as to obtain a target index name, a target index description, and a target index data type that meet requirements of the Prometheus server, and further obtain a target format index value, which is convenient for capturing of Prometheus server identification, further ensures feasibility of the Prometheus server on monitoring the AIX server, and improves accuracy of monitoring.
S203: and exposing the target format index value through the hypertext transfer protocol server so that the Promiex server captures the target format index value according to the hypertext transfer protocol server and performs server fault identification according to the target format index value.
Optionally, the HTTP server is started using the basehttp server packet of the standard library, and the indicator value is exposed for the promemeus server to periodically fetch.
The embodiment of the application provides a server monitoring method applied to an AIX operating system server, which comprises the steps of firstly obtaining a monitoring index value of the AIX server through an operating instruction of the AIX server, then converting the monitoring index value of the AIX server into a target format index value which can be identified by a Prometheus server according to a preset conversion rule, and then exposing the target format index value through an HTTP server for the Prometheus server to capture regularly or irregularly, so that the monitoring and fault identification of the AIX server through the Prometheus server are realized, and the stability and the safety of the AIX server are improved.
In an alternative implementation, in order to facilitate the Prometheus server to automatically batch monitor the AIX server, the AIX server may store and upload the monitoring index value.
Optionally, after converting the monitoring index value into a target format index value recognizable by the prometies server, the method further includes: and storing the target format index value.
Storing a target format indicator value, comprising: and storing the target format index value to the cloud server.
Optionally, the cloud server is a Configuration Management Database (CMDB).
The CMDB stores and manages various configuration information of equipment in the IT architecture of the enterprise, is closely connected with all service support and service delivery processes, supports the operation of the processes, exerts the value of the configuration information and simultaneously depends on the related processes to ensure the accuracy of data.
Optionally, the embodiment of the application may implement automatic deployment of a monitoring agent, connect the AIX server and the Prometheus, use a Python development program, obtain controlled (AIX server) terminal information from the CMDB, use a Paramiko module to remotely log in a controlled terminal to copy and start AIX _ expressor script, periodically update the controlled terminal information to a configuration file of the Prometheus, capture a monitoring index exposed by the controlled terminal according to the configuration file by using a service discovery mechanism of the Prometheus, and implement a function of automatically deploying the monitoring agent in batches. Meanwhile, the program receives a monitoring target loss of connection alarm sent by Prometheus, and executes an installation and deployment process on a loss of connection terminal, so that the functions of automatic fault handling and automatic loss of connection admission are realized.
Here, after the AIX server of the embodiment of the application obtains the target format index value, the target format index value may be stored, so that the Prometheus server can obtain the monitoring index of the AIX server in time, and also can determine the fault condition of the AIX server according to the monitoring index at different time, further, the target format index value is stored in the cloud server, so that the Prometheus server can capture the monitoring index, and the Prometheus server can perform batch server monitoring through the content stored in different AIX servers in the cloud server, thereby improving the monitoring efficiency.
Optionally, after the target format index value is exposed by the hypertext transfer protocol server, the method further includes: receiving fault information sent by a Promiers server; and carrying out fault processing according to the fault information.
Here, the embodiment of the application may receive the failure information sent by the Prometheus server, and perform failure processing according to the failure information, thereby further improving the security and stability of the AIX server.
Optionally, an embodiment of the present application provides another server monitoring method, and correspondingly, fig. 3 is a schematic flowchart of the another server monitoring method provided in the embodiment of the present application, an execution subject in the embodiment of the present application may be the Prometheus server 101 in the embodiment shown in fig. 1, and a specific execution subject may be determined according to an actual application scenario. As shown in fig. 3, the method comprises the steps of:
s301: and capturing a target format index value through a hypertext transfer protocol server.
The target format index value is obtained by the AIX server, the monitoring index value is converted into a target format index value which can be identified by the Promiers server according to a preset conversion rule, and the target format index value is exposed through the hypertext transfer protocol server.
Optionally, grabbing the target format index value by a hypertext transfer protocol server includes: capturing target format index values of a plurality of AIX servers on a cloud storage server through a hypertext transfer protocol server;
correspondingly, according to the target format index value, the server fault identification is carried out on the AIX server, and the method comprises the following steps: and according to the target format index value, performing server fault identification on the plurality of AIX servers.
The Prometheus server provided by the embodiment of the application can monitor and identify the faults of a plurality of AIX servers in batches, so that the monitoring and fault identification efficiency of the servers is further improved, and the monitoring intelligence and automation of the servers are improved.
S302: and according to the target format index value, performing server fault identification on the AIX server.
Optionally, after the server failure identification is performed on the AIX server, the method further includes:
and sending the failure information to the AIX server.
The embodiment of the application provides a server monitoring method applied to a Prometous server, which can capture the target format index value converted by the AIX server and realize the monitoring and fault identification of the AIX server.
Fig. 4 is a schematic structural diagram of a server monitoring apparatus provided in an embodiment of the present application, and as shown in fig. 4, the apparatus in the embodiment of the present application includes: an acquisition module 401, a conversion module 402 and a first processing module 403. The server monitoring means here may be any of the AIX servers or the processor itself described above, or a chip or integrated circuit that implements the functionality of the server. It should be noted here that the division of the obtaining module 401, the converting module 402 and the first processing module 403 is only a division of logical functions, and the two may be integrated or independent physically.
The system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a monitoring index value of the AIX server, and the monitoring index value is acquired through an operation instruction of the AIX server;
the conversion module is used for converting the monitoring index value into a target format index value which can be recognized by the Promishs server according to a preset conversion rule;
the first processing module is used for exposing the target format index value through the hypertext transfer protocol server so that the Promiex server captures the target format index value according to the hypertext transfer protocol server and performs server fault identification according to the target format index value.
Optionally, the preset conversion rule includes a preset index name conversion rule, a preset index description conversion rule and a preset index data type conversion rule;
correspondingly, the conversion module is specifically configured to:
converting the monitoring index value into a target index name, a target index description and a target index data type according to a preset index name conversion rule, a preset index description conversion rule and a preset index data type conversion rule;
and determining a target format index value which can be identified by the Promiers server according to the target index name, the target index description and the target index data type.
Optionally, after the converting module converts the monitoring index value into a target format index value recognizable by the prometies server, the apparatus further includes:
and the storage module is used for storing the target format index value.
Optionally, the storage module is specifically configured to store the target format index value to a cloud server.
Optionally, after the first processing module exposes the target format indicator value through the hypertext transfer protocol server, the apparatus further includes:
the second processing module is used for receiving fault information sent by the Promishs server; and carrying out fault processing according to the fault information.
Fig. 5 is a schematic structural diagram of a server (which may be any AIX server in fig. 1) according to an embodiment of the present disclosure. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not limiting to the implementations of the application described and/or claimed herein.
As shown in fig. 5, the server includes: a processor 501 and a memory 502, the various components being interconnected using different buses, and may be mounted on a common motherboard or in other manners as desired. The processor 501 may process instructions for execution within the terminal, including instructions for graphical information stored in or on a memory for display on an external input/output device (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. In fig. 5, one processor 501 is taken as an example.
The memory 502, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method of the server in the embodiments of the present application (for example, the obtaining module 401, the converting module 402, and the first processing module 403 shown in fig. 4). The processor 501 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 502, that is, implements the method of the server in the above-described method embodiments.
The server may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the server, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, or the like. The output device 504 may be an output device such as a display device of the server. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
The server in the embodiment of the present application may be configured to execute the technical solutions in the method embodiments of the present application, and the implementation principles and technical effects are similar, which are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used to implement any one of the server monitoring methods described above.
An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program is configured to implement the server monitoring method in any one of the foregoing embodiments.
Fig. 6 is a schematic structural diagram of another server monitoring apparatus provided in the embodiment of the present application, and as shown in fig. 6, the apparatus in the embodiment of the present application includes: a grabbing module 601 and a recognition module 602. The server monitoring device may be any of the Prometheus servers 101 or the processor itself, or a chip or an integrated circuit that implements the functions of the server. It should be noted here that the division of the grasping module 601 and the identifying module 602 is only a division of logical functions, and the two may be integrated or independent physically.
The capturing module is used for capturing a target format index value through the hypertext transfer protocol server, wherein the target format index value is a target format index value acquired by the AIX server, converting the monitoring index value into a target format index value which can be recognized by the Promiex server according to a preset conversion rule, and exposing the target format index value through the hypertext transfer protocol server;
and the identification module is used for identifying the server fault of the AIX server according to the target format index value.
Optionally, the capturing module is specifically configured to capture target format index values of the plurality of AIX servers on the cloud storage server through the hypertext transfer protocol server;
correspondingly, the module is specifically configured to:
and according to the target format index value, performing server fault identification on the plurality of AIX servers.
Optionally, after the identification module identifies the server failure of the AIX server, the apparatus further includes:
and the sending module is used for sending the fault information to the AIX server.
An embodiment of the present application further provides a server, where the server includes: a processor and memory, the various components being interconnected using different buses, and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the terminal, including instructions for graphical information stored in or on the memory for display on an external input/output device (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the crawling module 601 and the recognition module 602 shown in fig. 6) corresponding to the method of the server in the embodiments of the present application. The processor executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory, that is, implements the method of the server in the above method embodiments.
The server may further include: an input device and an output device. The processor, memory, input device, and output device may be connected by a bus or other means.
The input device may receive input numeric or character information and generate key signal inputs related to user settings and function control of the server, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, or the like. The output means may be an output device such as a display device of the server. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
The server in the embodiment of the present application may be configured to execute the technical solutions in the method embodiments of the present application, and the implementation principles and technical effects are similar, which are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used to implement any one of the server monitoring methods described above.
An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program is configured to implement any one of the server monitoring methods described above.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A server monitoring method, comprising:
acquiring a monitoring index value of the AIX server, wherein the monitoring index value is acquired through an operation instruction of the AIX server;
converting the monitoring index value into a target format index value which can be recognized by a Promiers server according to a preset conversion rule;
and exposing the target format index value through a hypertext transfer protocol server so that the Promiex server captures the target format index value according to the hypertext transfer protocol server and performs server fault identification according to the target format index value.
2. The method according to claim 1, wherein the preset conversion rules include a preset index name conversion rule, a preset index description conversion rule, and a preset index data type conversion rule;
correspondingly, the converting the monitoring index value into a target format index value recognizable by the prometies server according to a preset conversion rule includes:
converting the monitoring index value into a target index name, a target index description and a target index data type according to the preset index name conversion rule, the preset index description conversion rule and the preset index data type conversion rule;
and determining a target format index value which can be identified by the Promismus server according to the target index name, the target index description and the target index data type.
3. The method of claim 1, further comprising, after said converting the monitoring metric value to a target format metric value recognizable by a Promishs Server:
and storing the target format index value.
4. The method of claim 3, wherein storing the target format indicator value comprises:
and storing the target format index value to a cloud server.
5. The method according to any one of claims 1 to 4, further comprising, after said exposing the target format indicator value by the hypertext transfer protocol server:
receiving fault information sent by the Promisis server;
and carrying out fault processing according to the fault information.
6. A server monitoring method, comprising:
capturing a target format index value through a hypertext transfer protocol server, wherein the target format index value is a target format index value acquired by an AIX server, converting the monitoring index value into a target format index value which can be identified by a Promiers server according to a preset conversion rule, and exposing the target format index value through the hypertext transfer protocol server;
and according to the target format index value, performing server fault identification on the AIX server.
7. The method of claim 6, wherein said capturing a target format indicator value by a hypertext transfer protocol server comprises:
capturing target format index values of a plurality of AIX servers on a cloud storage server through a hypertext transfer protocol server;
correspondingly, the identifying the server fault of the AIX server according to the target format index value comprises the following steps:
and according to the target format index value, performing server fault identification on the plurality of AIX servers.
8. The method according to claim 6 or 7, further comprising, after said identifying the AIX server for server failure:
and sending the fault information to the AIX server.
9. A server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 5.
10. A server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 6 to 8.
11. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the server monitoring method according to any one of claims 1 to 5.
12. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the server monitoring method according to any one of claims 6 to 8.
CN202111405524.5A 2021-11-24 2021-11-24 Server monitoring method and device, server and storage medium Pending CN114090387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111405524.5A CN114090387A (en) 2021-11-24 2021-11-24 Server monitoring method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111405524.5A CN114090387A (en) 2021-11-24 2021-11-24 Server monitoring method and device, server and storage medium

Publications (1)

Publication Number Publication Date
CN114090387A true CN114090387A (en) 2022-02-25

Family

ID=80304031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111405524.5A Pending CN114090387A (en) 2021-11-24 2021-11-24 Server monitoring method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN114090387A (en)

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
KR102493449B1 (en) Edge computing test methods, devices, electronic devices and computer-readable media
US9734005B2 (en) Log analytics for problem diagnosis
CN105357038B (en) Monitor the method and system of cluster virtual machine
US11630762B2 (en) Method and apparatus for testing map service
CN108521353B (en) Processing method and device for positioning performance bottleneck and readable storage medium
CN111309343B (en) Development deployment method and device
CN111382048B (en) Management method and device for mobile equipment on true machine test platform
US20210311780A1 (en) Method and system for arranging business process, computing device, and non-transitory computer readable storage medium
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
CN103294580A (en) Real time performance monitoring
CN111045911A (en) Performance test method, performance test device, storage medium and electronic equipment
CN110851324A (en) Log-based routing inspection processing method and device, electronic equipment and storage medium
CN110851471A (en) Distributed log data processing method, device and system
BR102021002596A2 (en) DYNAMICALLY ALLOCATED CLOUD OPERATORS MANAGEMENT SYSTEM AND METHOD FOR IT
CN112463432A (en) Inspection method, device and system based on index data
CN111740859A (en) Test environment deployment method and device, electronic equipment and storage medium
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN114090387A (en) Server monitoring method and device, server and storage medium
CN116248526A (en) Method and device for deploying container platform and electronic equipment
US20240103824A1 (en) Server management apparatus and server management method
CN112068980B (en) Method and device for sampling information before CPU suspension, equipment and storage medium
CN114095343A (en) Disaster recovery method, device, equipment and storage medium based on double-active system
CN117493065B (en) Method and device for processing processor information, storage medium and electronic equipment
US20230259377A1 (en) User input predictive action system and method for user interfaces

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