CN110233760B - System fault monitoring method and device - Google Patents

System fault monitoring method and device Download PDF

Info

Publication number
CN110233760B
CN110233760B CN201910501478.5A CN201910501478A CN110233760B CN 110233760 B CN110233760 B CN 110233760B CN 201910501478 A CN201910501478 A CN 201910501478A CN 110233760 B CN110233760 B CN 110233760B
Authority
CN
China
Prior art keywords
target
parameter
configuration file
operation module
monitoring
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.)
Active
Application number
CN201910501478.5A
Other languages
Chinese (zh)
Other versions
CN110233760A (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.)
Beijing Soufun Science & Technology Development Co ltd
Original Assignee
Beijing Soufun Science & Technology Development 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 Beijing Soufun Science & Technology Development Co ltd filed Critical Beijing Soufun Science & Technology Development Co ltd
Priority to CN201910501478.5A priority Critical patent/CN110233760B/en
Publication of CN110233760A publication Critical patent/CN110233760A/en
Application granted granted Critical
Publication of CN110233760B publication Critical patent/CN110233760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a system fault monitoring method and a system fault monitoring device, wherein the method comprises the following steps: when a target system is started, selecting a target operation module to be monitored; monitoring the target operation module according to the time period, and determining the network operation corresponding to the operation type of the target operation module; calling a scheduling program to obtain a configuration file; analyzing the configuration file to obtain each virtual parameter; sequentially executing each parameter instruction, and simulating an operation process of a target operation module to execute network operation; monitoring whether the execution process of the parameter instruction is abnormal or not; and if the abnormity happens, the target system is in failure. By applying the method provided by the invention, the configuration file is read by the scheduling program, each parameter instruction is executed according to the virtual parameters in the configuration file, the operation process of the target operation module for executing network operation is simulated, the target system can be monitored in real time, and the system can be found to have faults in time.

Description

System fault monitoring method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for monitoring a system fault.
Background
In the daily network operation process, users can perform different types of network operations on the network system, such as user login, user registration, user information authentication and other types of network operations. When the network system receives an operation instruction of network operation performed by a user, the current safety and stability of the system during each network operation performed by the user are monitored in real time, and when the system fails or potential safety hazards occur, a fault message is fed back in time, so that the safety of user information is ensured.
However, in the existing network system monitoring process, a real user is required to perform a real network operation to monitor the security and stability of the network system. If the current network system is not used by a user, the safety and the stability of the current network system cannot be monitored in real time, and if the network system fails under the condition of no user, the fault information cannot be monitored in time, and the failed network system cannot be maintained in time.
Disclosure of Invention
The invention provides a system fault monitoring method for solving the technical problems, and the method can be used for automatically monitoring the system, so that the system fault can be timely monitored in the network operation process.
The invention also provides a system fault monitoring device for ensuring the realization and application of the method in practice.
A method of monitoring for system failure, comprising:
when a target system is started, selecting a target operation module which needs to be monitored in the target system;
monitoring the target operation module according to a preset time period, and determining network operation corresponding to the operation type of the target operation module;
calling a preset scheduling program to obtain a configuration file corresponding to the target operation module;
analyzing the configuration file to obtain each virtual parameter contained in the configuration file, wherein each virtual parameter is each parameter required for simulating the target operation module to execute the network operation in the target system;
according to the operation steps of the network operation, parameter instructions corresponding to each virtual parameter in the scheduling program are sequentially executed so as to simulate the operation process of the target operation module in executing the network operation in the target system;
monitoring whether the execution process of the currently executed parameter instruction is abnormal or not;
and if the execution process of the currently executed parameter instruction is abnormal, determining that the target system fails.
Optionally, the foregoing method, analyzing the configuration file, includes:
determining the file format of the configuration file, and acquiring an analysis rule identifier corresponding to the configuration file according to the file format;
matching an analysis rule corresponding to the configuration file based on the analysis rule identification, and analyzing the configuration file according to the analysis rule.
Optionally, in the method, the sequentially executing the parameter instruction corresponding to each virtual parameter in the scheduler according to the operation step of the network operation includes:
determining a virtual parameter corresponding to each operation step in the network operation, and setting an execution sequence of a parameter instruction corresponding to each virtual parameter in the scheduling program according to each operation step of the network operation;
and executing the parameter instruction corresponding to each virtual parameter in the scheduling program according to the execution sequence.
The above method, optionally, further includes:
and when the target system fails, sending alarm information to a preset information receiving end.
Optionally, the sending of the alarm information to the preset information receiving end includes:
and analyzing the execution state of the currently executed parameter instruction with abnormality, generating alarm information with a fault analysis report, and sending the alarm information with the fault analysis report to a preset information receiving end.
A system fault monitoring device comprising:
the system comprises a selection unit, a monitoring unit and a monitoring unit, wherein the selection unit is used for selecting a target operation module which needs to be monitored in a target system when the target system is started;
the first monitoring unit is used for monitoring the target operation module according to a preset time period and determining network operation corresponding to the operation type of the target operation module;
the acquisition unit is used for calling a preset scheduling program and acquiring a configuration file corresponding to the target operation module;
the analysis unit is used for analyzing the configuration file to obtain each virtual parameter contained in the configuration file, wherein each virtual parameter is each parameter required for simulating the target operation module to execute the network operation in the target system;
the execution unit is used for sequentially executing the parameter instruction corresponding to each virtual parameter in the scheduling program according to the operation steps of the network operation so as to simulate the operation process of the target operation module for executing the network operation in the target system;
the second monitoring unit is used for monitoring whether the execution process of the currently executed parameter instruction is abnormal or not;
and the determining unit is used for determining that the target system fails if the execution process of the currently executed parameter instruction is abnormal.
The above apparatus, optionally, the analysis determining unit includes:
the acquisition subunit is used for determining the file format of the configuration file and acquiring the analysis rule identifier corresponding to the configuration file according to the file format;
and the analysis subunit is used for matching an analysis rule corresponding to the configuration file based on the analysis rule identifier and analyzing the configuration file according to the analysis rule.
The above apparatus, optionally, the execution unit includes:
a setting subunit, configured to determine a virtual parameter corresponding to each operation step in the network operation, and set an execution sequence of a parameter instruction corresponding to each virtual parameter in the scheduler according to each operation step of the network operation;
and the execution subunit is configured to execute, according to the execution sequence, the parameter instruction corresponding to each virtual parameter in the scheduler.
The above apparatus, optionally, further comprises:
and the sending unit is used for sending alarm information to a preset information receiving end when the target system fails.
The above apparatus, optionally, the sending unit includes:
and the sending subunit is used for analyzing the execution state of the currently executed parameter instruction with abnormality, generating alarm information with a fault analysis report, and sending the alarm information with the fault analysis report to a preset information receiving end.
A storage medium, the storage medium including stored instructions, wherein when the instructions are executed, a device in which the storage medium is located is controlled to perform the above-mentioned method for monitoring system failure.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the method for monitoring system failure.
Compared with the prior art, the invention has the following advantages:
the invention provides a system fault monitoring method, which comprises the following steps: when a target system is started, selecting a target operation module which needs to be monitored in the target system, monitoring the target operation module according to a preset time period, and determining network operation corresponding to the operation type of the target operation module; calling a preset scheduling program to obtain a configuration file corresponding to the target operation module; analyzing the configuration file to obtain each virtual parameter contained in the configuration file, wherein each virtual parameter is each parameter required for simulating the target operation module to execute the network operation in the target system; according to the operation steps of the network operation, parameter instructions corresponding to each virtual parameter in the scheduling program are sequentially executed so as to simulate the operation process of the network operation executed by the target operation module in the target system; monitoring whether the execution process of the currently executed parameter instruction is abnormal or not; and if the execution process of the currently executed parameter instruction is abnormal, determining that the target system fails. By applying the method provided by the invention, the configuration file is read by the scheduling program, each parameter instruction is executed according to the virtual parameters in the configuration file, the operation process of the target operation module in executing network operation in the target system is simulated, the target system can be monitored in real time, and the system can be found to have faults in time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for monitoring system faults according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for monitoring a system fault according to an embodiment of the present invention;
fig. 3 is a device structure diagram of a system fault monitoring device according to an embodiment of the present invention;
fig. 4 is a device structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the present invention provides a method, which can be applied to a plurality of system platforms, an execution subject of the method can be a computer terminal or a processor of various mobile devices or a system that needs to perform autonomous monitoring, a flow chart of the method is shown in fig. 1, and the method specifically includes:
s101: when a target system is started, selecting a target operation module which needs to be monitored in the target system;
in the embodiment of the invention, various terminals and equipment may have at least one system, each system has at least one or more operation modules, and when a certain system needs to be monitored, the system is a target system. And if any one operation module needs to be monitored in the target system, the operation module to be monitored is the target operation module. The operation module can be an operation module for a user to log in a network, an operation module for a user to authenticate identity, an operation module for a user to modify identity, or various data interfaces, functional interfaces, and the like. In the invention, when the target system is started, a target operation module needing to be monitored is selected from the target system.
S102: monitoring the target operation module according to a preset time period, and determining network operation corresponding to the operation type of the target operation module;
in the embodiment of the invention, after the target operation module is selected, the target operation module is monitored according to a preset time period, and meanwhile, the network operation corresponding to the operation type is determined according to the operation type of the target operation module.
It should be noted that the operation type may be an operation performed by a user, or an operation type in which other modules or data interfaces in the system autonomously operate.
S103: calling a preset scheduling program to obtain a configuration file corresponding to the target operation module;
in the embodiment of the present invention, according to a certain time period, when a network operation corresponding to an operation type needs to be performed on the target operation module, the target system may call a preset scheduler thereof to obtain a configuration file corresponding to the target operation module.
It should be noted that the time period may be set differently according to the operation type of the target operation module.
S104: analyzing the configuration file to obtain each virtual parameter contained in the configuration file, wherein each virtual parameter is each parameter required for simulating the target operation module to execute the network operation in the target system;
in the embodiment of the present invention, after the configuration file is obtained, the configuration file is analyzed to obtain each virtual parameter corresponding to the target operation module, which is included in the configuration file. The virtual parameters are parameters required for simulating the target operation module to execute the network operation in the target system.
It should be noted that, when each virtual parameter corresponding to the target operation module may be an operation module for the user to perform network login, each virtual parameter corresponds to each operation step for the real user to perform various operations in the user operation module, for example, each virtual parameter may be an account parameter of the virtual user, a password parameter of the virtual user, a parameter for the virtual user to click to login, and the like. The configuration file may further include virtual parameters corresponding to other operation modules.
S105: according to the operation steps of the network operation, parameter instructions corresponding to each virtual parameter in the scheduling program are sequentially executed so as to simulate the operation process of the target operation module in executing the network operation in the target system;
in the embodiment of the present invention, after the virtual parameters in the configuration file are obtained, according to the operation steps of the network operation corresponding to the operation type of the target operation model, each parameter instruction in the scheduler is sequentially executed, where each virtual parameter corresponds to one parameter instruction. For example, if the virtual parameter is an account parameter of a virtual user, the corresponding parameter instruction is an instruction for simulating the user to input the user account. And simulating the operation process of the target operation module for executing network operation in the target system according to each parameter instruction.
S106: monitoring whether the execution process of the currently executed parameter instruction is abnormal or not;
in the embodiment of the invention, whether an exception occurs in the execution process of each parameter instruction is monitored in the process of executing each parameter instruction.
S107: and if the execution process of the currently executed parameter instruction is abnormal, determining that the target system fails.
In the embodiment of the invention, if the abnormality of the currently executed parameter instruction is monitored, the target system is determined to have a fault.
In the method for monitoring system faults provided by the embodiment of the invention, when a target system is started, a target operation module to be monitored is selected, the target operation module is monitored according to a time period, and network operation corresponding to the operation type of the target operation module is determined according to the operation type of the target operation module. And acquiring a configuration file corresponding to the target operation module by calling a preset scheduling program, and analyzing the configuration file to acquire each virtual parameter contained in the configuration file. And according to the operation steps of the network operation corresponding to the operation type of the target operation module, sequentially executing the parameter instruction corresponding to each virtual parameter in the scheduling program, and simulating the operation process of the target operation module for executing the network operation in the target system. And monitoring whether the currently executed parameter instruction is abnormal or not in the process of executing each parameter instruction. And if the currently executed parameter instruction is abnormal, determining that the target system has a fault.
It should be noted that, when the target system is started, a scheduler may be called to monitor one target operation module to determine whether the target system fails, or a plurality of target operation modules may be simultaneously monitored to simulate an operation process of each target operation module to determine whether the target system fails.
The method provided by the embodiment of the invention can be applied to various fields, for example, in the field of computers, a plurality of systems are arranged in the computer. When the target system is started, a target operation module needing to be monitored, such as a user login module, is selected. Whether the user login module has a real user to apply the user login module to perform user login operation or not can be monitored according to a preset time period, and meanwhile, the login operation of the user login module is determined. And calling a preset scheduling program, acquiring a configuration file corresponding to the user login module, analyzing the configuration file, and acquiring each virtual parameter, such as a parameter for opening a login page, a parameter for clicking an input user account, and the like. According to the operation steps of the login operation, the parameter instructions corresponding to each virtual parameter are sequentially executed, for example, the parameter for opening the login page corresponds to an open instruction, the parameter for clicking the input user account corresponds to an input name instruction, and the like. And simulating the operation process of a real user in the user login module by using each parameter instruction, and monitoring the execution process of each parameter instruction. And if the currently executed parameter instruction is abnormal, determining that the target system has a fault.
Optionally, in the process of monitoring the target operation module, if there is a real user performing network operation on the target operation module, the operation process of performing network operation on the real user may be monitored, and it is determined whether the real user is abnormal in the operation process, and if so, it is determined that the target system fails.
By applying the method provided by the invention, the configuration file is read by the scheduling program, each parameter instruction is executed according to the virtual parameters in the configuration file, the operation process of the target operation module in executing network operation in the target system is simulated, the target system can be monitored in real time, and the system can be found to have faults in time.
In the method provided in the embodiment of the present invention, based on the step S104, after the configuration file corresponding to the target operating system is obtained through the scheduler, a specific process of analyzing the configuration file specifically includes, as shown in fig. 2:
s201: determining the file format of the configuration file, and acquiring an analysis rule identifier corresponding to the configuration file according to the file format;
in the embodiment of the present invention, after the configuration file is acquired by the scheduler, the file format of the configuration file, such as an HTML file, a TXT file, or the like, is determined. And acquiring an analysis rule identifier corresponding to the file format according to the file format of the configuration file. The parsing method corresponding to each file format is different, and therefore, the parsing rule identifier corresponding to each file format is different.
S202: matching an analysis rule corresponding to the configuration file based on the analysis rule identification, and analyzing the configuration file according to the analysis rule.
In the embodiment of the present invention, after the parsing rule identifier corresponding to the file format is obtained according to the file format of the configuration file, the parsing rule corresponding to the configuration file is matched in a preset database or a preset memory according to the parsing rule identifier, and the configuration file is parsed according to the parsing rule corresponding to the configuration file, so as to obtain each virtual parameter corresponding to the target operation module.
In the method for monitoring a system fault provided by the embodiment of the invention, after the configuration file corresponding to the target operating system is acquired, the configuration file is analyzed. And acquiring an analysis rule identifier which needs to analyze the configuration file by determining the file format of the configuration file. The different file formats have different corresponding parsing modes, so that the parsing rule identifier corresponding to each file format is different. And matching the analysis rule corresponding to the analysis rule identifier according to the analysis rule identifier corresponding to the file format of the configuration file so as to determine how to analyze the configuration file. And analyzing the configuration file according to the analysis rule to obtain each virtual parameter corresponding to the target operation module.
By applying the method provided by the embodiment of the invention, the analysis rule for analyzing the configuration file is obtained through the file format of the configuration file. And analyzing the configuration file according to the analysis rule to obtain each virtual parameter, and monitoring the target operation module according to the virtual parameters.
In the method provided in the embodiment of the present invention, based on the step S105, according to the operation step of the network operation, the sequentially executing the parameter instruction corresponding to each virtual parameter in the scheduling program specifically includes:
determining a virtual parameter corresponding to each operation step in the network operation, and setting an execution sequence of a parameter instruction corresponding to each virtual parameter in the scheduling program according to each operation step of the network operation;
and executing the parameter instruction corresponding to each virtual parameter in the scheduling program according to the execution sequence.
In the method provided by the embodiment of the present invention, the virtual parameter corresponding to each operation step in the network operation process is determined, for example, when a certain operation step is to open a login page, the virtual parameter is a parameter to open the login page. And setting the execution sequence of the parameter instruction corresponding to each virtual parameter in the scheduling program according to each operation step. And executing the parameter instruction corresponding to each virtual parameter in the scheduling program according to the execution sequence.
By applying the method provided by the embodiment of the invention, the execution sequence of each parameter instruction is set according to the operation steps of the network operation, and the parameter instruction corresponding to each virtual parameter is executed according to the execution sequence, so that the target system is more conveniently monitored, and the target system is ensured to be timely determined to have a fault when the parameter instruction is abnormal.
The method provided by the embodiment of the invention specifically comprises the following steps:
and when the target system fails, sending alarm information to a preset information receiving end.
Specifically, when the target system fails, the process of sending alarm information to the information receiving end specifically includes:
analyzing the execution state of the currently executed parameter instruction with abnormity, generating alarm information with a fault analysis report, and sending the alarm information with the fault analysis report to a preset information receiving end.
In the method for monitoring system faults provided by the embodiment of the invention, when the target system is determined to be in fault, alarm information is sent to a preset information receiving end. And analyzing the execution state of the abnormal parameter command when the target system is determined to have a fault according to the fact that the execution process of the currently executed parameter command is monitored to have an abnormality. The abnormal reason, the solution and the like can be analyzed, alarm information with a fault analysis report is generated, and the alarm information with the fault analysis report is sent to an information receiving end.
It should be noted that the information receiving end may be a mailbox contact address of a maintainer who maintains the target system, a mobile phone client, and the like. The alarm information can be fed back to the maintenance personnel by sending mails, short messages and the like.
Optionally, if the currently executed parameter instruction is abnormal, the execution process of the currently executed parameter instruction is stopped. Specifically, the execution process of each subsequent parameter instruction to be executed may be cancelled, the parameter instruction to be executed after the currently executed parameter instruction may also be continuously executed, and if the parameter instruction to be executed is abnormal, the alarm information is sent to the information receiving end.
By applying the method provided by the embodiment of the invention, the target system is maintained in time when the target system fails by sending the alarm information to the information receiving end, and the subsequent stable operation of the target system is ensured.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a system fault monitoring apparatus, which is used for implementing the method in fig. 1 specifically, the system fault monitoring apparatus provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the system fault monitoring apparatus is shown in fig. 3, and specifically includes:
the selection unit 301 is configured to select a target operation module that needs to be monitored in a target system when the target system is started;
a first monitoring module 302, configured to monitor the target operation module according to a preset time period, and determine a network operation corresponding to an operation type of the target operation module;
an obtaining unit 303, configured to invoke a preset scheduling program, and obtain a configuration file corresponding to the target operation module;
an analyzing unit 304, configured to analyze the configuration file to obtain each virtual parameter included in the configuration file, where each virtual parameter is required for simulating the target operation module to execute the network operation in the target system;
an executing unit 305, configured to sequentially execute a parameter instruction corresponding to each virtual parameter in the scheduler according to the operation step of the network operation, so as to simulate an operation process of the target operating module executing the network operation in the target system;
the second monitoring unit 306 is configured to monitor whether an execution process of the currently executed parameter instruction is abnormal;
the determining unit 307 is configured to determine that the target system fails if an execution process of the currently executed parameter instruction is abnormal.
In the apparatus provided in the embodiment of the present invention, the parsing unit 304 includes:
the acquisition subunit is used for determining the file format of the configuration file and acquiring the analysis rule identifier corresponding to the configuration file according to the file format;
and the analysis subunit is used for matching an analysis rule corresponding to the configuration file based on the analysis rule identifier and analyzing the configuration file according to the analysis rule.
In the apparatus provided in the embodiment of the present invention, the execution unit 305 includes:
a setting subunit, configured to determine a virtual parameter corresponding to each operation step in the network operation, and set an execution sequence of a parameter instruction corresponding to each virtual parameter in the scheduler according to each operation step of the network operation;
and the execution subunit is configured to execute, according to the execution sequence, the parameter instruction corresponding to each virtual parameter in the scheduler.
The device provided by the embodiment of the invention further comprises:
and the sending unit is used for sending alarm information to a preset information receiving end when the target system fails.
In the apparatus provided in the embodiment of the present invention, the sending unit includes:
and the sending subunit is used for analyzing the execution state of the currently executed parameter instruction with abnormality, generating alarm information with a fault analysis report, and sending the alarm information with the fault analysis report to a preset information receiving end.
For the specific working processes of the selecting unit 301, the first monitoring unit 302, the obtaining unit 303, the analyzing unit 304, the executing unit 305, the second monitoring unit 306, and the determining unit 307 in the system fault monitoring apparatus disclosed in the above embodiment of the present invention, reference may be made to the corresponding contents in the system fault monitoring method disclosed in the above embodiment of the present invention, and details are not repeated here.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the equipment where the storage medium is located is controlled to execute the monitoring method for the system fault.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 4, which specifically includes a memory 401 and one or more instructions 402, where the one or more instructions 402 are stored in the memory 401 and configured to be executed by one or more processors 403 to perform the following operations for executing the one or more instructions 402:
when a target system is started, selecting a target operation module which needs to be monitored in the target system;
monitoring the target operation module according to a preset time period, and determining network operation corresponding to the operation type of the target operation module;
calling a preset scheduling program to obtain a configuration file corresponding to the target operation module;
analyzing the configuration file to obtain each virtual parameter contained in the configuration file, wherein each virtual parameter is each parameter required for simulating the target operation module to execute the network operation in the target system;
according to the operation steps of the network operation, parameter instructions corresponding to each virtual parameter in the scheduling program are sequentially executed so as to simulate the operation process of the target operation module in executing the network operation in the target system;
monitoring whether the execution process of the currently executed parameter instruction is abnormal or not;
and if the execution process of the currently executed parameter instruction is abnormal, determining that the target system fails.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A system fault monitoring method is characterized in that an execution subject is a system needing autonomous monitoring, the system is a target system, and the method comprises the following steps:
when a target system is started, selecting a target operation module which needs to be monitored in the target system;
monitoring the target operation module according to a preset time period, and determining network operation corresponding to the operation type of the target operation module;
calling a preset scheduling program to obtain a configuration file corresponding to the target operation module;
analyzing the configuration file to obtain each virtual parameter contained in the configuration file, wherein each virtual parameter is each parameter required for simulating the target operation module to execute the network operation in the target system;
determining a virtual parameter corresponding to each operation step in the network operation, and setting an execution sequence of a parameter instruction corresponding to each virtual parameter in the scheduling program according to each operation step of the network operation;
according to the execution sequence, executing a parameter instruction corresponding to each virtual parameter in the scheduling program to simulate the operation process of the target operation module for executing the network operation in the target system;
monitoring whether the execution process of the currently executed parameter instruction is abnormal or not;
and if the execution process of the currently executed parameter instruction is abnormal, determining that the target system fails.
2. The method of claim 1, wherein parsing the configuration file comprises:
determining the file format of the configuration file, and acquiring an analysis rule identifier corresponding to the configuration file according to the file format;
matching an analysis rule corresponding to the configuration file based on the analysis rule identification, and analyzing the configuration file according to the analysis rule.
3. The method of claim 1, further comprising:
and when the target system fails, sending alarm information to a preset information receiving end.
4. The method according to claim 3, wherein the sending alarm information to a preset information receiving end comprises:
analyzing the execution state of the currently executed parameter instruction with abnormity, generating alarm information with a fault analysis report, and sending the alarm information with the fault analysis report to a preset information receiving end.
5. A system fault monitoring device is applied to a system needing autonomous monitoring, the system is a target system, and the system fault monitoring device comprises:
the system comprises a selection unit, a monitoring unit and a monitoring unit, wherein the selection unit is used for selecting a target operation module which needs to be monitored in a target system when the target system is started;
the first monitoring unit is used for monitoring the target operation module according to a preset time period and determining network operation corresponding to the operation type of the target operation module;
the acquisition unit is used for calling a preset scheduling program and acquiring a configuration file corresponding to the target operation module;
the analysis unit is used for analyzing the configuration file to obtain each virtual parameter contained in the configuration file, wherein each virtual parameter is each parameter required for simulating the target operation module to execute the network operation in the target system;
the execution unit is used for sequentially executing the parameter instruction corresponding to each virtual parameter in the scheduling program according to the operation steps of the network operation so as to simulate the operation process of the target operation module for executing the network operation in the target system;
the second monitoring unit is used for monitoring whether the execution process of the currently executed parameter instruction is abnormal or not;
the determining unit is used for determining that the target system has a fault if the execution process of the currently executed parameter instruction is abnormal;
the execution unit includes:
a setting subunit, configured to determine a virtual parameter corresponding to each operation step in the network operation, and set an execution sequence of a parameter instruction corresponding to each virtual parameter in the scheduler according to each operation step of the network operation;
and the execution subunit is configured to execute, according to the execution sequence, the parameter instruction corresponding to each virtual parameter in the scheduler.
6. The apparatus of claim 5, wherein the parsing determining unit comprises:
the acquisition subunit is used for determining the file format of the configuration file and acquiring the analysis rule identifier corresponding to the configuration file according to the file format;
and the analysis subunit is used for matching an analysis rule corresponding to the configuration file based on the analysis rule identifier and analyzing the configuration file according to the analysis rule.
7. The apparatus of claim 5, further comprising:
and the sending unit is used for sending alarm information to a preset information receiving end when the target system fails.
8. The apparatus of claim 7, wherein the sending unit comprises:
and the sending subunit is used for analyzing the execution state of the currently executed parameter instruction with abnormality, generating alarm information with a fault analysis report, and sending the alarm information with the fault analysis report to a preset information receiving end.
CN201910501478.5A 2019-06-11 2019-06-11 System fault monitoring method and device Active CN110233760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910501478.5A CN110233760B (en) 2019-06-11 2019-06-11 System fault monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910501478.5A CN110233760B (en) 2019-06-11 2019-06-11 System fault monitoring method and device

Publications (2)

Publication Number Publication Date
CN110233760A CN110233760A (en) 2019-09-13
CN110233760B true CN110233760B (en) 2022-09-02

Family

ID=67858826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910501478.5A Active CN110233760B (en) 2019-06-11 2019-06-11 System fault monitoring method and device

Country Status (1)

Country Link
CN (1) CN110233760B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806160B (en) * 2020-06-11 2024-02-02 中移(苏州)软件技术有限公司 Method, device, equipment and storage medium for monitoring configuration file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972221A (en) * 2006-10-27 2007-05-30 华为技术有限公司 A detection method of service reliability and apparatus and circuit planning method
CN102905299A (en) * 2012-10-23 2013-01-30 三维通信股份有限公司 Method for carrying out automatic monitoring and abnormality alarming on wireless APs (Access Points) by user behavior simulation
AU2017100148A4 (en) * 2017-02-08 2017-03-09 Macau University Of Science And Technology A system, method, computer program and data signal for fault detection and recovery of a network
CN109240126A (en) * 2018-11-21 2019-01-18 国网湖北省电力有限公司电力科学研究院 A kind of distributed application services monitoring system and method with simulated operation function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11277420B2 (en) * 2017-02-24 2022-03-15 Ciena Corporation Systems and methods to detect abnormal behavior in networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972221A (en) * 2006-10-27 2007-05-30 华为技术有限公司 A detection method of service reliability and apparatus and circuit planning method
CN102905299A (en) * 2012-10-23 2013-01-30 三维通信股份有限公司 Method for carrying out automatic monitoring and abnormality alarming on wireless APs (Access Points) by user behavior simulation
AU2017100148A4 (en) * 2017-02-08 2017-03-09 Macau University Of Science And Technology A system, method, computer program and data signal for fault detection and recovery of a network
CN109240126A (en) * 2018-11-21 2019-01-18 国网湖北省电力有限公司电力科学研究院 A kind of distributed application services monitoring system and method with simulated operation function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"电网自动化系统通信网络性能仿真分析研究";潘天亮;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20190115;全文 *

Also Published As

Publication number Publication date
CN110233760A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
US20210240604A1 (en) Api driven continuous testing systems for testing disparate software
CN110546606A (en) Tenant upgrade analysis
CN107168844B (en) Performance monitoring method and device
CN106878361B (en) Debugging method and device for terminal application page and client
CN108134708B (en) Method and device for monitoring third-party interface
CN112114865A (en) Version data processing method and device, storage medium and electronic device
US10956257B2 (en) Dynamic failure-resolution computing engine
CN105389263A (en) Method, system and equipment for monitoring application software permissions
CN110011875B (en) Dial testing method, device, equipment and computer readable storage medium
CN104426945B (en) A kind of method, apparatus and system obtaining application performance data
CN113836264A (en) Process monitoring method, device, equipment and medium based on RPA and AI
CN111954240A (en) Network fault processing method and device and electronic equipment
CN110233760B (en) System fault monitoring method and device
CN110198230B (en) Application monitoring method and device, storage medium and electronic device
EP3131014B1 (en) Multi-data analysis based proactive defect detection and resolution
CN116126257A (en) Comprehensive monitoring method, system, equipment and medium of self-service printing terminal
CN113556391B (en) Page communication method, device, electronic equipment and readable storage medium
CN114625470A (en) Application interface control method, device, equipment and storage medium
CN114691486A (en) Program debugging method and device and computer equipment
CN116915838B (en) State maintenance method for virtual private network, terminal equipment and storage medium
CN110633254A (en) Data interaction method and device
CN106547679B (en) Script management method and script management platform
CN113778836B (en) Cloud native application health monitoring method, device, equipment and readable storage medium
CN111708711B (en) AB test method and device, storage medium and electronic equipment
CN110659214B (en) Information processing system, method, computing device, 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