CN116016257A - State monitoring method, device, equipment and storage medium - Google Patents

State monitoring method, device, equipment and storage medium Download PDF

Info

Publication number
CN116016257A
CN116016257A CN202310042482.6A CN202310042482A CN116016257A CN 116016257 A CN116016257 A CN 116016257A CN 202310042482 A CN202310042482 A CN 202310042482A CN 116016257 A CN116016257 A CN 116016257A
Authority
CN
China
Prior art keywords
monitored
equipment
information
monitoring
state
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
CN202310042482.6A
Other languages
Chinese (zh)
Other versions
CN116016257B (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.)
Peng Cheng Laboratory
Original Assignee
Peng Cheng Laboratory
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 Peng Cheng Laboratory filed Critical Peng Cheng Laboratory
Priority to CN202310042482.6A priority Critical patent/CN116016257B/en
Publication of CN116016257A publication Critical patent/CN116016257A/en
Application granted granted Critical
Publication of CN116016257B publication Critical patent/CN116016257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to the field of computers and discloses a state monitoring method, a state monitoring device, state monitoring equipment and a storage medium. The method comprises the following steps: determining equipment information to be monitored and state monitoring requirements corresponding to the equipment to be monitored according to the received state monitoring instructions; monitoring the equipment to be monitored according to the equipment information to be monitored, and obtaining network state information of the equipment to be monitored; and analyzing the network state information according to the state monitoring requirement to obtain an analysis result, and generating a state monitoring result according to the analysis result. According to the invention, the equipment to be monitored is monitored according to the equipment information to be monitored, the network state information of the equipment to be monitored is obtained, the network state information is analyzed according to the state monitoring requirement, an analysis result is obtained, and a state monitoring result is generated according to the analysis result. Compared with the existing mode of acquiring the state information of the equipment through the command line, the mode can improve the equipment monitoring efficiency.

Description

State monitoring method, device, equipment and storage medium
Technical Field
The present invention relates to the field of device state monitoring technologies, and in particular, to a state monitoring method, device, and storage medium.
Background
The existing network state detection tool can enable a user to quickly inquire whether the current network domain name analysis is normal or not through a plurality of command line interaction modes, can check network configuration, can check a routing table, a network interface and a socket, can grasp a network packet and the like, and then the user analyzes information in the network packet according to experience to master various current information of the network. By using the command line interaction modes, not only a large number of command line interaction operations are needed to be manually performed, but also manual analysis is needed to be performed by combining with professional knowledge, and the results needed to be obtained by the users cannot be directly obtained, so that how to efficiently monitor the state of the equipment becomes a technical problem to be solved.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a state monitoring method, a state monitoring device, state monitoring equipment and a storage medium, and aims to solve the technical problem that the efficiency of acquiring the network state of equipment is low in the prior art through a command line interaction mode.
To achieve the above object, the present invention provides a state monitoring method, which includes the steps of:
determining equipment information to be monitored and state monitoring requirements corresponding to the equipment to be monitored according to the received state monitoring instructions;
monitoring the equipment to be monitored according to the equipment information to be monitored, and obtaining network state information of the equipment to be monitored;
and analyzing the network state information according to the state monitoring requirement to obtain an analysis result, and generating a state monitoring result according to the analysis result.
Optionally, the step of analyzing the network state information according to the state monitoring requirement to obtain an analysis result includes:
determining a flow filtering rule according to the state monitoring requirement;
filtering the network state information according to the flow filtering rule to obtain target network state information;
and analyzing the target network state information according to the state monitoring requirement to obtain an analysis result.
Optionally, the step of generating a status monitoring result according to the analysis result includes:
judging whether the equipment to be monitored has network abnormality according to the analysis result and a preset state early warning strategy;
if the state monitoring result is included, generating a state monitoring result containing early warning information according to the analysis result and the preset state early warning strategy.
Optionally, the step of monitoring the device to be monitored according to the information of the device to be monitored and obtaining the network state information of the device to be monitored includes:
determining network card information of the equipment to be monitored according to the equipment information to be monitored;
determining a network card to be monitored according to the network card information;
and starting a preset monitoring thread to carry out data packet capturing on the network card to be monitored to obtain the network state information of the equipment to be monitored.
Optionally, after the step of analyzing the network state information according to the state monitoring requirement to obtain an analysis result, the method further includes:
determining interaction information of the equipment to be monitored and a domain name resolution server according to the resolution result;
determining the number of answers from the domain name resolution server to the equipment to be monitored and the number of requests from the equipment to be monitored to the domain name resolution server according to the interaction information;
when the request number is larger than the response number, determining that the domain name resolution server has abnormality,
and enabling the standby domain name resolution server, generating a state monitoring result, and sending the state monitoring result to a state monitoring terminal.
Optionally, after the step of generating the state monitoring result according to the analysis result, the method further includes:
carrying out classified statistics on the state monitoring result to obtain a statistical result;
storing the statistical result into a preset database, and recording the storage time;
when the storage time meets a preset storage condition, the statistical result is exported to a preset storage document, and the statistical result is deleted from the preset database.
Optionally, after the step of determining the information of the device to be monitored and the status monitoring requirement corresponding to the device to be monitored according to the received status monitoring instruction, the method further includes:
and setting the equipment to be monitored to be in a cache-free analysis mode.
In addition, to achieve the above object, the present invention also provides a condition monitoring apparatus, including:
the receiving module is used for determining the information of the equipment to be monitored and the state monitoring requirement corresponding to the equipment to be monitored according to the received state monitoring instruction;
the network state information acquisition module is used for monitoring the equipment to be monitored according to the equipment to be monitored information and acquiring the network state information of the equipment to be monitored;
and the state monitoring result generation module is used for analyzing the network state information according to the state monitoring requirement to obtain an analysis result and generating a state monitoring result according to the analysis result.
In addition, to achieve the above object, the present invention also proposes a condition monitoring apparatus, the apparatus comprising: a memory, a processor and a condition monitoring program stored on the memory and executable on the processor, the condition monitoring program configured to implement the steps of the condition monitoring method as described above.
In addition, to achieve the above object, the present invention also proposes a storage medium having stored thereon a state monitoring program which, when executed by a processor, implements the steps of the state monitoring method as described above.
According to the method, equipment information to be monitored and state monitoring requirements corresponding to the equipment to be monitored are determined according to the received state monitoring instructions; monitoring the equipment to be monitored according to the equipment information to be monitored, and obtaining network state information of the equipment to be monitored; and analyzing the network state information according to the state monitoring requirement to obtain an analysis result, and generating a state monitoring result according to the analysis result. According to the invention, the equipment to be monitored is monitored according to the equipment information to be monitored, the network state information of the equipment to be monitored is obtained, the network state information is analyzed according to the state monitoring requirement, an analysis result is obtained, and a state monitoring result is generated according to the analysis result. Compared with the existing mode of acquiring the state information of the equipment through the command line, the mode can improve the equipment monitoring efficiency.
Drawings
FIG. 1 is a schematic diagram of a state monitoring device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a status monitoring method according to the present invention;
FIG. 3 is a flow chart of a second embodiment of the status monitoring method of the present invention;
FIG. 4 is a flow chart of a third embodiment of the status monitoring method of the present invention;
fig. 5 is a block diagram of a first embodiment of a condition monitoring apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a state monitoring device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the condition monitoring apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not limiting of the condition monitoring apparatus and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a status monitoring program may be included in the memory 1005 as one type of storage medium.
In the condition monitoring device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the state monitoring device of the present invention may be provided in the state monitoring device, and the state monitoring device calls the state monitoring program stored in the memory 1005 through the processor 1001 and executes the state monitoring method provided by the embodiment of the present invention.
Based on the above-mentioned state monitoring device, an embodiment of the present invention provides a state monitoring method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the state monitoring method of the present invention.
In this embodiment, the state monitoring method includes the following steps:
step S10: and determining the information of the equipment to be monitored and the state monitoring requirement corresponding to the equipment to be monitored according to the received state monitoring instruction.
It should be noted that, the execution body of the embodiment may be a computing service device with functions of data processing, network communication and program running, such as a mobile phone, a tablet computer, a personal computer, or an electronic device or a status monitoring device capable of implementing the above functions. The present embodiment and the following embodiments will be described below by taking the state monitoring device as an example.
It should be noted that the state monitoring instruction may be a command sent by the user to the state monitoring device to perform network state monitoring on the device to be monitored, and may include information of the device to be monitored and a state monitoring requirement corresponding to the device to be monitored. The information of the equipment to be monitored can comprise IP addresses, network card numbers, network card IPs of the equipment to be monitored, domain name resolution server information corresponding to the equipment to be monitored, emergency domain name resolution server information, user name passwords of the equipment to be monitored, information of the equipment to be monitored required in the process of monitoring the equipment to be monitored, network card IPs required to be monitored and the like. The status monitoring requirement may include which information of the device to be monitored needs to be monitored, for example, one or more of a request amount of a user end linked to the device to be monitored in real time, a response amount fed back to the user end by the device to be monitored, a number of users, a request amount from the device to be monitored to a domain name resolution server, a response amount fed back to the device to be monitored by the domain name resolution server, a number of domain name resolution servers, a request amount from the device to be monitored to an emergency domain name resolution server, and a response amount from the emergency domain name resolution server to the device to be monitored.
Further, in order to avoid inaccurate status monitoring results caused by interference of the cache information in the device to be monitored to the status monitoring results, the step S10 further includes: and setting the equipment to be monitored to be in a cache-free analysis mode.
Step S20: and monitoring the equipment to be monitored according to the equipment to be monitored information, and obtaining the network state information of the equipment to be monitored.
It should be noted that, the monitoring the device to be monitored according to the device information to be monitored may be that the device to be monitored is connected according to the identifier, IP, login information, etc. of the device to be monitored in the device information to be monitored, and data packet capturing is performed, where the captured network data packet is the network state information of the device to be monitored.
It should be understood that, since different servers or domain name resolution servers may be distributed in different regions, in order to avoid that the time of each device is not synchronous or that the time difference factor affects the status monitoring result, in this embodiment, before the device to be monitored is monitored, the time of the device to be monitored and each domain name resolution server, the standby domain name resolution server, and the server requesting data need to be synchronized. The kafka client may also be deployed in the device to be monitored for sending or receiving network status information or instructions in real time.
Further, in order to improve the efficiency of the state monitoring, the step S20 may include: determining network card information of the equipment to be monitored according to the equipment information to be monitored; determining a network card to be monitored according to the network card information; and starting a preset monitoring thread to carry out data packet capturing on the network card to be monitored to obtain the network state information of the equipment to be monitored.
It should be noted that the network card information may include IP information of all network cards of the device to be monitored. The network card to be monitored can be a network card which needs to be subjected to state monitoring in the equipment to be monitored. The preset monitoring thread can be a thread for carrying out data packet capturing on the network card to be monitored, a plurality of preset monitoring threads can be started to monitor the network card to be monitored one by one, and the network card to be monitored is subjected to data packet capturing to obtain the network state information of the equipment to be monitored.
Step S30: and analyzing the network state information according to the state monitoring requirement to obtain an analysis result, and generating a state monitoring result according to the analysis result.
It should be noted that the analyzing the network state information according to the state monitoring requirement may be obtaining information corresponding to the state monitoring requirement from the network state information, for example, the state monitoring requirement is a request amount of a monitoring user end that is linked to a device to be monitored in real time and a response amount of the device to be monitored that is fed back to the user end, and then the request amount of the user end that is linked to the device to be monitored in real time and the response amount of the device to be monitored that is fed back to the user end are obtained from the network state information, and a state monitoring result is generated according to the obtained request amount and the response amount.
It should be noted that, the state monitoring device may also send the state monitoring result to the target terminal through kafuka for storage, analysis and display.
Further, in order to obtain the status monitoring result of the device to be monitored more accurately, the step of generating the status monitoring result according to the analysis result includes: judging whether the equipment to be monitored has network abnormality according to the analysis result and a preset state early warning strategy; if the state monitoring result is included, generating a state monitoring result containing early warning information according to the analysis result and the preset state early warning strategy.
It should be noted that the preset state early warning policy may be a preset condition for judging whether the device to be monitored has a network abnormality, and may include one or more preset state early warning policies, where when there are multiple preset state early warning policies, whether the device to be monitored has a network abnormality may be judged according to each preset state early warning policy. For example, the preset state early warning policy is that when the response number of the network card to be monitored to any domain name resolution server is found to be larger than the preset number, and the request number from the user end to the network card to be monitored approaches 0, the network card server to be monitored is considered to have an abnormal condition; may further comprise: when the situation that the response number from any domain name resolution server to the network card to be monitored approaches 0 is found, and the request number from the network card to be monitored to the domain name resolution server is more than the preset number, the domain name resolution server is considered to have abnormal conditions. The pre-set state pre-warning strategy can be customized according to the equipment or the requirement to be monitored, and the embodiment is not limited herein.
Further, in order to more intuitively display the status monitoring result and timely respond to the status monitoring result, after the step S30, the method further includes: carrying out classified statistics on the state monitoring result to obtain a statistical result; storing the statistical result into a preset database, and recording the storage time; when the storage time meets a preset storage condition, the statistical result is exported to a preset storage document, and the statistical result is deleted from the preset database.
It should be noted that, the classifying and counting the state monitoring result may be classifying the state monitoring result according to an abnormal device or an abnormal type in the state monitoring result. The preset database may be a preset database for storing statistical results. The storage time meeting the preset storage condition may be that the statistical result is exported to a preset storage document when the storage time exceeds the historical storage time. The historical storage time may be a storage time preset by a user.
According to the embodiment, equipment information to be monitored and state monitoring requirements corresponding to the equipment to be monitored are determined according to the received state monitoring instruction; monitoring the equipment to be monitored according to the equipment information to be monitored, and obtaining network state information of the equipment to be monitored; and analyzing the network state information according to the state monitoring requirement to obtain an analysis result, and generating a state monitoring result according to the analysis result. In this embodiment, the device to be monitored is monitored according to the device to be monitored information, the network state information of the device to be monitored is obtained, the network state information is analyzed according to the state monitoring requirement, an analysis result is obtained, and a state monitoring result is generated according to the analysis result. Compared with the existing mode of acquiring the state information of the equipment through the command line, the mode of the embodiment can improve the equipment monitoring efficiency.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the status monitoring method according to the present invention.
Based on the first embodiment, in this embodiment, the step S30 includes:
step S301: and determining a flow filtering rule according to the state monitoring requirement.
It should be noted that, the determining the flow filtering rule according to the state monitoring requirement may be determining a rule for performing data filtering on network state information obtained by capturing a packet according to the state monitoring requirement and the BPF grammar definition, and filtering repeated information, to-be-detected equipment information and information irrelevant to the state monitoring requirement in the network state information by using the flow filtering rule, where the flow filtering rule may include a flow filtering rule from a user end to a to-be-monitored network card IP of the to-be-monitored equipment, a flow filtering rule from the to-be-monitored network card IP of the to-be-monitored equipment to the user end, a flow filtering rule from the to-be-monitored network card of the to-be-monitored equipment to the domain name resolution server, a flow filtering rule from the domain name resolution server to the to-be-monitored network card of the to-be-monitored equipment, and the like.
Step S302: and filtering the network state information according to the flow filtering rule to obtain target network state information.
It should be noted that, the target network state information may be information obtained by filtering the network state information by the traffic filtering rule.
Step S303: and analyzing the target network state information according to the state monitoring requirement to obtain an analysis result.
It should be noted that the analyzing the target network state information according to the state monitoring requirement may be obtaining information corresponding to the state monitoring requirement from the network state information.
In the embodiment, a flow filtering rule is determined according to the state monitoring requirement; filtering the network state information according to the flow filtering rule to obtain target network state information; and analyzing the target network state information according to the state monitoring requirement to obtain an analysis result. In the embodiment, a flow filtering rule is determined according to the state monitoring requirement; filtering the network state information according to the flow filtering rule to obtain target network state information; and analyzing the target network state information according to the state monitoring requirement to obtain an analysis result. The efficiency of state monitoring can be improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a status monitoring method according to the present invention.
Based on the above embodiments, in this embodiment, after step S30, the method further includes:
step S40: and determining interaction information of the equipment to be monitored and the domain name resolution server according to the resolution result.
It should be noted that the interaction information may include request information from the device to be monitored to the domain name resolution server and response information from the domain name resolution server to the device to be monitored. The request information may include information such as a request time, request data, and the number of requests. The response information may include information such as response time, response data, and the number of responses.
Step S50: and determining the response number of the domain name resolution server to the equipment to be monitored and the request number of the equipment to be monitored to the domain name resolution server according to the interaction information.
It should be noted that the number of responses may be the number of responses of the domain name resolution server to the number of requests of the device to be monitored. The number of requests may be the number of requests initiated by the device to be monitored to the domain name resolution server.
Step S60: and when the request number is larger than the response number, judging that the domain name resolution server is abnormal.
Step S70: and enabling the standby domain name resolution server, generating a state monitoring result, and sending the state monitoring result to a state monitoring terminal.
It should be noted that the standby domain name resolution server may include one or more servers, and may be disposed in other machine rooms in different places, so as to perform resolution of the root domain name on the domain name resolution request of the device to be monitored when the domain name resolution server is abnormal. When the domain name resolution server is abnormal, each standby domain name resolution server is sequentially accessed to carry out domain name resolution.
According to the analysis result, the embodiment determines interaction information of the equipment to be monitored and a domain name analysis server; determining the number of answers from the domain name resolution server to the equipment to be monitored and the number of requests from the equipment to be monitored to the domain name resolution server according to the interaction information; and when the request number is greater than the response number, judging that the domain name resolution server is abnormal, starting a standby domain name resolution server, generating a state monitoring result, and sending the state monitoring result to a state monitoring terminal. When the domain name resolution server is abnormal, the standby domain name resolution server is started and the state monitoring result is generated, so that the normal operation of the equipment to be monitored can be ensured.
Referring to fig. 5, fig. 5 is a block diagram of a first embodiment of a status monitor device according to the present invention.
As shown in fig. 5, a state monitoring device according to an embodiment of the present invention includes:
the receiving module 10 is configured to determine information of a device to be monitored and a state monitoring requirement corresponding to the device to be monitored according to the received state monitoring instruction;
the network state information obtaining module 20 is configured to monitor the device to be monitored according to the device to be monitored information, and obtain network state information of the device to be monitored;
the state monitoring result generating module 30 is configured to parse the network state information according to the state monitoring requirement to obtain a parsed result, and generate a state monitoring result according to the parsed result.
According to the embodiment, equipment information to be monitored and state monitoring requirements corresponding to the equipment to be monitored are determined according to the received state monitoring instruction; monitoring the equipment to be monitored according to the equipment information to be monitored, and obtaining network state information of the equipment to be monitored; and analyzing the network state information according to the state monitoring requirement to obtain an analysis result, and generating a state monitoring result according to the analysis result. In this embodiment, the device to be monitored is monitored according to the device to be monitored information, the network state information of the device to be monitored is obtained, the network state information is analyzed according to the state monitoring requirement, an analysis result is obtained, and a state monitoring result is generated according to the analysis result. Compared with the existing mode of acquiring the state information of the equipment through the command line, the mode of the embodiment can improve the equipment monitoring efficiency.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the state monitoring method provided in any embodiment of the present invention, and are not described herein.
Based on the first embodiment of the state monitoring device of the present invention, a second embodiment of the state monitoring device of the present invention is presented.
In this embodiment, the status monitoring result generating module 30 is further configured to determine a flow filtering rule according to the status monitoring requirement;
filtering the network state information according to the flow filtering rule to obtain target network state information;
and analyzing the target network state information according to the state monitoring requirement to obtain an analysis result.
Further, the state monitoring result generating module 30 is further configured to determine whether the device to be monitored has a network abnormality according to the analysis result and a preset state early warning policy;
if the state monitoring result is included, generating a state monitoring result containing early warning information according to the analysis result and the preset state early warning strategy.
Further, the network state information obtaining module 20 is further configured to determine network card information of the device to be monitored according to the device to be monitored information;
determining a network card to be monitored according to the network card information;
and starting a preset monitoring thread to carry out data packet capturing on the network card to be monitored to obtain the network state information of the equipment to be monitored.
Further, the state monitoring result generating module 30 is further configured to determine interaction information between the device to be monitored and a domain name resolution server according to the resolution result;
determining the number of answers from the domain name resolution server to the equipment to be monitored and the number of requests from the equipment to be monitored to the domain name resolution server according to the interaction information;
when the request number is larger than the response number, determining that the domain name resolution server has abnormality,
and enabling the standby domain name resolution server, generating a state monitoring result, and sending the state monitoring result to a state monitoring terminal.
Further, the status monitoring result generating module 30 is further configured to perform classification statistics on the status monitoring result to obtain a statistical result;
storing the statistical result into a preset database, and recording the storage time;
when the storage time meets a preset storage condition, the statistical result is exported to a preset storage document, and the statistical result is deleted from the preset database.
Further, the receiving module 10 is further configured to set the device to be monitored to a no-buffer analysis mode.
Other embodiments or specific implementations of the state monitoring device of the present invention may refer to the above method embodiments, and are not described herein.
In addition, the embodiment of the invention also provides a storage medium, wherein a state monitoring program is stored on the storage medium, and the state monitoring program realizes the steps of the state monitoring method when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory/random-access memory, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A condition monitoring method, characterized in that the condition monitoring method comprises the steps of:
determining equipment information to be monitored and state monitoring requirements corresponding to the equipment to be monitored according to the received state monitoring instructions;
monitoring the equipment to be monitored according to the equipment information to be monitored, and obtaining network state information of the equipment to be monitored;
and analyzing the network state information according to the state monitoring requirement to obtain an analysis result, and generating a state monitoring result according to the analysis result.
2. The method for monitoring state of claim 1, wherein the step of analyzing the network state information according to the state monitoring requirement to obtain an analysis result comprises:
determining a flow filtering rule according to the state monitoring requirement;
filtering the network state information according to the flow filtering rule to obtain target network state information;
and analyzing the target network state information according to the state monitoring requirement to obtain an analysis result.
3. The state monitoring method according to claim 2, wherein the step of generating the state monitoring result from the parsing result includes:
judging whether the equipment to be monitored has network abnormality according to the analysis result and a preset state early warning strategy;
if the state monitoring result is included, generating a state monitoring result containing early warning information according to the analysis result and the preset state early warning strategy.
4. The state monitoring method according to claim 1, wherein the step of monitoring the device to be monitored according to the device to be monitored information to obtain network state information of the device to be monitored includes:
determining network card information of the equipment to be monitored according to the equipment information to be monitored;
determining a network card to be monitored according to the network card information;
and starting a preset monitoring thread to carry out data packet capturing on the network card to be monitored to obtain the network state information of the equipment to be monitored.
5. The method for monitoring state according to any one of claims 1 to 4, wherein after the step of analyzing the network state information according to the state monitoring requirement to obtain an analysis result, the method further comprises:
determining interaction information of the equipment to be monitored and a domain name resolution server according to the resolution result;
determining the number of answers from the domain name resolution server to the equipment to be monitored and the number of requests from the equipment to be monitored to the domain name resolution server according to the interaction information;
when the request number is larger than the response number, determining that the domain name resolution server has abnormality,
and enabling the standby domain name resolution server, generating a state monitoring result, and sending the state monitoring result to a state monitoring terminal.
6. The state monitoring method according to any one of claims 1 to 4, wherein after the step of generating a state monitoring result from the parsing result, further comprising:
carrying out classified statistics on the state monitoring result to obtain a statistical result;
storing the statistical result into a preset database, and recording the storage time;
when the storage time meets a preset storage condition, the statistical result is exported to a preset storage document, and the statistical result is deleted from the preset database.
7. The method for monitoring states according to any one of claims 1 to 4, wherein after the step of determining the information of the device to be monitored and the corresponding state monitoring requirements of the device to be monitored according to the received state monitoring command, the method further comprises:
and setting the equipment to be monitored to be in a cache-free analysis mode.
8. A condition monitoring device, the condition monitoring device comprising:
the receiving module is used for determining the information of the equipment to be monitored and the state monitoring requirement corresponding to the equipment to be monitored according to the received state monitoring instruction;
the network state information acquisition module is used for monitoring the equipment to be monitored according to the equipment to be monitored information and acquiring the network state information of the equipment to be monitored;
and the state monitoring result generation module is used for analyzing the network state information according to the state monitoring requirement to obtain an analysis result and generating a state monitoring result according to the analysis result.
9. A condition monitoring device, the device comprising: a memory, a processor and a condition monitoring program stored on the memory and executable on the processor, the condition monitoring program being configured to implement the steps of the condition monitoring method of any one of claims 1 to 7.
10. A storage medium having stored thereon a condition monitoring program which, when executed by a processor, implements the steps of the condition monitoring method according to any one of claims 1 to 7.
CN202310042482.6A 2023-01-28 2023-01-28 State monitoring method, device, equipment and storage medium Active CN116016257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310042482.6A CN116016257B (en) 2023-01-28 2023-01-28 State monitoring method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310042482.6A CN116016257B (en) 2023-01-28 2023-01-28 State monitoring method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116016257A true CN116016257A (en) 2023-04-25
CN116016257B CN116016257B (en) 2023-06-20

Family

ID=86029848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310042482.6A Active CN116016257B (en) 2023-01-28 2023-01-28 State monitoring method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116016257B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107317763A (en) * 2017-06-30 2017-11-03 郑州云海信息技术有限公司 Flow control method and device between a kind of client and meta data server
CN108011929A (en) * 2017-11-14 2018-05-08 平安科技(深圳)有限公司 Data request processing method, apparatus, computer equipment and storage medium
WO2019153337A1 (en) * 2018-02-12 2019-08-15 深圳前海达闼云端智能科技有限公司 Network quality evaluation method and apparatus, network detection device, and readable storage medium
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium
CN112152881A (en) * 2020-09-24 2020-12-29 中国农业银行股份有限公司上海市分行 Network state monitoring method under hybrid cloud environment
CN112565228A (en) * 2020-11-27 2021-03-26 北京高途云集教育科技有限公司 Client network analysis method and device
CN113312321A (en) * 2021-05-31 2021-08-27 中国民航信息网络股份有限公司 Abnormal monitoring method for traffic and related equipment
CN114553678A (en) * 2022-02-09 2022-05-27 紫光云(南京)数字技术有限公司 Diagnosis method for soft SLB traffic problem of cloud network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107317763A (en) * 2017-06-30 2017-11-03 郑州云海信息技术有限公司 Flow control method and device between a kind of client and meta data server
CN108011929A (en) * 2017-11-14 2018-05-08 平安科技(深圳)有限公司 Data request processing method, apparatus, computer equipment and storage medium
WO2019153337A1 (en) * 2018-02-12 2019-08-15 深圳前海达闼云端智能科技有限公司 Network quality evaluation method and apparatus, network detection device, and readable storage medium
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium
CN112152881A (en) * 2020-09-24 2020-12-29 中国农业银行股份有限公司上海市分行 Network state monitoring method under hybrid cloud environment
CN112565228A (en) * 2020-11-27 2021-03-26 北京高途云集教育科技有限公司 Client network analysis method and device
CN113312321A (en) * 2021-05-31 2021-08-27 中国民航信息网络股份有限公司 Abnormal monitoring method for traffic and related equipment
CN114553678A (en) * 2022-02-09 2022-05-27 紫光云(南京)数字技术有限公司 Diagnosis method for soft SLB traffic problem of cloud network

Also Published As

Publication number Publication date
CN116016257B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN109684047B (en) Event processing method, device, equipment and computer storage medium
CN109726103B (en) Test report generation method, device, equipment and storage medium
CN109669835B (en) MySQL database monitoring method, device, equipment and readable storage medium
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN111835584A (en) Inspection method and device for products of Internet of things, computer equipment and storage medium
CN110471749B (en) Task processing method, device, computer readable storage medium and computer equipment
CN108616389B (en) Network evaluation method, equipment, storage medium and device based on cloud server
CN107168844B (en) Performance monitoring method and device
CN111954240A (en) Network fault processing method and device and electronic equipment
CN110633195A (en) Performance data display method and device, electronic equipment and storage medium
CN113127356A (en) Pressure measurement method and device, electronic equipment and storage medium
CN111045879B (en) Method, device and storage medium for generating pressure test report
CN113905091A (en) Method and device for processing access request
CN112087455B (en) WAF site protection rule generation method, system, equipment and medium
CN116016257B (en) State monitoring method, device, equipment and storage medium
CN111835583B (en) Attribute inspection method and device for products of Internet of things and computer equipment
KR20110037969A (en) Targeted user notification of messages in a monitoring system
CN116800638A (en) Network detection method, device, electronic equipment and storage medium
CN111431733A (en) Service alarm coverage information evaluation method and device
CN111045934A (en) Page analysis method, device, client, storage medium and electronic equipment
US20090083747A1 (en) Method for managing application programs by utilizing redundancy and load balance
CN112329021B (en) Method and device for checking application loopholes, electronic device and storage medium
CN112994934B (en) Data interaction method, device and system
CN112364079A (en) Multi-service interaction exception handling method and system and electronic equipment
CN112667512A (en) Data drive test method, device, equipment and computer readable 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