CN117176614A - Website availability monitoring method, device, equipment and storage medium - Google Patents

Website availability monitoring method, device, equipment and storage medium Download PDF

Info

Publication number
CN117176614A
CN117176614A CN202311172444.9A CN202311172444A CN117176614A CN 117176614 A CN117176614 A CN 117176614A CN 202311172444 A CN202311172444 A CN 202311172444A CN 117176614 A CN117176614 A CN 117176614A
Authority
CN
China
Prior art keywords
website
state
target
determining
monitored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311172444.9A
Other languages
Chinese (zh)
Inventor
徐方
范渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DBAPPSecurity Co Ltd
Original Assignee
DBAPPSecurity 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 DBAPPSecurity Co Ltd filed Critical DBAPPSecurity Co Ltd
Priority to CN202311172444.9A priority Critical patent/CN117176614A/en
Publication of CN117176614A publication Critical patent/CN117176614A/en
Pending legal-status Critical Current

Links

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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for monitoring website availability, which relate to the field of website monitoring and comprise the following steps: sending access requests to websites to be monitored with normal domain name resolution respectively through each detection node determined based on the monitoring task; determining states of websites based on response results returned by the websites to be monitored, and determining target website states based on the states of the websites; determining whether to trigger an alarm operation based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes; if so, determining whether to send the alarm reminding based on the comparison result of the target website state and the historical website states and the triggering duration of the alarm operation. According to the application, the availability of the website is monitored through the plurality of detection nodes, and whether the warning prompt is sent or not is determined through the triggering duration of the warning operation, so that the problem of frequent warning caused by website fluctuation is solved, and the high reliability of the website availability monitoring is improved.

Description

Website availability monitoring method, device, equipment and storage medium
Technical Field
The present application relates to the field of website monitoring, and in particular, to a method, apparatus, device, and storage medium for monitoring website availability.
Background
With the continuous development of information technology and the wide application of computer networks, websites have become an important part of people's work and life, and websites provide platforms for information communication for various organizations or individuals and play an increasingly important role. The usability of the website is an important index for measuring the most direct and basic of a website, and the experience of a user is directly affected. Therefore, website availability monitoring is becoming more and more a serious task for website constructors and web-security service providers, and how to improve the high reliability of website availability monitoring is a problem to be solved at present.
Disclosure of Invention
Accordingly, the present application is directed to a method, apparatus, device and storage medium for monitoring availability of a website, which can monitor availability of a website by a plurality of detection nodes, and determine whether to send an alarm alert according to a triggering duration of an alarm operation, so as to solve frequent alarm problems caused by website fluctuation, and improve high reliability of website availability monitoring. The specific scheme is as follows:
in a first aspect, the present application provides a website availability monitoring method, applied to a website availability monitoring engine, including:
determining a website to be monitored and a plurality of detection nodes based on a monitoring task, and periodically and respectively sending an access request to the website to be monitored with normal domain name resolution through each detection node according to a preset time period;
acquiring response results returned by the websites to be monitored, determining states of the websites based on the response results, and determining states of target websites based on the states of the websites;
determining whether to trigger an alarm operation or not based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes;
if so, determining whether to send an alarm prompt or not based on the comparison result of the target website state and the historical website states and the triggering duration of the alarm operation.
Optionally, before determining the website to be monitored and the plurality of probe nodes based on the monitoring task, the method further includes:
configuring a detection node cluster through a configuration center in the website availability detection engine, and issuing a created monitoring task to a task scheduling center in the website availability detection engine;
and receiving the monitoring task through the task scheduling center, and placing the monitoring task into an asynchronous task queue.
Optionally, the determining, based on the monitoring task, the website to be monitored and the plurality of detection nodes includes:
and acquiring the monitoring task from the asynchronous task queue through a scheduler in the website availability detection engine, determining a plurality of detection nodes from the detection node cluster based on the monitoring task, and determining a website to be monitored based on the monitoring task.
Optionally, the determining the state of each website based on each response result includes:
judging whether the response result meets a preset response code range or not;
if yes, judging that the website state corresponding to the response result is a normal website access state;
if not, judging that the website state corresponding to the response result is the website access disconnection state.
Optionally, the determining the target website state based on each website state includes:
counting the number of the website access offline states in each website state, and determining a second ratio based on the number of the website access offline states and the total number of each website state;
judging whether the second ratio is larger than a preset website state threshold value or not;
if the access request is larger than the target website state, judging that the website access disconnection state is the target website state;
and if the website access normal state is smaller than or equal to the target website state, judging that the website access normal state is the target website state.
Optionally, the determining whether to trigger the alarm operation based on the first ratio between the number of target probe nodes corresponding to the target website state and the total number of the plurality of probe nodes includes:
determining a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes;
and if the first ratio is greater than the alarm threshold corresponding to the state of the target website, triggering alarm operation.
Optionally, the determining whether to send the alert reminder based on the comparison result of the target website state and the historical website states and the triggering duration of the alert operation includes:
when the triggering duration of the alarm operation reaches a preset time threshold, determining the state of the website to be analyzed corresponding to the current website to be monitored again through each detection node, and judging whether the state of the website to be analyzed is consistent with the state of the target website;
if so, judging whether the website states inconsistent with the target website state exist in the historical website states for a plurality of times;
if the website to be monitored is not in the target website state, sending an alarm prompt for representing that the website to be monitored is in the target website state continuously;
and if the website to be monitored is in the target website state, sending an alarm prompt for representing that the website to be monitored is in the target website state.
In a second aspect, the present application provides a website availability monitoring device, applied to a website availability monitoring engine, comprising:
the access request sending module is used for determining a website to be monitored and a plurality of detection nodes based on the monitoring task, and sending access requests to the website to be monitored with normal domain name resolution through the detection nodes periodically according to a preset time period;
the website state determining module is used for acquiring response results returned by the websites to be monitored, determining each website state based on each response result, and determining a target website state based on each website state;
the alarm operation triggering module is used for determining whether to trigger alarm operation or not based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes;
and the alarm reminding sending module is used for determining whether to send an alarm reminding or not based on the comparison result of the target website state and the historical website states of a plurality of times and the triggering duration of the alarm operation if the alarm reminding is triggered.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the website availability monitoring method.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which when executed by a processor implements the website availability monitoring method described above.
According to the method, a website to be monitored and a plurality of detection nodes are determined based on a monitoring task, and access requests are sent to the website to be monitored with normal domain name resolution through the detection nodes periodically according to a preset time period; acquiring response results returned by the websites to be monitored, determining states of the websites based on the response results, and determining states of target websites based on the states of the websites; determining whether to trigger an alarm operation or not based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes; if so, determining whether to send an alarm prompt or not based on the comparison result of the target website state and the historical website states and the triggering duration of the alarm operation. Therefore, the application monitors the availability of the multilink of the website to be monitored through a plurality of detection nodes, avoids the condition of easy false detection caused by adopting only one detection node, and improves the accuracy of determining the website state of the website to be monitored; in addition, whether the alarm operation is triggered or not is determined through the first ratio, whether the alarm reminding is sent or not is determined through the triggering duration of the alarm operation, the problem of frequent alarm caused by website fluctuation can be avoided, and the high reliability of website availability monitoring is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a website availability monitoring method disclosed by the application;
FIG. 2 is a flow chart of monitoring website availability in accordance with the present disclosure;
FIG. 3 is a schematic diagram of a website availability monitoring device according to the present disclosure;
fig. 4 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The usability of the website is an important index for measuring the most direct and basic of a website, and the experience of a user is directly affected. Therefore, website availability monitoring is becoming more and more a serious task for website constructors and web-security service providers, and how to improve the high reliability of website availability monitoring is a problem to be solved at present. Therefore, the application provides a website availability monitoring method, which monitors the availability of websites through a plurality of detection nodes, and determines whether to send alarm reminding or not through the triggering duration of alarm operation, thereby solving the frequent alarm problem caused by website fluctuation and improving the high reliability of website availability monitoring.
Referring to fig. 1, the embodiment of the application discloses a website availability monitoring method, which is applied to a website availability monitoring engine and comprises the following steps:
step S11, determining a website to be monitored and a plurality of detection nodes based on a monitoring task, and periodically and respectively sending an access request to the website to be monitored with normal domain name resolution through each detection node according to a preset time period.
In this embodiment, a configuration center in the website availability monitoring engine is used to configure monitoring engine policy parameters, including a preset response code range, a preset website state threshold, an alarm threshold, a preset time threshold and a detection node cluster; the alarm threshold value comprises a broken network alarm threshold value corresponding to a broken network state accessed by a website and a recovery alarm threshold value corresponding to a normal state accessed by the website; the probing nodes are generally a plurality of at least five probing nodes, form a multi-link probing node cluster, and have distributed probing nodes in mobile, communication and telecommunication. Further, a monitoring task is newly established through a configuration center in the website availability monitoring engine, a website to be monitored at this time is selected, monitoring engine policy parameters are designated, a plurality of detection nodes are designated, and then the monitoring task is initiated. The monitoring tasks are received by a task scheduling center in the website availability detection engine and placed into an asynchronous task queue, e.g., kafka message queue, etc. Acquiring a monitoring task from an asynchronous task queue through a scheduler in a website availability detection engine, determining a plurality of corresponding detection nodes from a preset detection node cluster based on the monitoring task, determining a corresponding website to be monitored based on the monitoring task, and respectively sending an access request to the website to be monitored with normal domain name resolution at preset time intervals through each detection node to acquire a response result; the preset time may be half an hour or one hour, and is configured according to the use requirement of the user.
And step S12, obtaining response results returned by the websites to be monitored, determining states of the websites based on the response results, and determining target website states based on the states of the websites.
In this embodiment, a processing center in the website availability monitoring engine obtains a response result returned by the website to be monitored, and determines a website state corresponding to each response result according to whether the response result meets a preset response code range. For example, if the response result is an HTTP (Hypertext Transfer Protocol ) status code and the preset response code range is 200 to 400, then determining whether the HTTP status code satisfies the response code range of 200 to 400, if so, determining that the website status corresponding to the response result is a normal website access status, or may be recorded as 1; if not, the state of the website corresponding to the response result is judged to be the website access broken state, and can be recorded as 0.
Further, after determining the website states corresponding to the response results respectively, counting the number of website access disconnection states in the website states through a processing center in the website availability monitoring engine, and determining a second ratio based on the number of website access disconnection states and the total number of the website states; judging whether the second ratio is larger than a preset website state threshold value or not; if the second ratio is greater than the preset website state threshold, judging that the website access disconnection state is the target website state; if the second ratio is smaller than or equal to the preset website state threshold, judging that the normal website access state is the target website state. In addition, the number of the website access normal states in each website state can be counted through a processing center in the website availability monitoring engine, and the ratio is determined based on the number of the website access normal states and the total number of the website states; judging whether the ratio is larger than a preset website state threshold value or not; if the ratio is greater than a preset website state threshold, judging that the normal website access state is a target website state; if the ratio is smaller than or equal to the preset website state threshold, judging that the website access disconnection state is the target website state.
Step S13, determining whether to trigger an alarm operation or not based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the detection nodes.
In the embodiment, determining target detection nodes corresponding to the state of the target website from a plurality of detection nodes, and calculating a first ratio between the number of the target detection nodes and the total number of the plurality of detection nodes; if the first ratio is greater than the alarm threshold corresponding to the state of the target website, triggering alarm operation; and if the first ratio is smaller than or equal to the alarm threshold corresponding to the state of the target website, the alarm operation is forbidden to be triggered. For example, if the target website state is a website access broken network state, the number of target detection nodes is 7, and the total number of the plurality of detection nodes is 10, the first ratio is seventy percent, and if the first ratio is greater than a broken network alarm threshold corresponding to the website access broken network state, the broken network alarm operation is triggered. If the target website state is a website access normal state, the number of target detection nodes is 8, the total number of the plurality of detection nodes is 10, the first ratio is eighty percent, and if the first ratio is larger than a recovery alarm threshold corresponding to the website access normal state, the recovery alarm operation is triggered.
And step S14, if so, determining whether to send an alarm prompt or not based on the comparison result of the target website state and the historical website states and the triggering duration of the alarm operation.
In this embodiment, if the alarm operation is triggered, when the triggering duration of the alarm operation reaches a preset time threshold, for example, 10 minutes, the state of the website to be analyzed corresponding to the current website to be monitored is determined actively again through each detection node, and whether the state of the website to be analyzed is consistent with the state of the target website is determined. If the state of the website to be analyzed is inconsistent with the state of the target website, not sending an alarm prompt; if the state of the website to be analyzed is consistent with the state of the target website, judging whether the website state inconsistent with the state of the target website exists in the historical website states for a plurality of times, wherein the plurality of times is the number of times set according to the actual demands of the user. If the website state inconsistent with the target website state does not exist, sending an alarm prompt for representing that the website to be monitored is continuously in the target website state; if the website state inconsistent with the target website state exists, sending an alarm prompt for representing that the website to be monitored is intermittently in the target website state. It should be noted that the method of the application is not only suitable for the scene of monitoring the availability of websites, but also suitable for the scenes of detecting the activity of websites, verifying zombie websites and the like.
In this embodiment, if the target website state is a website access disconnection state, when the triggering duration of the alarm operation reaches 10 minutes, the website state to be analyzed corresponding to the current website to be monitored is determined to be a normal website access state again through each detection node, and at this time, the website state of the website to be monitored is changed, so that the disconnection alarm prompt is not sent any more. If the target website state is a website access off-network state, and when the triggering duration of the alarm operation reaches 10 minutes, the website state to be analyzed corresponding to the current website to be monitored, which is redetermined by each detection node, is the website access off-network state, and at the moment, the website state of the website to be monitored is not changed, namely the website to be monitored is not recovered to be normal for 10 minutes, whether a state inconsistent with the website access off-network state exists in the website state for 5 times in history is further judged, if the state is not exists, the website to be monitored is indicated to be continuously in the website access off-network state, and a continuous off-network alarm prompt is sent; if the network access state exists, the condition that the network access is normal appears in the 5-time historical network state is indicated, and an intermittent network disconnection warning prompt is sent.
In this embodiment, if the target website state is a website access normal state, when the triggering duration of the alarm operation reaches 10 minutes, the website state to be analyzed corresponding to the current website to be monitored, which is redetermined by each detection node, is a website access disconnection state, and at this time, the website state of the website to be monitored is changed, so that the network recovery alarm prompt is not sent any more. If the target website state is the website access normal state, and when the triggering duration of the alarm operation reaches 10 minutes, the website state to be analyzed corresponding to the current website to be monitored is the website access normal state, which is redetermined by each detection node, and the website state of the website to be monitored is not changed at this time, namely the website to be monitored is continuously disconnected for 10 minutes, whether a state inconsistent with the website access normal state exists in the website states for 5 times or not is further judged, if the state is not exists, the website to be monitored is continuously in the website access normal state, and a continuous network recovery alarm prompt is sent; if the network station access abnormal state exists in the historical 5-time website state, the network station access abnormal state is indicated, and an intermittent network recovery alarm prompt is sent.
Therefore, the application monitors the availability of the multilink of the website to be monitored through a plurality of detection nodes, avoids the condition of easy false detection caused by adopting only one detection node, and improves the accuracy of determining the website state of the website to be monitored; in addition, whether the alarm operation is triggered or not is determined through the first ratio, whether the alarm reminding is sent or not is determined through the triggering duration of the alarm operation, the problem of frequent alarm caused by website fluctuation can be avoided, and the high reliability of website availability monitoring is improved.
Referring to fig. 2, the embodiment of the application discloses a website availability monitoring method, which is applied to a website availability monitoring engine and comprises the following steps:
the website availability monitoring engine comprises a configuration center, a task scheduling center, a scheduler and a processing center. The method comprises the steps of configuring monitoring engine strategy parameters including a preset response code range, a preset website state threshold value, a network disconnection alarm threshold value, a network recovery alarm threshold value, a preset time threshold value and a detection node cluster through a configuration center. And then, a monitoring task is newly established through the configuration center, a website to be monitored is designated, monitoring engine strategy parameters and a plurality of detection nodes are designated, and the monitoring task is issued to the task scheduling center. And receiving the monitoring task through the task scheduling center, and placing the monitoring task into an asynchronous task queue. Acquiring monitoring tasks from the asynchronous task queue through a scheduler according to a first-in first-out rule, determining a plurality of corresponding detection nodes from the detection node cluster based on the monitoring tasks, and determining corresponding websites to be monitored based on the monitoring tasks; and then executing a monitoring task to respectively send access requests to the websites to be monitored with normal domain name resolution through each detection node at preset time intervals so as to obtain response results.
And acquiring response results returned by the website to be monitored through the processing center, and determining website states corresponding to the response results respectively according to whether the response results meet a preset response code range, wherein the website states comprise a normal website access state and a website access disconnection state. And then determining the target website state of the website to be monitored according to the website states, calculating a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the detection nodes, and judging whether to trigger the alarm operation according to whether the first ratio is larger than an alarm threshold corresponding to the target website state. If the alarm operation is triggered, when the triggering duration of the alarm operation reaches a preset time threshold, the state of the website to be analyzed corresponding to the current website to be monitored is determined actively again through each detection node, and whether the state of the website to be analyzed is consistent with the state of the target website is judged. If the alarm reminding is inconsistent, the alarm reminding is not sent; if so, judging whether the website states inconsistent with the target website states exist in the historical website states for a plurality of times. If the website to be monitored is not in the target website state, sending an alarm prompt for representing that the website to be monitored is in the target website state continuously; if the website to be monitored is in the target website state, sending an alarm prompt for representing that the website to be monitored is in the target website state intermittently. If the target website state is a website access network disconnection state, the alarm reminding is a network disconnection alarm reminding; if the target website state is the normal website access state, the alarm reminding is a network recovery alarm reminding.
Therefore, the application monitors the availability of the multilink of the website to be monitored through a plurality of detection nodes, avoids the condition of easy false detection caused by adopting only one detection node, and improves the accuracy of determining the website state of the website to be monitored; in addition, whether the alarm operation is triggered or not is determined through the first ratio, whether the alarm reminding is sent or not is determined through the triggering duration of the alarm operation, the problem of frequent alarm caused by website fluctuation can be avoided, and the high reliability of website availability monitoring is improved.
Referring to fig. 3, an embodiment of the application discloses a website availability monitoring device, which is applied to a website availability monitoring engine, and comprises:
the access request sending module 11 is configured to determine a website to be monitored and a plurality of detection nodes based on a monitoring task, and periodically send an access request to the website to be monitored with normal domain name resolution through each detection node according to a preset time period;
a website state determining module 12, configured to obtain a response result returned by the website to be monitored, determine each website state based on each response result, and determine a target website state based on each website state;
an alarm operation triggering module 13, configured to determine whether to trigger an alarm operation based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes;
the alert reminder sending module 14 is configured to determine whether to send an alert reminder based on a comparison result of the target website state and the historical website states and a trigger duration of the alert operation if triggered.
Therefore, the application monitors the availability of the multilink of the website to be monitored through a plurality of detection nodes, avoids the condition of easy false detection caused by adopting only one detection node, and improves the accuracy of determining the website state of the website to be monitored; in addition, whether the alarm operation is triggered or not is determined through the first ratio, whether the alarm reminding is sent or not is determined through the triggering duration of the alarm operation, the problem of frequent alarm caused by website fluctuation can be avoided, and the high reliability of website availability monitoring is improved.
In some embodiments, the website availability monitoring device further comprises:
the information configuration unit is used for configuring the detection node cluster through a configuration center in the website availability detection engine and issuing the created monitoring task to a task scheduling center in the website availability detection engine;
and the monitoring task storage unit is used for receiving the monitoring task through the task scheduling center and placing the monitoring task into an asynchronous task queue.
In some specific embodiments, the access request sending module 11 includes:
and the monitoring task acquisition unit is used for acquiring the monitoring task from the asynchronous task queue through a scheduler in the website availability detection engine, determining a plurality of detection nodes from the detection node cluster based on the monitoring task, and determining a website to be monitored based on the monitoring task.
In some embodiments, the website status determination module 12 includes:
the response result judging unit is used for judging whether the response result meets a preset response code range or not; if yes, judging that the website state corresponding to the response result is a normal website access state; if not, judging that the website state corresponding to the response result is the website access disconnection state.
In some embodiments, the website status determination module 12 includes:
the ratio determining unit is used for counting the number of the website access offline states in the website states and determining a second ratio based on the number of the website access offline states and the total number of the website states;
the ratio judging unit is used for judging whether the second ratio is larger than a preset website state threshold value or not; if the access request is larger than the target website state, judging that the website access disconnection state is the target website state; and if the website access normal state is smaller than or equal to the target website state, judging that the website access normal state is the target website state.
In some specific embodiments, the alarm operation triggering module 13 includes:
the alarm operation triggering unit is used for determining a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes; and if the first ratio is greater than the alarm threshold corresponding to the state of the target website, triggering alarm operation.
In some embodiments, the alert reminder sending module 14 includes:
the target state judging unit is used for determining the state of the website to be analyzed corresponding to the current website to be monitored again through each detection node when the triggering duration of the alarm operation reaches a preset time threshold value, and judging whether the state of the website to be analyzed is consistent with the state of the target website or not;
a history state judging unit, configured to judge whether a website state inconsistent with the target website state exists in the plurality of historical website states if the historical website states are consistent;
the continuous alarm sending unit is used for sending alarm reminding used for representing that the website to be monitored is continuously in the target website state if the website to be monitored does not exist;
and the intermittent alarm sending unit is used for sending alarm reminding used for representing that the website to be monitored is in the state of the target website intermittently if the website to be monitored exists.
Further, the embodiment of the present application further discloses an electronic device, and fig. 4 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the diagram is not to be considered as any limitation on the scope of use of the present application.
Fig. 4 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the website availability monitoring method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the website availability monitoring method performed by the electronic device 20 disclosed in any of the embodiments described above.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by the processor implements the website availability monitoring method disclosed previously. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined rather broadly the more detailed description of the application in order that the detailed description of the application that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A website availability monitoring method, applied to a website availability monitoring engine, comprising:
determining a website to be monitored and a plurality of detection nodes based on a monitoring task, and periodically and respectively sending an access request to the website to be monitored with normal domain name resolution through each detection node according to a preset time period;
acquiring response results returned by the websites to be monitored, determining states of the websites based on the response results, and determining states of target websites based on the states of the websites;
determining whether to trigger an alarm operation or not based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes;
if so, determining whether to send an alarm prompt or not based on the comparison result of the target website state and the historical website states and the triggering duration of the alarm operation.
2. The method for monitoring availability of websites according to claim 1, wherein before determining the websites to be monitored and the probe nodes based on the monitoring task, the method further comprises:
configuring a detection node cluster through a configuration center in the website availability detection engine, and issuing a created monitoring task to a task scheduling center in the website availability detection engine;
and receiving the monitoring task through the task scheduling center, and placing the monitoring task into an asynchronous task queue.
3. The method for monitoring availability of websites according to claim 2, wherein the determining the websites to be monitored and the plurality of probe nodes based on the monitoring task comprises:
and acquiring the monitoring task from the asynchronous task queue through a scheduler in the website availability detection engine, determining a plurality of detection nodes from the detection node cluster based on the monitoring task, and determining a website to be monitored based on the monitoring task.
4. The method of claim 1, wherein determining the status of each website based on each response result comprises:
judging whether the response result meets a preset response code range or not;
if yes, judging that the website state corresponding to the response result is a normal website access state;
if not, judging that the website state corresponding to the response result is the website access disconnection state.
5. The method of claim 4, wherein said determining a target website state based on each of said website states comprises:
counting the number of the website access offline states in each website state, and determining a second ratio based on the number of the website access offline states and the total number of each website state;
judging whether the second ratio is larger than a preset website state threshold value or not;
if the access request is larger than the target website state, judging that the website access disconnection state is the target website state;
and if the website access normal state is smaller than or equal to the target website state, judging that the website access normal state is the target website state.
6. The website availability monitoring method according to claim 1, wherein the determining whether to trigger an alarm operation based on a first ratio between the number of target probe nodes corresponding to the target website state and the total number of the plurality of probe nodes includes:
determining a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes;
and if the first ratio is greater than the alarm threshold corresponding to the state of the target website, triggering alarm operation.
7. The method according to any one of claims 1 to 6, wherein the determining whether to send an alert reminder based on the comparison of the target website state and a plurality of historical website states and the trigger duration of the alert operation comprises:
when the triggering duration of the alarm operation reaches a preset time threshold, determining the state of the website to be analyzed corresponding to the current website to be monitored again through each detection node, and judging whether the state of the website to be analyzed is consistent with the state of the target website;
if so, judging whether the website states inconsistent with the target website state exist in the historical website states for a plurality of times;
if the website to be monitored is not in the target website state, sending an alarm prompt for representing that the website to be monitored is in the target website state continuously;
and if the website to be monitored is in the target website state, sending an alarm prompt for representing that the website to be monitored is in the target website state.
8. A website availability monitoring device, for use in a website availability monitoring engine, comprising:
the access request sending module is used for determining a website to be monitored and a plurality of detection nodes based on the monitoring task, and sending access requests to the website to be monitored with normal domain name resolution through the detection nodes periodically according to a preset time period;
the website state determining module is used for acquiring response results returned by the websites to be monitored, determining each website state based on each response result, and determining a target website state based on each website state;
the alarm operation triggering module is used for determining whether to trigger alarm operation or not based on a first ratio between the number of target detection nodes corresponding to the target website state and the total number of the plurality of detection nodes;
and the alarm reminding sending module is used for determining whether to send an alarm reminding or not based on the comparison result of the target website state and the historical website states of a plurality of times and the triggering duration of the alarm operation if the alarm reminding is triggered.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the website availability monitoring method of any one of claims 1 to 7.
10. A computer readable storage medium storing a computer program which when executed by a processor implements the website availability monitoring method of any of claims 1 to 7.
CN202311172444.9A 2023-09-12 2023-09-12 Website availability monitoring method, device, equipment and storage medium Pending CN117176614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311172444.9A CN117176614A (en) 2023-09-12 2023-09-12 Website availability monitoring method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311172444.9A CN117176614A (en) 2023-09-12 2023-09-12 Website availability monitoring method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117176614A true CN117176614A (en) 2023-12-05

Family

ID=88933418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311172444.9A Pending CN117176614A (en) 2023-09-12 2023-09-12 Website availability monitoring method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117176614A (en)

Similar Documents

Publication Publication Date Title
CN106961352B (en) Monitoring system and monitoring method
CN108572907B (en) Alarm method, alarm device, electronic equipment and computer readable storage medium
CN106557407B (en) Method and device for monitoring equipment load
CN102077511A (en) Message management and suppression in a monitoring system
CN106487612A (en) A kind of server node monitoring method, monitoring server and system
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
CN115150460B (en) Node security registration method, device, equipment and readable storage medium
CN113612647A (en) Alarm processing method and device
CN112702219B (en) Internet of things network monitoring method, device, equipment and storage medium
CN111611057A (en) Distributed retry method, device, electronic equipment and storage medium
CN113535344A (en) Network data processing method and device, server and storage medium
CN102932194B (en) Based on the internet, applications service monitoring system and method for bayes method
CN112148508B (en) Information processing method and related device
CN110119334B (en) Page script monitoring method and device
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN107612764B (en) Transmission network management data acquisition device and method
CN117176614A (en) Website availability monitoring method, device, equipment and storage medium
CN109710552B (en) Bus transmission quality evaluation method, system and computer storage medium
CN108023741B (en) Monitoring resource use method and server
CN114296979A (en) Method and device for detecting abnormal state of Internet of things equipment
CN108390770A (en) A kind of information generating method, device and server
US8458705B2 (en) Method and apparatus for preventing the omission and repeated execution of schedule information due to a time change
CN114389970A (en) Link monitoring method and device
CN114356719A (en) Internet of things service monitoring method, platform, electronic equipment and storage medium
CN109508356B (en) Data abnormality early warning method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination