CN110198230A - Monitoring method, device, storage medium and the electronic device of application - Google Patents

Monitoring method, device, storage medium and the electronic device of application Download PDF

Info

Publication number
CN110198230A
CN110198230A CN201810361790.4A CN201810361790A CN110198230A CN 110198230 A CN110198230 A CN 110198230A CN 201810361790 A CN201810361790 A CN 201810361790A CN 110198230 A CN110198230 A CN 110198230A
Authority
CN
China
Prior art keywords
monitoring
monitoring programme
monitored results
monitored
programme
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
CN201810361790.4A
Other languages
Chinese (zh)
Other versions
CN110198230B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810361790.4A priority Critical patent/CN110198230B/en
Publication of CN110198230A publication Critical patent/CN110198230A/en
Application granted granted Critical
Publication of CN110198230B publication Critical patent/CN110198230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • 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
    • 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/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1425Traffic logging, e.g. anomaly detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mathematical Physics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of monitoring method of application, device, storage medium and electronic devices.Wherein, this method comprises: the first monitoring programme of control is monitored the second monitoring programme, the first monitored results are obtained, wherein, for second monitoring programme for being monitored to destination application, first monitored results are used to indicate whether second monitoring programme exception occurs;When the first monitored results indicate that second monitoring programme occurs abnormal, the first prompt information is generated, wherein first prompt information is abnormal for prompting second monitoring programme to occur;Export first prompt information.The present invention solves the insecure technical problem of local monitor.

Description

Monitoring method, device, storage medium and the electronic device of application
Technical field
The present invention relates to monitoring fields, in particular to a kind of monitoring method of application, device, storage medium and electricity Sub-device.
Background technique
Whether in order to guarantee the availability of web services, it is normal to monitor web services to generally use the means of local monitor. Although the failure of web services can be monitored by the way of local monitor, local monitor is also possible to fail, and causes Local monitor mode it is unreliable.Such as: local monitor script is modified or deleted, local machine breaks down, local machine By hacker control etc. factors, the problem of all local monitor being caused to fail, cannot find web services in time, missed discovery and It on the opportunity of processing problem, causes damages.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of monitoring method of application, device, storage medium and electronic devices, at least to solve The certainly insecure technical problem of local monitor.
According to an aspect of an embodiment of the present invention, a kind of monitoring method of application is provided, comprising: the first monitoring of control Program is monitored the second monitoring programme, obtains the first monitored results, wherein second monitoring programme is for answering target It is monitored with program, first monitored results are used to indicate whether second monitoring programme exception occurs;In the first prison When control result indicates that second monitoring programme occurs abnormal, the first prompt information is generated, wherein the first prompt information use It is abnormal in prompting second monitoring programme to occur;Export first prompt information.
According to another aspect of an embodiment of the present invention, a kind of monitoring device of application is additionally provided, comprising:
First control unit is monitored the second monitoring programme for controlling the first monitoring programme, obtains the first monitoring As a result, wherein for being monitored to destination application, first monitored results are used to indicate second monitoring programme Whether second monitoring programme there is exception;Generation unit, for indicating second monitoring programme in the first monitored results When occurring abnormal, the first prompt information is generated, wherein first prompt information is for prompting second monitoring programme to occur It is abnormal;First output unit, for exporting first prompt information.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, is stored in the storage medium Computer program, wherein the computer program is arranged to execute the above method when operation.
According to another aspect of an embodiment of the present invention, a kind of electronic device, including memory and processor, institute are additionally provided It states and is stored with computer program in memory, the processor is arranged to execute above-mentioned side by the computer program Method.
The present embodiment is monitored the second monitoring programme by the first monitoring programme, and different in the appearance of the second monitoring programme The first prompt information is exported when often, the exception that the second monitoring programme is occurred is found and handled in time.Due to second The normal operation of monitoring programme just can guarantee that the exception of destination application can be found in time, and then guarantee target application journey Sequence can operate normally, and therefore, be monitored using the first monitoring programme to the second monitoring programme, ensure that the second monitoring programme Reliability, solve the insecure technical problem of the second monitoring programme in the prior art, reached improve the second monitoring programme Reliability technical effect.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the network architecture according to an embodiment of the present invention;
Fig. 2 is the flow chart of the monitoring method of application according to an embodiment of the present invention;
Fig. 3 is the flow chart of the monitoring method of the application of alternative embodiment according to the present invention;
Fig. 4 is the flow chart of the monitoring method of the application of another alternative embodiment according to the present invention
Fig. 5 is the structure chart of local according to an embodiment of the present invention and third party's monitoring;
Fig. 6 is the schematic diagram of the monitoring device of application according to an embodiment of the present invention;
Fig. 7 is a kind of structural block diagram of electronic device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Explanation of nouns:
Web services monitoring, it is very common in various operative scenarios, refer to through certain means, completes to take web The monitoring of (pc, app, small routine, H5 etc.) availability of being engaged in, actively, timely to find and dispose when an anomaly occurs. These means it is common include: HTTP monitoring, PING monitoring, DNS monitoring, server load/performance indicator monitoring etc..
Web services: web services are that a platform is independent, lower coupling, self-contained, answering based on programmable web With program, for developing the application program of distributed interoperability.
Third party's monitoring: third party's monitoring service freely can configure and dispose the relevant monitoring script of web services, benefit The platform or tool provided with third party completes web services monitoring.Third party's monitoring service can provide the clothes such as abnormity prompt Business.
Local monitor: briefly, be exactly it can only be seen in internal system without the monitoring for connecting external network and check and manage Reason, local monitor can be done in real time, can also be done offline.
According to an aspect of an embodiment of the present invention, a kind of monitoring method of application is provided.In the present embodiment, above-mentioned The monitoring method of application can be applied in the hardware environment that terminal 101 and server 102 as shown in Figure 1 are constituted.Such as Fig. 1 Shown, terminal 101 is attached by network with server 102, and above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or Local area network, terminal 101 can be mobile phone terminal, be also possible to PC terminal, notebook terminal or tablet computer terminal.
The monitoring method of the application can be used for being monitored application program, monitor the exception of application program appearance, To handle in time the exception of application program.Fig. 2 is the process of the monitoring method of application according to an embodiment of the present invention Figure.As shown in Fig. 2, the monitoring method of the application includes the following steps:
S202, the first monitoring programme of control are monitored the second monitoring programme, obtain the first monitored results, wherein institute The second monitoring programme is stated for being monitored to destination application, first monitored results are used to indicate second monitoring Whether program there is exception.
First monitoring programme, which can be non-local monitoring, second monitoring programmes such as third party's monitoring, can be local monitor. First monitoring programme can be the monitoring script being deployed in monitoring device, and monitoring device can be server or terminal.Make It can be deployed on the server where destination application for the second monitoring programme of local monitor, the first monitoring programme can be with On server where deployment is destination application different server or terminal.First monitoring programme can be third party Monitoring.Second monitoring programme can be with monitoring objective application program, to find that destination application goes out in time as local monitor Existing abnormal conditions.First monitoring programme be used to monitor the second monitoring programme, can monitor the second monitoring programme whether occur it is different Often, with the reliability of the second monitoring programme of guarantee.The second monitoring programme can normal, reliability service in the case where, Ke Yibao The exception of destination application can be found in time by demonstrate,proving the second monitoring programme.Therefore, target is answered using the second monitoring programme During being monitored with program, first the second monitoring programme of monitoring programme of control is monitored, to guarantee the second monitoring journey The reliability of sort run, so that the second monitoring programme is relatively reliable to the monitoring of destination application.
Destination application can be web services, the monitoring web services that the second monitoring programme carries out destination application Monitoring, that is, the monitoring to web services (pc, app, small routine, H5 etc.) availability, to lead when an anomaly occurs Dynamic, timely discovery and disposition.Web services monitoring means it is common include: HTTP monitoring, PING monitoring, DNS monitoring, service Device load/performance indicator monitoring etc..
S204 generates the first prompt information when the first monitored results indicate that second monitoring programme occurs abnormal, In, first prompt information is abnormal for prompting second monitoring programme to occur.
S206 exports first prompt information.
First monitored results are that the first monitoring programme is monitored to what the second monitoring programme was monitored as a result, working as first As a result after indicating that exception occurs in the second monitoring programme, the first prompt information can be generated.First prompt information can export to Operation maintenance personnel, so that operation maintenance personnel is handled in time, finding out leads to abnormal reason, keeps the second monitoring programme extensive as early as possible It is multiple normal.
The present embodiment is monitored the second monitoring programme by the first monitoring programme, and different in the appearance of the second monitoring programme The first prompt information is exported when often, the exception that the second monitoring programme is occurred is found and handled in time.Due to second The normal operation of monitoring programme just can guarantee that the exception of destination application can be found in time, and then guarantee target application journey Sequence can operate normally, and therefore, be monitored using the first monitoring programme to the second monitoring programme, ensure that the second monitoring programme Reliability, solve the insecure technical problem of the second monitoring programme in the prior art, reached improve the second monitoring programme Reliability technical effect.
Optionally, when the first monitoring programme of control is monitored the second monitoring programme, the method also includes Fig. 3 institutes The following steps shown:
S301 controls first monitoring programme and is monitored to the destination application, obtains the second monitored results, Wherein, second monitored results are used to indicate whether the destination application exception occurs;
In order to further ensure the reliability of the second monitoring programme, the first monitoring programme is monitoring the same of the second monitoring programme When, it can be with monitoring objective application program, and generate the second monitored results.Second monitoring programme monitoring objective application program generates Third monitored results.The second monitored results and third monitored results are compared it may determine that the first monitoring programme and the second monitoring out Whether program there is exception.When the second monitored results and third monitored results difference, the first monitoring programme or second are determined Monitoring programme occurs abnormal.
In conjunction with Fig. 4 it is found that the first monitoring programme can be the monitoring script in third-party deployment, which can be right Server load, PING monitoring, HTTP monitoring and the service port monitoring of destination application.That is, in the first monitoring Program can also be monitored destination application while monitoring to the second monitoring programme.
S303 determines first monitoring programme or described according to second monitored results and third monitored results Whether two monitoring programmes there is exception, wherein the third monitored results are second monitoring programmes to the target application It is that program is monitored as a result, the third monitored results are used to indicate whether the destination application exception occurs; Optionally, first monitoring programme or second monitoring are determined according to second monitored results and third monitored results Whether program occurs abnormal including: that indicate that the destination application occurs in second monitored results abnormal and described the Three monitored results indicate in the normal situation of destination application, and it is abnormal to determine that second monitoring programme occurs;Institute It states the second monitored results instruction destination application normally and the third monitored results indicates the destination application In the case where there is exception, it is abnormal to determine that first monitoring programme occurs.
For example, exception occurs in the second monitored results instruction destination application, but third monitored results instruction target is answered Normal with program, the second monitoring programme does not monitor target application and exception occurs, then it is abnormal to illustrate that the second monitoring programme occurs.Together Reason, it is normal in the second monitored results instruction destination application, but the instruction destination application appearance of third monitored results is different Often, the first monitoring programme does not monitor target application appearance exception, then it is abnormal to illustrate that the first monitoring programme occurs.
S305, when first monitoring programme or second monitoring programme occur abnormal, output the second prompt letter Breath, wherein second prompt information is abnormal for prompting first monitoring programme or second monitoring programme to occur.
Second prompt information and the first prompt information are prompted in different situations, and the second prompt information and first mentions Show that the prompt form of information can be same or different.The form of prompt information includes text prompt, image and graphical cues, sound Sound prompt etc. or the combination of a variety of prompting modes.
The first monitoring programme can be determined by the second monitored results and third monitored results and the second monitoring programme is No appearance is abnormal, realizes the mutual monitoring of the first monitoring programme and the second monitoring programme, ensure that monitoring stability and can By property.When first monitoring programme or second monitoring programme occur abnormal, the second prompt information is exported.Second mentions Show that information may include two sub-informations, two sub-informations respectively indicate the first monitoring programme or second monitoring programme goes out It is now abnormal.
In order to compare the second monitored results and third monitored results, the first monitoring programme and the second monitoring programme are being stored When monitored results, can the monitored results respectively to the first monitoring programme and the second monitoring programme be marked, that is, obtaining After two monitored results, the method also includes: storage first monitored results, second monitored results and the third Monitored results, wherein first monitored results and the third monitored results are marked as having with first monitoring programme Association, second monitored results are marked as relevant with second monitoring programme.
Such as: the monitoring informations deposit databases such as monitoring script modified, accesses data volume fluctuation for subsequent analysis, Different labels can be stamped to the monitoring information from the first monitoring programme and the second monitoring programme, respectively to the first monitoring journey The monitoring information of sequence and the second monitoring programme is analyzed, and determines that monitoring is more accurate and timely monitoring programme, Yi Jigen Further comparative analysis is done according to validity of the monitoring information of the first monitoring programme and the second monitoring programme to alarm channel, and Optimize the first monitoring programme and the second monitoring programme using analysis result.
Optionally, the first monitoring programme of control is monitored the second monitoring programme, and obtaining the first monitored results includes: control First monitoring programme is made to be monitored the operating status of second monitoring programme;It determines according to the operation state Whether second monitoring programme there is operation troubles, obtains first monitored results.
First monitoring programme and the second monitoring programme can be monitored destination application, monitoring objective application journey Monitoring content when sequence is essentially identical.The operating status of second monitoring programme include the second monitoring programme whether modified, second Monitoring programme whether it is executed normally and the second monitoring programme where server it is whether normally-open and operation etc..Described Server where two monitoring programmes are modified, the second monitoring programme can not be executed normally or the second monitoring programme is not just normally opened It opens and runs, determine that operation troubles occurs in the second monitoring programme.
Optionally, it controls first monitoring programme to be monitored the destination application, obtains the second monitoring knot Fruit includes: that control first monitoring programme is monitored at least one of of the destination application, is obtained described Second monitored results: server load condition, HTTP monitoring and PING monitoring.
The monitoring content of general script includes: server load condition, HTTP monitoring, PING monitoring etc..
Server load condition mainly sees the monitored item such as CPU, memory, load, disk and network interface card flow.
HTTP monitoring is to request access to monitored website by certain frequency analog subscriber, obtains the response shape of website in real time State and request details, accurately detect the various exceptions of website.
Whether PING monitoring is survived by certain frequency detection monitored host or website, the company of website and server Logical state, packet loss, average (RTT) response time of current download address etc..
First monitoring programme can be deployed on mature third-party platform, borrow the function of ready-made platform, realize alarm Deng service, cross monitoring is formed with the second monitoring programme, it is ensured that the validity of monitoring." third-party platform " of this paper be relative to For the provider of destination application, it is not meant to that it centainly belongs to different possess from the provider of destination application Side, it is also possible to belong to the different server of the same owning side.
It is illustrated below in conjunction with monitoring method of the Fig. 4 to the application of the present embodiment.
1, monitoring script is disposed respectively in the machine and third-party platform.The monitoring script of the machine deployment is answered for monitoring objective With the server load of program, PING monitoring, HTTP monitoring and serve port etc..
As shown in figure 4, monitoring script is deployed in third-party platform and the machine respectively.Third-party platform monitors the prison of the machine Script is controlled, cross monitoring is formed.Also, third-party platform and the machine all with database communication, so that supervising data storage is arrived In database.
2, the monitoring script of third-party platform deployment monitors the monitoring script of the machine deployment.The monitoring script of third-party platform It is equivalent to the first monitoring programme, the monitoring script of the machine deployment is equivalent to the second monitoring programme.
3, monitoring script is executed.That is the monitoring script of third-party platform and local monitoring script is all in accordance with certain frequency It executes, to be monitored to destination application.
4, whether there is exception, including whether destination application exception occurs, whether the first monitoring programme exception occurs And second monitoring programme whether there is exception.
5, failure reports.If monitor out destination application, the first monitoring programme and the second monitoring programme wherein it One there is exception, then issues the first prompt information or the second prompt information, and reporting fault prompts corresponding program to occur abnormal. And by the storage of the data of the destination application monitored into database.
If 6, not monitoring destination application exception occurs, the data of the destination application monitored are deposited It stores up in database, the data of the destination application monitored include the prompt normal data of destination application.
7, monitoring data table is established in the database, stores monitoring data and the local of the monitoring script of third-party platform The monitoring data of monitoring script, including the monitoring data to destination application and the prison being monitored to local monitoring script Control data.The monitoring script of monitoring script or local of the monitoring data from third-party platform can be marked in tables of data. It should be noted that monitoring data table is a kind of form for storing monitoring data, it can also be using other forms storage monitoring Data.
The example of the monitoring method of application based on the present embodiment is as follows:
One, after operation maintenance personnel A receives the alarm from third-party platform, confirm that monitored web services are unavailable, and Local monitor does not receive alarm, prompts local monitor abnormal.Operation maintenance personnel A is analyzed through investigation, determines that the failure of this machine monitoring is Since local machine failure causes to crash, operation maintenance personnel A is handled abnormal, is located not in time after avoiding single-point monitoring failure It manages to loss caused by business.
Two, the monitoring log of third-party platform and the machine is stored in database, monitors journal displaying, third-party platform It alerts timeliness and is better than local monitor, notice operation maintenance personnel B analyzes local monitor.Local monitor is determined by analysis Alarm notification module has delay, is updated to the alarm notification module of local monitor.
In the present embodiment, by way of cross monitoring, effective monitoring of second monitoring programme to target application is enhanced, It is compared by the ability of different monitoring channel, improves the stability and reliability of the second monitoring programme, reached guarantee web clothes The technical effect for normal operation of being engaged in.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the monitoring method of above-mentioned application The monitoring device of application, as shown in fig. 6, the device includes:
First control unit 52 is monitored the second monitoring programme for controlling the first monitoring programme, obtains the first prison Control result, wherein second monitoring programme is for being monitored destination application, and first monitored results are for referring to Show whether second monitoring programme exception occurs.
Generation unit 54, for generating first when the first monitored results indicate that second monitoring programme occurs abnormal Prompt information, wherein first prompt information is abnormal for prompting second monitoring programme to occur.
First output unit 56, for exporting first prompt information.
First monitored results are that the first monitoring programme is monitored to what the second monitoring programme was monitored as a result, working as first As a result after indicating that exception occurs in the second monitoring programme, the first prompt information can be generated.First prompt information can export to Operation maintenance personnel, so that operation maintenance personnel is handled in time, finding out leads to abnormal reason, keeps the second monitoring programme extensive as early as possible It is multiple normal.
The present embodiment is monitored the second monitoring programme by the first monitoring programme, and different in the appearance of the second monitoring programme The first prompt information is exported when often, the exception that the second monitoring programme is occurred is found and handled in time.Due to second The normal operation of monitoring programme just can guarantee that the exception of destination application can be found in time, and then guarantee target application journey Sequence can operate normally, and therefore, be monitored using the first monitoring programme to the second monitoring programme, ensure that the second monitoring programme Reliability, solve the insecure technical problem of the second monitoring programme in the prior art, reached improve the second monitoring programme Reliability technical effect.
Optionally, described device further include: the second control unit, for controlling the first monitoring programme to the second monitoring journey When sequence is monitored, controls first monitoring programme and the destination application is monitored, obtain the second monitored results, Wherein, second monitored results are used to indicate whether the destination application exception occurs;Determination unit, for according to institute It states the second monitored results and third monitored results determines whether first monitoring programme or second monitoring programme occur It is abnormal, wherein the third monitored results are that second monitoring programme is monitored to obtain to the destination application As a result, the third monitored results are used to indicate whether the destination application exception occurs;Second output unit is used for When first monitoring programme or second monitoring programme occur abnormal, the second prompt information is exported, wherein described second Prompt information is abnormal for prompting first monitoring programme or second monitoring programme to occur.
In order to further ensure the reliability of the second monitoring programme, the first monitoring programme is monitoring the same of the second monitoring programme When, it can be with monitoring objective application program, and generate the second monitored results.Second monitoring programme monitoring objective application program generates Third monitored results.The second monitored results and third monitored results are compared it may determine that the first monitoring programme and the second monitoring out Whether program there is exception.When the second monitored results and third monitored results difference, the first monitoring programme or second are determined Monitoring programme occurs abnormal.
Optionally, the determination unit includes: the first determining module, for indicating the mesh in second monitored results Application program is marked to occur determining institute in the abnormal and described third monitored results instruction normal situation of destination application It states the second monitoring programme and exception occurs;Second determining module, for indicating the target application journey in second monitored results In the case that sequence is normal and exception occurs in the third monitored results instruction destination application, first prison is determined It controls program and exception occurs.
For example, exception occurs in the second monitored results instruction destination application, but third monitored results instruction target is answered Normal with program, the second monitoring programme does not monitor target application and exception occurs, then it is abnormal to illustrate that the second monitoring programme occurs.Together Reason, it is normal in the second monitored results instruction destination application, but the instruction destination application appearance of third monitored results is different Often, the first monitoring programme does not monitor target application appearance exception, then it is abnormal to illustrate that the first monitoring programme occurs.
The first monitoring programme can be determined by the second monitored results and third monitored results and the second monitoring programme is No appearance is abnormal, realizes the mutual monitoring of the first monitoring programme and the second monitoring programme, ensure that monitoring stability and can By property.When first monitoring programme or second monitoring programme occur abnormal, the second prompt information is exported.Second mentions Show that information may include two sub-informations, two sub-informations respectively indicate the first monitoring programme or second monitoring programme goes out It is now abnormal.
In order to compare the second monitored results and third monitored results, the first monitoring programme and the second monitoring programme are being stored When monitored results, can the monitored results respectively to the first monitoring programme and the second monitoring programme be marked, i.e., optionally, institute State device further include: storage unit stores first monitored results, described for after obtaining the second monitored results Two monitored results and the third monitored results, wherein first monitored results and the third monitored results are marked as Relevant with first monitoring programme, second monitored results are marked as relevant with second monitoring programme.
Such as: the monitoring informations deposit databases such as monitoring script modified, accesses data volume fluctuation for subsequent analysis, Different labels can be stamped to the monitoring information from the first monitoring programme and the second monitoring programme, respectively to the first monitoring journey The monitoring information of sequence and the second monitoring programme is analyzed, and determines that monitoring is more accurate and timely monitoring programme, Yi Jigen Further comparative analysis is done according to validity of the monitoring information of the first monitoring programme and the second monitoring programme to alarm channel, and Optimize the first monitoring programme and the second monitoring programme using analysis result.
Optionally, the first control unit includes: the first control module, for controlling first monitoring programme to institute The operating status for stating the second monitoring programme is monitored;Third determining module, it is described for determining according to the operation state Whether the first monitoring programme there is operation troubles, obtains first monitored results.
First monitoring programme and the second monitoring programme can be monitored destination application, monitoring objective application journey Monitoring content when sequence is essentially identical.
Optionally, second control unit includes: the second control module, for controlling first monitoring programme to institute At least one of for stating destination application is monitored, and obtains second monitored results: server load and port, HTTP monitoring and PING monitoring.
Another aspect according to an embodiment of the present invention additionally provides a kind of for implementing the monitoring method of above-mentioned application Electronic device is stored with computer journey in the memory as shown in fig. 7, the electronic device includes, including memory and processor Sequence, the processor are arranged to execute the step in any of the above-described embodiment of the method by computer program.
Optionally, Fig. 7 is a kind of structural block diagram of electronic device according to an embodiment of the present invention.As shown in fig. 7, the electronics Device may include: one or more (one is only shown in figure) processor 601, at least one communication bus 602, user interface 603, at least one transmitting device 604 and memory 605.Wherein, communication bus 602 is for realizing the connection between these components Communication.Wherein, user interface 603 may include display 606 and keyboard 607.Transmitting device 604 optionally may include standard Wireline interface and wireless interface.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1, the first monitoring programme of control are monitored the second monitoring programme, obtain the first monitored results, wherein described For second monitoring programme for being monitored to destination application, first monitored results are used to indicate the second monitoring journey Whether sequence there is exception;
S2 generates the first prompt information when the first monitored results indicate that second monitoring programme occurs abnormal, In, first prompt information is abnormal for prompting second monitoring programme to occur;
S3 exports first prompt information.
Optionally, it will appreciated by the skilled person that structure shown in fig. 6 is only to illustrate, electronic device can also To be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device The terminal devices such as (Mobile Internet Devices, MID), PAD.Fig. 7 it does not cause to the structure of above-mentioned electronic device It limits.For example, electronic device may also include more or less component (such as network interface, display device than shown in Fig. 7 Deng), or with the configuration different from shown in Fig. 7.
Wherein, memory 605 can be used for storing software program and module, such as the monitoring of the application in the embodiment of the present invention Corresponding program instruction/the module of method and apparatus, processor 601 by the software program that is stored in memory 605 of operation with And module realizes the monitoring method of above-mentioned application thereby executing various function application and data processing.Memory 605 It may include high speed random access memory, can also include nonvolatile memory, such as one or more magnetic storage device dodges It deposits or other non-volatile solid state memories.In some instances, memory 605 can further comprise relative to processor 601 remotely located memories, these remote memories can pass through network connection to terminal.The example of above-mentioned network include but It is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 604 is used to that data to be received or sent via a network.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 604 includes a network adapter (Network Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection Net or local area network are communicated.In an example, transmitting device 604 is radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
Wherein, specifically, memory 605 is for storing monitoring programme and monitored results.
The present embodiment is monitored the second monitoring programme by the first monitoring programme, and different in the appearance of the second monitoring programme The first prompt information is exported when often, the exception that the second monitoring programme is occurred is found and handled in time.Due to second The normal operation of monitoring programme just can guarantee that the exception of destination application can be found in time, and then guarantee target application journey Sequence can operate normally, and therefore, be monitored using the first monitoring programme to the second monitoring programme, ensure that the second monitoring programme Reliability, solve the insecure technical problem of the second monitoring programme in the prior art, reached improve the second monitoring programme Reliability technical effect.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1, the first monitoring programme of control are monitored the second monitoring programme, obtain the first monitored results, wherein described For second monitoring programme for being monitored to destination application, first monitored results are used to indicate the second monitoring journey Whether sequence there is exception;
S2 generates the first prompt information when the first monitored results indicate that second monitoring programme occurs abnormal, In, first prompt information is abnormal for prompting second monitoring programme to occur;
S3 exports first prompt information.
Optionally, storage medium is also configured to store the computer program for executing following steps:
It controls first monitoring programme to be monitored the destination application, obtains the second monitored results, wherein Second monitored results are used to indicate whether the destination application exception occurs;According to second monitored results and Three monitored results determine whether first monitoring programme or second monitoring programme exception occur, wherein the third Monitored results be second monitoring programme to the destination application be monitored as a result, the third monitoring knot Fruit is used to indicate whether the destination application exception occurs;In first monitoring programme or second monitoring programme When occurring abnormal, export the second prompt information, wherein second prompt information for prompt first monitoring programme or Second monitoring programme occurs abnormal.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, those of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of the steps be that the relevant hardware of terminal device can be instructed to complete by program, the program can store in In one computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (14)

1. a kind of monitoring method of application characterized by comprising
It controls the first monitoring programme to be monitored the second monitoring programme, obtains the first monitored results, wherein second monitoring For program for being monitored to destination application, first monitored results are used to indicate whether second monitoring programme goes out It is now abnormal;
When the first monitored results indicate that second monitoring programme occurs abnormal, the first prompt information is generated, wherein described the One prompt information is abnormal for prompting second monitoring programme to occur;
Export first prompt information.
2. the method according to claim 1, wherein being carried out controlling the first monitoring programme to the second monitoring programme When monitoring, the method also includes:
It controls first monitoring programme to be monitored the destination application, obtains the second monitored results, wherein described Second monitored results are used to indicate whether the destination application exception occurs;
First monitoring programme or the second monitoring journey are determined according to second monitored results and third monitored results Whether sequence there is exception, wherein the third monitored results are that second monitoring programme carries out the destination application Monitor obtain as a result, the third monitored results are used to indicate whether the destination application exception occurs;
When first monitoring programme or second monitoring programme occur abnormal, the second prompt information is exported, wherein institute It is abnormal for prompting first monitoring programme or second monitoring programme to occur to state the second prompt information.
3. according to the method described in claim 2, it is characterized in that, described according to second monitored results and third monitoring knot Fruit determines whether first monitoring programme or second monitoring programme exception occur and include:
Indicate that the destination application occurs described in the abnormal and described third monitored results instruction in second monitored results In the normal situation of destination application, it is abnormal to determine that second monitoring programme occurs;
The destination application is indicated normally in second monitored results and the third monitored results indicate the target In the case that exception occurs in application program, it is abnormal to determine that first monitoring programme occurs.
4. according to the method described in claim 2, it is characterized in that, the method is also wrapped after obtaining the second monitored results It includes:
Store first monitored results, second monitored results and the third monitored results, wherein first monitoring As a result it is marked as with the third monitored results relevant with first monitoring programme, second monitored results are labeled It is relevant with second monitoring programme.
5. the method according to claim 1, wherein the first monitoring programme of the control to the second monitoring programme into Row monitoring, obtaining the first monitored results includes:
First monitoring programme is controlled to be monitored the operating status of second monitoring programme;
It determines whether second monitoring programme operation troubles occurs according to the operation state, obtains the first monitoring knot Fruit.
6. according to the method described in claim 2, it is characterized in that, control first monitoring programme is to the target application journey Sequence is monitored, and is obtained the second monitored results and is included:
It controls first monitoring programme to be monitored at least one of of the destination application, obtains described second Monitored results:
Server load and port, HTTP monitoring and PING monitoring.
7. a kind of monitoring device of application characterized by comprising
First control unit is monitored the second monitoring programme for controlling the first monitoring programme, obtains the first monitored results, Wherein, for being monitored to destination application, first monitored results are used to indicate described second monitoring programme Whether the second monitoring programme there is exception;
Generation unit, for when the first monitored results indicate that second monitoring programme occurs abnormal, generating the first prompt letter Breath, wherein first prompt information is abnormal for prompting second monitoring programme to occur;
First output unit, for exporting first prompt information.
8. device according to claim 7, which is characterized in that described device further include:
Second control unit, for controlling described first when the first monitoring programme of control is monitored the second monitoring programme Monitoring programme is monitored the destination application, obtains the second monitored results, wherein second monitored results are used for Indicate whether the destination application exception occurs;
Determination unit, for determining first monitoring programme or institute according to second monitored results and third monitored results State whether the second monitoring programme exception occurs, wherein the third monitored results are second monitoring programmes to the target It is that application program is monitored as a result, the third monitored results be used to indicate the destination application whether occur it is different Often;
Second output unit, for when first monitoring programme or second monitoring programme occur abnormal, output the Two prompt informations, wherein second prompt information is for prompting first monitoring programme or second monitoring programme Occur abnormal.
9. device according to claim 8, which is characterized in that the determination unit includes:
First determining module is abnormal and described for indicating that the destination application occurs in second monitored results Three monitored results indicate in the normal situation of destination application, and it is abnormal to determine that second monitoring programme occurs;
Second determining module, for the third prison normal and described in second monitored results instruction destination application In the case that control result indicates that exception occurs in the destination application, it is abnormal to determine that first monitoring programme occurs.
10. device according to claim 8, which is characterized in that described device further include:
Storage unit, for storing first monitored results, second monitored results after obtaining the second monitored results With the third monitored results, wherein first monitored results and the third monitored results are marked as and described first Monitoring programme is relevant, and second monitored results are marked as relevant with second monitoring programme.
11. device according to claim 7, which is characterized in that the first control unit includes:
First control module supervises the operating status of second monitoring programme for controlling first monitoring programme Control;
Third determining module, for determining whether second monitoring programme operation troubles occurs according to the operation state, Obtain first monitored results.
12. device according to claim 8, which is characterized in that second control unit includes:
Second control module carries out at least one of of the destination application for controlling first monitoring programme Monitoring, obtains second monitored results:
Server load and port, HTTP monitoring and PING monitoring.
13. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute method described in any one of claim 1 to 6 when operation.
14. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to execute side described in any one of claim 1 to 6 by the computer program Method.
CN201810361790.4A 2018-04-20 2018-04-20 Application monitoring method and device, storage medium and electronic device Active CN110198230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810361790.4A CN110198230B (en) 2018-04-20 2018-04-20 Application monitoring method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810361790.4A CN110198230B (en) 2018-04-20 2018-04-20 Application monitoring method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110198230A true CN110198230A (en) 2019-09-03
CN110198230B CN110198230B (en) 2022-04-15

Family

ID=67751279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810361790.4A Active CN110198230B (en) 2018-04-20 2018-04-20 Application monitoring method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110198230B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780891A (en) * 2019-11-01 2020-02-11 北京车和家信息技术有限公司 Deployment method and deployment device of monitoring system
CN112929390A (en) * 2021-03-12 2021-06-08 厦门帝恩思科技股份有限公司 Network intelligent monitoring method based on multi-strategy fusion
KR20240009851A (en) 2022-07-14 2024-01-23 가부시키가이샤 쇼난 고세이쥬시 세이사쿠쇼 Irradiation Facility

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776243A (en) * 2016-12-30 2017-05-31 中国银联股份有限公司 A kind of monitoring method and device for monitoring software
CN106844137A (en) * 2016-12-08 2017-06-13 腾讯科技(深圳)有限公司 The monitoring method and device of server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844137A (en) * 2016-12-08 2017-06-13 腾讯科技(深圳)有限公司 The monitoring method and device of server
CN106776243A (en) * 2016-12-30 2017-05-31 中国银联股份有限公司 A kind of monitoring method and device for monitoring software

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780891A (en) * 2019-11-01 2020-02-11 北京车和家信息技术有限公司 Deployment method and deployment device of monitoring system
CN110780891B (en) * 2019-11-01 2023-12-22 北京车和家信息技术有限公司 Deployment method and deployment device of monitoring system
CN112929390A (en) * 2021-03-12 2021-06-08 厦门帝恩思科技股份有限公司 Network intelligent monitoring method based on multi-strategy fusion
KR20240009851A (en) 2022-07-14 2024-01-23 가부시키가이샤 쇼난 고세이쥬시 세이사쿠쇼 Irradiation Facility

Also Published As

Publication number Publication date
CN110198230B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN105165054B (en) Network service failure processing method, service management system and system management module
US11120343B2 (en) Intelligent anomaly identification and alerting system based on smart ranking of anomalies
US9547834B2 (en) Transaction performance monitoring
CN106844137A (en) The monitoring method and device of server
GB2613947A (en) Home health optimization
CN110198230A (en) Monitoring method, device, storage medium and the electronic device of application
CN109787827B (en) CDN network monitoring method and device
US11769520B2 (en) Communication issue detection using evaluation of multiple machine learning models
CN107241229A (en) A kind of business monitoring method and device based on interface testing instrument
US20160321906A1 (en) Alert management within a network based virtual collaborative space
US10931513B2 (en) Event-triggered distributed data collection in a distributed transaction monitoring system
US20180278928A1 (en) Videoconference Equipment Monitoring System
CN112350854A (en) Flow fault positioning method, device, equipment and storage medium
CN114500343B (en) Business chain operation monitoring method and device, equipment, medium and product thereof
CN108153654A (en) A kind of log collecting method and device
CN105306303B (en) The real-time monitoring system of failure and terminal network appliance based on terminal network appliance
US11201779B1 (en) Generation of synthetic alerts and unified dashboard for viewing multiple layers of data center simultaneously
JP2017156863A (en) Monitoring system and program
CN106230666B (en) A kind of monitoring method and monitoring system of service availability
CN111193636A (en) Method and device for testing availability of single machine
US10432472B1 (en) Network operation center (NOC) tool pattern detection and trigger to real-time monitoring operation mode
JP2017521802A (en) Architecture for correlation events for supercomputer monitoring
US11102103B2 (en) Network stabilizing tool
CN115080363A (en) System capacity evaluation method and device based on service log
JP2018169643A (en) Security operation system, security operation management apparatus, and security operation method

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