CN113448793A - System monitoring method and device compatible with multiple operating systems - Google Patents

System monitoring method and device compatible with multiple operating systems Download PDF

Info

Publication number
CN113448793A
CN113448793A CN202010217802.3A CN202010217802A CN113448793A CN 113448793 A CN113448793 A CN 113448793A CN 202010217802 A CN202010217802 A CN 202010217802A CN 113448793 A CN113448793 A CN 113448793A
Authority
CN
China
Prior art keywords
command
commands
monitoring
monitored
command set
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.)
Granted
Application number
CN202010217802.3A
Other languages
Chinese (zh)
Other versions
CN113448793B (en
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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202010217802.3A priority Critical patent/CN113448793B/en
Publication of CN113448793A publication Critical patent/CN113448793A/en
Application granted granted Critical
Publication of CN113448793B publication Critical patent/CN113448793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • 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/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The application discloses a system monitoring method and a device compatible with multiple operating systems, wherein the method is applied to a micro-service cluster comprising at least two servers, and the method comprises the following steps: determining a parent template of the system to be monitored from a template library according to the received selection information; wherein the parent template comprises a first set of commands to monitor a first system; adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored. The method and the device solve the technical problem that a static constant class monitoring mode in the prior art is not suitable for monitoring a service server in a distributed deployment mode.

Description

System monitoring method and device compatible with multiple operating systems
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a system monitoring method and apparatus compatible with multiple operating systems.
Background
In the prior art, in order to ensure the healthy and stable operation of the micro-service, a network manager requires real-time monitoring of various operation indexes of a server running the micro-service and modification of some parameters of an operating system, and a specific monitoring mode may be to write a set of shell commands for acquiring data and modifying parameters aiming at the version of the operating system of the server deploying the micro-service, and acquire index data and modify parameters of a single server.
In the current system monitoring implementation, a static constant class is created, and all shell commands to be used for monitoring are written in the constant class, such as the shell commands of centros 6.9 in the prior art. When the Shell command needs to be used, the tool class remote login server can be connected through an SSH (secure Shell protocol), and then the logged-in server executes the corresponding command in the static class to obtain the result.
The storage mode for storing the shell command has good support for a fixed operating system version deployed in a single-point set, and programmers only need to establish a static constant class, write all commands to be used into the constant class, remotely connect to a server and execute the commands. The implementation mode has simple code compiling, can finish collecting the operation index of the server and modifying the parameters of the operating system without loading any configuration file;
however, in order to meet new requirements of cloud platform of an operator, network management services are developed by adopting a micro-service architecture, a deployment mode is changed from single-point centralized deployment to multipoint distributed deployment (as shown in fig. 1), multiple servers may exist in one micro-service cluster, and operating systems and versions installed by the servers may be different, so that shell commands for collecting data and modifying parameters are more or less different.
In the distributed deployment mode, some shell commands may change each time an operating system is changed or upgraded, such as from centros 6.9 to centros 7; therefore, the method can cause the code to be modified, packaged, tested and a new version to be generated, the maintenance cost is increased, and if two or more than two operating systems or operating system versions appear in the cluster deployment, the method can not realize the execution of the shell command.
Disclosure of Invention
The application provides a system monitoring method and device compatible with multiple operating systems, which are used for solving the technical problem that a static constant monitoring mode in the prior art is not suitable for monitoring a service server in a distributed deployment mode.
In a first aspect, please provide a system monitoring method compatible with multiple operating systems, which is applied in a microservice cluster including at least two servers, and the method includes:
determining a parent template of the system to be monitored from a template library according to the received selection information; wherein the parent template comprises a first set of commands to monitor a first system;
adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored.
In the embodiment of the application, the template is adopted to quickly match different operating systems and versions under the condition of not modifying codes, and index monitoring or parameter modification is carried out on a plurality of different operating systems and versions at the same time. Therefore, the method provided by the embodiment of the application can identify the version of the server, and then the corresponding execution command is acquired through the version calling template, so that the method has the advantage of intellectualization; compared with the prior monitoring mode, when the system version is changed, the code is required to be modified, and only a template is required to be added, so that the maintenance cost is saved.
An optional implementation manner, before adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set, further includes:
and outputting an operation interface based on the first command set, and receiving the adjustment information through the operation interface.
In an alternative embodiment, the at least one command is a command that is different between the first system and the system to be monitored.
An optional implementation manner, after the adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set, further includes:
converting all commands in the second command set into JavaBean objects;
and splicing the JavaBean objects into character strings in the form of xml tags, and generating an xml file for monitoring the system to be monitored.
In an optional embodiment, the adjustment information further includes a regular expression corresponding to the at least one command; the regular expression is used for judging whether the running result after the at least one command is adjusted is correct.
In the example, the regular matching rule is introduced into the template, so that the problem that the returned result is different after different operating systems or versions execute the command is solved.
In a second aspect, a system monitoring apparatus compatible with multiple operating systems is provided, the apparatus is applied in a microservice cluster including at least two servers, and the apparatus includes:
the determining module is used for determining a parent template of the system to be monitored from the template library according to the received selection information; wherein the parent template comprises a first set of commands to monitor a first system;
the generating module is used for adjusting at least one command in the first command set according to the received adjusting information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored.
In an alternative embodiment, the apparatus further comprises:
and the interaction module is used for outputting an operation interface based on the first command set and receiving the adjustment information through the operation interface.
In an alternative embodiment, the apparatus further comprises:
the file module is used for converting all the commands in the second command set into JavaBean objects; and splicing the JavaBean objects into character strings in the form of xml tags, and generating an xml file for monitoring the system to be monitored.
In a third aspect, a server is provided, where the server includes at least one processor and a memory connected to the at least one processor, and the at least one processor is configured to implement the method steps of the first aspect and any optional implementation manner of the first aspect when executing a computer program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method steps of the first aspect as well as any of the optional embodiments of the first aspect.
The beneficial effect of this application is as follows:
in the embodiment of the application, the template is adopted to quickly match different operating systems and versions under the condition of not modifying codes, and index monitoring or parameter modification is carried out on a plurality of different operating systems and versions at the same time. Therefore, the method provided by the embodiment of the application can identify the version of the server, and then the corresponding execution command is acquired through the version calling template, so that the method has the advantage of intellectualization; compared with the prior monitoring mode, when the system version is changed, the code is required to be modified, and only a template is required to be added, so that the maintenance cost is saved.
Drawings
Fig. 1 is a schematic diagram of a network management server architecture to which the method provided in the embodiment of the present application is applicable;
fig. 2 is a schematic flowchart illustrating a system monitoring method compatible with multiple operating systems according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a graphical interaction interface provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of a system monitoring apparatus compatible with multiple operating systems according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a system monitoring server compatible with multiple operating systems according to an embodiment of the present application.
Detailed Description
The method provided by the embodiment of the application can be applied to a network management server framework shown in figure 1, the network management server framework is developed by adopting a micro-service framework in order to meet new requirements of cloud platform of an operator, and the deployment mode is changed from single-point centralized deployment to multipoint distributed deployment. The network management server framework of distributed deployment comprises: the system comprises a client, a web server, a plurality of business servers, a system monitoring server and a DB (Database) server, wherein the plurality of business servers in the framework can realize distributed deployment of micro-services, and the client can acquire data in the DB server through the web server and one of the plurality of business servers. In order to ensure the healthy and stable operation of the micro-service, the network manager requires real-time monitoring of various operation indexes of each server and modification of some parameters of an operating system; in fig. 1, a system monitoring server obtains data of each service server and modifies parameters of a system in each service server through a set monitoring program; in the prior art, if there is another service server, the system monitoring server may write a set of shell commands for acquiring data and modifying parameters for the operating system version of the service server, and acquire index data and modify parameters for a single service server. However, based on the situation that a plurality of service servers exist in the existing micro-service cluster shown in fig. 1, operating systems and versions installed by the plurality of service servers may be different, so that shell commands for collecting data and modifying parameters are more or less different, and the monitoring mode provided by the prior art is no longer applicable to the distributed deployment mode.
For example, if the system is upgraded from centros 6.9 to centros 7, a part of the shell command constant class of the monitoring system centros 6.9 may be:
public class LinuxCmd {/View System version information {/{/View System version information { [ MEANS ]
public static final String SYSTEM _ RELEASE ═ cat/etc/SYSTEM-RELEASE; checking ftp status
public static final String FTP _ STATUS ═ service vsftpd STATUS "; /activation ftp-
public static final String FTP _ START ═ service vsftpd START; stop ftp-
public static final String FTP _ STOP is "service vsftpd STOP"; checking ftp user-
If upgrading to centros 7, the centros 7 constant class part corresponding to the aforementioned centros 6.9 needs to be modified to:
public class LinuxCmd {/see system version information {/live
public static final String SYSTEM _ RELEASE ═ cat/etc/SYSTEM-RELEASE; checking ftp status
public static final FTP _ STATUS ═ systemctl STATUS vsftpd "; /activation ftp-
public static final String FTP _ START ═ systemctl START vsftpd "; stop ftp-
public static final String FTP _ STOP is "systemctl STOP vsftpd"; checking ftp user-
It can be concluded from the system upgrade that although the system upgrade proposed in the above example only changes individual commands, the code is still modified, packaged, tested, and a new version is generated, which increases the maintenance cost, and the monitoring method in the prior art cannot realize monitoring if two or more operating systems or operating system versions appear in the cluster deployment.
Based on the problems of the prior art, the embodiments of the present application provide a method, which has the following overall idea:
determining a parent template of the system to be monitored from a template library according to the received selection information; wherein the parent template comprises a first set of commands to monitor a first system;
adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in 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.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Based on the above prior art problems, in the embodiments of the present application, in consideration of flexible configuration of operating system commands and compatibility with different operating systems and versions, a template-based system monitoring scheme is provided, and the method and apparatus provided in the embodiments of the present application are further described in detail below with reference to the accompanying drawings and specific application scenarios:
as shown in fig. 2, an embodiment of the present application provides a system monitoring method compatible with multiple operating systems, where the method is applied to a microservice cluster including at least two servers, and the method includes:
based on the fact that operating systems and versions installed by a plurality of service servers are possibly different, shell commands for collecting data and modifying parameters are different to a greater or lesser extent, and although the shell commands are different, a great deal of commonality exists among the shell commands, so that in the scheme of the application, based on the characteristics, before a certain new system (namely, a system which does not have a corresponding monitoring program before) is monitored, a template system (which has a corresponding monitoring program and is within a set range) closest to the new system is selected, and then the monitoring program is correspondingly adjusted and modified on the basis of the template system, so that a program capable of monitoring the new system is generated; therefore, in the method of this embodiment, first, a parent template of the system to be monitored (i.e., a basic system for generating a program for monitoring a new system) needs to be determined, and the specific implementation may be:
step 201, determining a parent template of a system to be monitored from a template library according to received selection information; wherein the parent template comprises a first set of commands to monitor a first system;
in the embodiment of the application, in order to improve the efficiency of the user in adjusting the command and reduce the difficulty in modifying the command, a graphical interactive interface convenient for the user to operate may be further provided, and all the commands in the first command set are displayed through the graphical interactive interface, so that the user may determine a specific modification mode through the graphical operating interface with the relevant usage description, and input selection information that needs to modify the system monitoring command through the graphical interactive interface. Before adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set, the method further includes:
and outputting an operation interface based on the first command set, and receiving the adjustment information through the operation interface.
For example, the system provides a base command template of centos6.0.xml by default, the base template is standard commands of the centos6.0 (6.0 is currently stable and widely used centso version), and partial commands included in the centos6.0 (as shown in FIG. 3: view ftp status, open ftp service … … memory usage, etc.).
After selecting a suitable parent template and receiving corresponding selection information, a monitoring program capable of monitoring the new system can be obtained through background operation, which specifically includes:
step 202, adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored.
Based on the differences between the systems, in this embodiment, after selecting an appropriate parent template system, the differences between the parent template system and the system to be monitored are determined, and the differences are different from the monitoring command, including the format and parameters of the command, and the like. The at least one command in this example is a different command between the first system and the system to be monitored.
Referring to the interface shown in fig. 3, when modification adjustment needs to be performed on the command in centros 6.0, adjustment information may be input in the interface shown in fig. 3 to perform modification adjustment on the command. For example, adjusting "view ftp state", a command line corresponding to "view ftp state" in the interactive interface shown in fig. 3 may be selected, and then adjustment information is input based on a command format or parameters required by the system to be monitored; referring to the previous example, where the adjustment is from centros 6.9 to centros 7, the shell command "view ftp status" can be modified from "service vsftpd stop" to "systemctl stop vsftpd";
further, if the operation result of the command needs to be judged, a corresponding regular rule can be input in the regular matching column. The method may further comprise:
the adjustment information further comprises a regular expression corresponding to the at least one command; the regular expression is used for judging whether the running result after the at least one command is adjusted is correct.
Determining a parent template and the difference between the system to be monitored and the template based on the above manner, and determining the content of the parent template to be adjusted for monitoring the system to be monitored, and then correspondingly generating a program capable of monitoring the system to be monitored through various manners, in the embodiment of the application, in order to flexibly obtain a new monitoring program, an xml file can be generated based on a second command set; the xml file is a file type of common storage information in Java, and has the advantages of flexible use and easy analysis of contents. The specific implementation may be that, after the adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set, the method further includes:
converting all commands in the second command set into JavaBean objects;
and splicing the JavaBean objects into character strings in the form of xml tags, and generating an xml file for monitoring the system to be monitored.
In order to be compatible with different operating systems and versions, the embodiment of the application introduces a template mechanism to establish a template for each monitored operating system version, wherein the template can be stored in an xml file format; the xml file may include:
and a list tag, wherein all group tags are contained in the list tag.
Each group label represents a group of labels for collecting one server operation index or server parameter modification, and the labels of the group labels comprise:
the id tags represent the unique designation of the group tag group.
The shell label represents a shell command for collecting the operation index of the server or modifying the parameter of the server. For example, if the "ftp service state" needs to be detected, the label of one shell is < shell > service vsftpdstatus >;
the regular tag represents that the command executes the regular matching of the returned result, and is matched with the shell command to obtain a final result; if the label is empty, the regular matching is not needed.
The name tag is a description of the shell's basic functionality.
And the monitoring system loads the xml file when being started, each group label is mapped into a java bean object and stored in a set, and the corresponding java bean object can be indexed through the unique identifier id when the monitoring system is used.
For example, the monitoring commands that a certain system to be monitored needs to use include: shell commands of ftp service state, ftp service starting, ftp service closing, ftp user logging, the number of ftp users logging, firewall state, firewall closing, firewall starting and residual memory correspond to the xml file:
Figure BDA0002424977580000091
Figure BDA0002424977580000101
Figure BDA0002424977580000111
in this example, all commands to be used by the system monitoring are written in the xml file in the form of the above-mentioned tags. An operator can create a new sub-template named by an operating system and a version combination by taking a basic template or other existing templates as a parent template according to specific needs through an operation interface shown in fig. 3, the sub-template completely inherits the content of the parent template, after the creation is completed, a command and a rule which are different from those of the parent template are modified so as to be suitable for a new system to be monitored, and after the modification is completed, the sub-template is submitted to generate a new xml file without modifying codes or making versions.
In order to ensure that the monitoring server can acquire the corresponding template file, in the embodiment of the application, after the xml file is generated for each service server, a system _ version file can be created under the monitored server/etc/directory, and the content identical to the template name (combination of the operating system and the version) is written in the file, so that the operating system and the version installed on the server, such as centrsos 6.0, Solaris10 and the like, can be conveniently and uniformly confirmed.
In this embodiment of the present application, if the system monitoring server is to monitor any service server, an existing template is loaded into the cache (i.e., an xml file that has been generated is obtained and loaded into the cache), and when the remote connection server executes a command, a universal command cat/etc/system _ version for obtaining an os version of a system to be detected is first executed, and a key is used for combining the server ip and the obtained os version: the value form is stored in the cache and then the corresponding template is selected according to the operating system and version (see the implementation used in fig. 3).
Based on the xml file format corresponding to each system, after the interface shown in fig. 3 determines the first shell command to be adjusted, the id tag of the first shell command may be correspondingly determined, then the command to be executed is obtained by uniquely marking the id tag, and after the remote login is executed, the final result is obtained by matching with the corresponding rule, so as to realize the monitoring of the system to be monitored.
In the embodiment of the application, the template is adopted to quickly match different operating systems and versions under the condition of not modifying codes, and index monitoring or parameter modification is carried out on a plurality of different operating systems and versions at the same time. Therefore, the method provided by the embodiment of the application can identify the version of the server, and then the corresponding execution command is acquired through the version calling template, so that the method has the advantage of intellectualization; compared with the prior monitoring mode, when the system version is changed, the code is required to be modified, and only a template is required to be added, so that the maintenance cost is saved.
In addition, regular matching rules can be introduced into the template, so that the problem of difference in returned results after different operating systems or versions execute commands is solved.
The template inheritance mode is realized, so that an operator can modify the newly-built sub-template in a minimized way and can be matched with a new operating system quickly. The function of monitoring two or more operating systems or versions simultaneously appears in the cluster deployment.
As shown in fig. 4, the embodiment further provides a system monitoring apparatus compatible with multiple operating systems, which is applied in a microservice cluster including at least two servers, and the apparatus includes:
a determining module 401, configured to determine, according to the received selection information, a parent template of the system to be monitored from a template library; wherein the parent template comprises a first set of commands to monitor a first system;
a generating module 402, configured to adjust at least one command in the first command set according to the received adjustment information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored.
Wherein the at least one command is a command which is different between the first system and the system to be monitored.
In this embodiment of the present application, in order to improve efficiency of adjusting a command by a user and reduce difficulty of modifying the command, a graphical interactive interface convenient for the user to operate may be further provided, where the apparatus further includes:
and the interaction module is used for outputting an operation interface based on the first command set and receiving the adjustment information through the operation interface.
Further, if the operation result of the command needs to be judged, a corresponding regular rule can be input in the regular matching column. The adjustment information further includes a regular expression corresponding to the at least one command; the regular expression is used for judging whether the running result after the at least one command is adjusted is correct.
In this embodiment of the application, in order to flexibly obtain a new monitoring program, an xml file may be generated based on the second command set, and the apparatus may further include:
the file module is used for converting all the commands in the second command set into JavaBean objects; and splicing the JavaBean objects into character strings in the form of xml tags, and generating an xml file for monitoring the system to be monitored.
Based on the same inventive concept, an embodiment of the present application provides a system monitoring server compatible with multiple operating systems, please refer to fig. 5, where the server includes at least one processor 502 and a memory 501 connected to the at least one processor, a specific connection medium between the processor 502 and the memory 501 is not limited in this embodiment of the present application, fig. 5 illustrates that the processor 502 and the memory 501 are connected by a bus 500, the bus 500 is represented by a thick line in fig. 5, and a connection manner between other components is only schematically illustrated and not limited thereto. The bus 500 may be divided into an address bus, a data bus, a control bus, etc., and is shown with only one thick line in fig. 5 for ease of illustration, but does not represent only one bus or one type of bus.
In the embodiment of the present application, the memory 501 stores instructions executable by the at least one processor 502, and the at least one processor 502 may execute the steps included in the method for controlling a network data forwarding plane by calling the instructions stored in the memory 501. The processor 502 is a control center of the server, and may be connected to various parts of the entire server through various interfaces and lines, and implement various functions of the server by executing instructions stored in the memory 501. Optionally, the processor 502 may include one or more processing units, and the processor 502 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 502. In some embodiments, the processor 502 and the memory 501 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The memory 501, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 501 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 501 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 501 in the embodiments of the present application may also be a circuit or any other device capable of implementing a storage function for storing program instructions and/or data.
The processor 502 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method for controlling a network data forwarding plane disclosed in the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
By programming the processor 502, the code corresponding to the method for controlling the network data forwarding plane described in the foregoing embodiment may be fixed in the chip, so that the chip can execute the steps of the method for controlling the network data forwarding plane when running.
Based on the same inventive concept, the embodiment of the present application further provides a storage medium, where the storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer executes the steps of the system monitoring method compatible with multiple operating systems as described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A system monitoring method compatible with multiple operating systems is applied to a micro service cluster comprising at least two servers, and the method comprises the following steps:
determining a parent template of the system to be monitored from a template library according to the received selection information; wherein the parent template comprises a first set of commands to monitor a first system;
adjusting at least one command in the first command set according to the received adjustment information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored.
2. The method of claim 1, wherein before adjusting at least one command in the first set of commands to obtain a second set of commands according to the received adjustment information, further comprising:
and outputting an operation interface based on the first command set, and receiving the adjustment information through the operation interface.
3. A method according to claim 1 or 2, wherein the at least one command is a different command between the first system and the system to be monitored.
4. The method of claim 1, wherein after adjusting at least one command in the first set of commands according to the received adjustment information to obtain a second set of commands, further comprising:
converting all commands in the second command set into JavaBean objects;
and splicing the JavaBean objects into character strings in the form of xml tags, and generating an xml file for monitoring the system to be monitored.
5. The method of claim 1, in which the adjustment information further comprises a regular expression corresponding to the at least one command; the regular expression is used for judging whether the running result after the at least one command is adjusted is correct.
6. A system monitoring apparatus compatible with multiple operating systems, the apparatus being applied to a microservice cluster including at least two servers, the apparatus comprising:
the determining module is used for determining a parent template of the system to be monitored from the template library according to the received selection information; wherein the parent template comprises a first set of commands to monitor a first system;
the generating module is used for adjusting at least one command in the first command set according to the received adjusting information to obtain a second command set; and the second command set comprises commands for monitoring the system to be monitored.
7. The apparatus of claim 6, further comprising:
and the interaction module is used for outputting an operation interface based on the first command set and receiving the adjustment information through the operation interface.
8. The apparatus of claim 6, further comprising:
the file module is used for converting all the commands in the second command set into JavaBean objects; and splicing the JavaBean objects into character strings in the form of xml tags, and generating an xml file for monitoring the system to be monitored.
9. A server, characterized in that the server comprises at least one processor and a memory connected to the at least one processor, the at least one processor being adapted to carry out the steps of the method according to any of claims 1-5 when executing a computer program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202010217802.3A 2020-03-25 2020-03-25 System monitoring method and device compatible with multiple operating systems Active CN113448793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010217802.3A CN113448793B (en) 2020-03-25 2020-03-25 System monitoring method and device compatible with multiple operating systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010217802.3A CN113448793B (en) 2020-03-25 2020-03-25 System monitoring method and device compatible with multiple operating systems

Publications (2)

Publication Number Publication Date
CN113448793A true CN113448793A (en) 2021-09-28
CN113448793B CN113448793B (en) 2023-05-30

Family

ID=77806880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010217802.3A Active CN113448793B (en) 2020-03-25 2020-03-25 System monitoring method and device compatible with multiple operating systems

Country Status (1)

Country Link
CN (1) CN113448793B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070705A (en) * 2021-11-16 2022-02-18 广东九博科技股份有限公司 Device network management method, medium and device based on command line
CN115499336A (en) * 2022-08-19 2022-12-20 恒丰银行股份有限公司 Method, equipment and medium for monitoring full life cycle of application system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198920A1 (en) * 2001-06-22 2002-12-26 Wonderware Corporation Supervisory process control and manufacturing information system application having a layered architecture
US6789252B1 (en) * 1999-04-15 2004-09-07 Miles D. Burke Building business objects and business software applications using dynamic object definitions of ingrediential objects
CN102710467A (en) * 2012-06-29 2012-10-03 北京天地云箱科技有限公司 Monitoring method and monitoring device
CN104022902A (en) * 2014-05-30 2014-09-03 京东方科技集团股份有限公司 Method and system of monitoring server cluster
CN104518917A (en) * 2015-01-26 2015-04-15 浪潮通信信息***有限公司 Automatic server patrol inspection method
CN107491371A (en) * 2016-06-13 2017-12-19 阿里巴巴集团控股有限公司 A kind of method and device for monitoring deployment
CN107528708A (en) * 2016-06-21 2017-12-29 天脉聚源(北京)科技有限公司 A kind of method and system for arranging Linux server cluster
CN107766205A (en) * 2017-10-10 2018-03-06 武汉大学 A kind of monitoring system and method towards the tracking of micro services invoked procedure
WO2019005351A1 (en) * 2017-06-29 2019-01-03 Microsoft Technology Licensing, Llc Code review rebase diffing
CN109144869A (en) * 2018-08-16 2019-01-04 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium
CN110618914A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Monitoring method, device and system for distributed system cluster

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6789252B1 (en) * 1999-04-15 2004-09-07 Miles D. Burke Building business objects and business software applications using dynamic object definitions of ingrediential objects
US20020198920A1 (en) * 2001-06-22 2002-12-26 Wonderware Corporation Supervisory process control and manufacturing information system application having a layered architecture
CN102710467A (en) * 2012-06-29 2012-10-03 北京天地云箱科技有限公司 Monitoring method and monitoring device
CN104022902A (en) * 2014-05-30 2014-09-03 京东方科技集团股份有限公司 Method and system of monitoring server cluster
CN104518917A (en) * 2015-01-26 2015-04-15 浪潮通信信息***有限公司 Automatic server patrol inspection method
CN107491371A (en) * 2016-06-13 2017-12-19 阿里巴巴集团控股有限公司 A kind of method and device for monitoring deployment
CN107528708A (en) * 2016-06-21 2017-12-29 天脉聚源(北京)科技有限公司 A kind of method and system for arranging Linux server cluster
WO2019005351A1 (en) * 2017-06-29 2019-01-03 Microsoft Technology Licensing, Llc Code review rebase diffing
CN107766205A (en) * 2017-10-10 2018-03-06 武汉大学 A kind of monitoring system and method towards the tracking of micro services invoked procedure
CN109144869A (en) * 2018-08-16 2019-01-04 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium
CN110618914A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Monitoring method, device and system for distributed system cluster

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070705A (en) * 2021-11-16 2022-02-18 广东九博科技股份有限公司 Device network management method, medium and device based on command line
CN115499336A (en) * 2022-08-19 2022-12-20 恒丰银行股份有限公司 Method, equipment and medium for monitoring full life cycle of application system

Also Published As

Publication number Publication date
CN113448793B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US11599348B2 (en) Container image building using shared resources
US10430204B2 (en) System and method for cloud provisioning and application deployment
US7774762B2 (en) System including run-time software to enable a software application to execute on an incompatible computer platform
US7861243B2 (en) Automatically deploying program units to a cluster of networked servers
US8051405B2 (en) System and method for build script generation in a software development environment
US20160019072A1 (en) Dynamic determination of application server runtime classloading
CN105490860A (en) Method, device and system for deploying application program operation environment
US9569181B2 (en) System and method for supporting an object oriented scripting tool
US20080222160A1 (en) Method and system for providing a program for execution without requiring installation
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
US20040088397A1 (en) System and method for management of software applications
CN111367534B (en) Service arrangement method and system based on application environment
CN103608773A (en) Deployment system for multi-node applications
US11113050B2 (en) Application architecture generation
JP2007523407A (en) How to configure a computer program
CN111596932B (en) Mirror image file generation method and device and computer readable storage medium
CN111858727A (en) Multi-data-source data export system and method based on template configuration
CN113448793B (en) System monitoring method and device compatible with multiple operating systems
US11144292B2 (en) Packaging support system and packaging support method
US20070061277A1 (en) Method, system, and storage medium for providing dynamic deployment of grid services over a computer network
CN116257438A (en) Updating method of interface test case and related equipment
US11900089B2 (en) Automatically configuring and deploying a software operator in a distributed computing environment from a package
CN112527459B (en) Log analysis method and device based on Kubernetes cluster
CN115794214A (en) Application module metadata management method, device, storage medium and device
CN111858018B (en) Cgroup configuration method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant