CN104065725A - System real-time monitoring method based on hyper text transfer protocol (HTTP) and system - Google Patents
System real-time monitoring method based on hyper text transfer protocol (HTTP) and system Download PDFInfo
- Publication number
- CN104065725A CN104065725A CN201410291363.5A CN201410291363A CN104065725A CN 104065725 A CN104065725 A CN 104065725A CN 201410291363 A CN201410291363 A CN 201410291363A CN 104065725 A CN104065725 A CN 104065725A
- Authority
- CN
- China
- Prior art keywords
- module
- http
- monitoring
- page
- conditional code
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a system real-time monitoring method based on a hyper text transfer protocol (HTTP). The method comprises the following steps: (1) a page address needed to be monitored is received and stored, (2) a mobile phone number with the need of receiving a short message and other client addresses are received and stored, (3) a monitoring module sends a http request to the page address needed to be monitored, and the monitored page address sends a corresponding state code as a feedback, (4) the problem whether the state code is normal or not is judged, if so, a step (6) is executed, and if not a next step is executed, (5) alarm information is sent to the mobile phone number and the client addresses stored in a configuration alarm module, and the method is ended, (6) a time judging module judges whether a time difference after the monitoring module sends the http request is equal to a preset time value, if so, the step (3) is executed, and if not, the step (6) is executed with the interval of a fixed time. According to the method, the real-time monitoring of a system page is realized, the accuracy and timeliness of monitoring are improved, and the 7*24 hour operation of a system is ensured.
Description
Technical field
The present invention relates to system method for real-time monitoring and system based on http HTTP, belong to application system availability monitor field.
Background technology
For application system availability monitor, current technology can adopt monitoring deployment container to realize.As the application of disposing in the containers such as weblogic or tomcat, can whether exist and monitor for the server of application deployment, realize the availability monitor of application.Principle is: server exists system to use.But there are some problems in this monitor mode: 1. in the situation that process is ossified, server also can exist, therefore can not pinpoint the problems in time; 2. in application, process request and exist overstocked in the situation that, server also can exist, therefore can not pinpoint the problems in time.
Summary of the invention
Technical problem to be solved by this invention is, for the deficiencies in the prior art, provide a kind of state that can real-time monitoring system whether normal, system method for real-time monitoring and the system based on http HTTP of when there are abnormal conditions, by note, carrying out alarm.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: the system method for real-time monitoring based on http HTTP, specifically comprises the following steps:
Step 1: configuration page module receives and preserve the page address that need to monitor;
Step 2: the page address that monitoring module is monitored needs sends http request, and corresponding conditional code is fed back in monitored page address;
Step 3: judge module receives the conditional code of page address feedback, judges whether conditional code is normal, if so, and execution step 6; Otherwise, carry out next step;
Step 4: configuration alarm module receives and preserve phone number and other client address that need to receive note;
Step 5: the phone number that alarm module is preserved in alarm module according to configuration and client address send a warning message corresponding mobile phone and client, finish;
Step 6: time judgment module judges that monitoring module sends http request and whether equals Preset Time value to the time difference of current time afterwards; If so, return to execution step 3; Otherwise, interval set time execution step 6.
The invention has the beneficial effects as follows: the present invention realizes the real-time monitoring to the system page, promote the accuracy of monitoring and the row that lost efficacy; By issuing of alarm message, can make attendant's treatment system problem timely, guarantee system operation in 7*24 hour.
On the basis of technique scheme, the present invention can also do following improvement.
Further, the Preset Time value described in described step 6 is the monitoring period spacing value that sets in advance and be kept in configuration alarm module.
Further, in described step 4, judge module judges that according to the conditional code of feedback whether page info is available, while feeding back normal conditional code (as: 200), and representation page Information Availability;
While feeding back improper conditional code (as: non-200), representation page information is unavailable.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: the system real-time monitoring system based on http HTTP, comprises configuration page module, monitoring module, judge module, time judgment module, configuration alarm module and alarm module;
Described configuration page module receives and preserves the page address that need to monitor, and described page address is sent to monitoring module;
The page address that described monitoring module is monitored needs sends http request, and corresponding conditional code is fed back in monitored page address, and conditional code is sent to judge module;
Described judge module receives the conditional code that monitoring module sends, and judges whether conditional code is normal, and if so, the normal information of transmission state is to time judgment module; Otherwise, trigger alarm module;
Described time judgment module just triggers at interval of Preset Time value the page address transmission http request that monitoring module is monitored needs;
Described configuration alarm module receives and preserves phone number and other client address that need to receive note, and described phone number and client address are sent to alarm module;
Described alarm module, according to the triggering of judge module, sends a warning message to and configures phone number and the client address of preserving in alarm module.
On the basis of technique scheme, the present invention can also do following improvement.
Further, in described configuration alarm module, also preserve set in advance for controlling the Preset Time value at monitoring period interval, and described Preset Time value is sent to time judgment module.
Further, in described judge module, judge module judges that according to the conditional code of feedback whether page info is available, while feeding back normal conditional code (as: 200), and representation page Information Availability;
While feeding back improper conditional code (as: non-200), representation page information is unavailable.
Accompanying drawing explanation
Fig. 1 is the system method for real-time monitoring flow chart based on http HTTP described in the specific embodiment of the invention 1;
Fig. 2 is the system real-time monitoring system structured flowchart based on http HTTP described in the specific embodiment of the invention 2.
In accompanying drawing, the list of parts of each label representative is as follows:
1, configuration page module, 2, monitoring module, 3, judge module, 4, time judgment module, 5, configuration alarm module, 6, alarm module.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, the system method for real-time monitoring based on http HTTP for described in the specific embodiment of the invention 1, specifically comprises the following steps:
Step 1: configuration page module receives and preserve the page address that need to monitor;
Step 2: the page address that monitoring module is monitored needs sends http request, and corresponding conditional code is fed back in monitored page address;
Step 3: judge module receives the conditional code of page address feedback, judges whether conditional code is normal, if so, and execution step 6; Otherwise, carry out next step;
Step 4: configuration alarm module receives and preserve phone number and other client address that need to receive note;
Step 5: the phone number that alarm module is preserved in alarm module according to configuration and client address send a warning message corresponding mobile phone and client, finish;
Step 6: time judgment module judges that monitoring module sends http request and whether equals Preset Time value to the time difference of current time afterwards; If so, return to execution step 3; Otherwise, interval set time execution step 6.
Preset Time value described in described step 6 is the monitoring period spacing value that sets in advance and be kept in configuration alarm module.
In described step 4, judge module judges that according to the conditional code of feedback whether page info is available, while feeding back normal conditional code (as: 200), and representation page Information Availability;
While feeding back improper conditional code (as: non-200), representation page information is unavailable.
As shown in Figure 2, be the system real-time monitoring system based on http HTTP described in the specific embodiment of the invention 2, comprise configuration page module 1, monitoring module 2, judge module 3, time judgment module 4, configuration alarm module 5 and alarm module 6;
Described configuration page module 1 receives and preserves the page address that need to monitor, and described page address is sent to monitoring module 2;
The page address that 2 pairs of needs of described monitoring module are monitored sends http request, and corresponding conditional code is fed back in monitored page address, and conditional code is sent to judge module 3;
Described judge module 3 receives the conditional code that monitoring module sends, and judges whether conditional code is normal, and if so, the normal information of transmission state is to time judgment module 4; Otherwise, trigger alarm module 6;
Described time judgment module 4 just triggers at interval of Preset Time value the page address transmission http request that 2 pairs of needs of monitoring module are monitored;
Described configuration alarm module 5 receives and preserves phone number and other client address that need to receive note, and described phone number and client address are sent to alarm module 6;
Described alarm module 6, according to the triggering of judge module 3, sends a warning message to and configures phone number and the client address of preserving in alarm module 5.
In described configuration alarm module 5, also preserve set in advance for controlling the Preset Time value at monitoring period interval, and described Preset Time value is sent to time judgment module 4.
In described judge module 3, judge module judges that according to the conditional code of feedback whether page info is available, while feeding back normal conditional code (as: 200), and representation page Information Availability;
While feeding back improper conditional code (as: non-200), representation page information is unavailable, and expression system goes wrong, and cannot normally accept request.
It is of the present invention that to realize principle as follows:
Based on http principle, (client and server connects, user end to server end sends information, server end responds client, client, server disconnect), analog subscriber sends http request to application, and application is processed request, returned to response, and the conditional code of returning to response according to application judges that whether information is available, return code is 200 o'clock, and system can be used.Return code is non-200 o'clock, and system is unavailable.When system is unavailable, by note, carry out alarm.
Step is as follows:
1. configuration needs the system page address of monitoring;
2. configuration need to issue attendant's phone number of alarm message;
3. the http request access application system page is initiated at fixed time interval;
4. judgement http asks return state code, as is 200, enters step 3.Non-200, enter step 5;
5. call note and issue interface, warning content is handed down to the phone number of configuration by note.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (6)
1. the system method for real-time monitoring based on http HTTP, is characterized in that, specifically comprises the following steps:
Step 1: configuration page module receives and preserve the page address that need to monitor;
Step 2: the page address that monitoring module is monitored needs sends http request, and corresponding conditional code is fed back in monitored page address;
Step 3: judge module receives the conditional code of page address feedback, judges whether conditional code is normal, if so, and execution step 6; Otherwise, carry out next step;
Step 4: configuration alarm module receives and preserve phone number and other client address that need to receive note;
Step 5: the phone number that alarm module is preserved in alarm module according to configuration and client address send a warning message corresponding mobile phone and client, finish;
Step 6: time judgment module judges that monitoring module sends http request and whether equals Preset Time value to the time difference of current time afterwards; If so, return to execution step 3; Otherwise, interval set time execution step 6.
2. the system method for real-time monitoring based on http HTTP according to claim 1, is characterized in that, the Preset Time value described in described step 6 is the monitoring period spacing value that sets in advance and be kept in configuration alarm module.
3. the system method for real-time monitoring based on http HTTP according to claim 1 and 2, it is characterized in that, in described step 4, judge module judges that according to the conditional code of feedback whether page info is available, while feeding back normal conditional code (as: 200), representation page Information Availability;
While feeding back improper conditional code (as: non-200), representation page information is unavailable.
4. the system real-time monitoring system based on http HTTP, is characterized in that, comprises configuration page module, monitoring module, judge module, time judgment module, configuration alarm module and alarm module;
Described configuration page module receives and preserves the page address that need to monitor, and described page address is sent to monitoring module;
The page address that described monitoring module is monitored needs sends http request, and corresponding conditional code is fed back in monitored page address, and conditional code is sent to judge module;
Described judge module receives the conditional code that monitoring module sends, and judges whether conditional code is normal, and if so, the normal information of transmission state is to time judgment module; Otherwise, trigger alarm module;
Described time judgment module just triggers at interval of Preset Time value the page address transmission http request that monitoring module is monitored needs;
Described configuration alarm module receives and preserves phone number and other client address that need to receive note, and described phone number and client address are sent to alarm module;
Described alarm module, according to the triggering of judge module, sends a warning message to and configures phone number and the client address of preserving in alarm module.
5. the system real-time monitoring system based on http HTTP according to claim 4, it is characterized in that, in described configuration alarm module, also preserve set in advance for controlling the Preset Time value at monitoring period interval, and described Preset Time value is sent to time judgment module.
6. according to the system real-time monitoring system based on http HTTP described in claim 4 or 5, it is characterized in that, in described judge module, judge module judges that according to the conditional code of feedback whether page info is available, while feeding back normal conditional code (as: 200), representation page Information Availability;
While feeding back improper conditional code (as: non-200), representation page information is unavailable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410291363.5A CN104065725A (en) | 2014-06-25 | 2014-06-25 | System real-time monitoring method based on hyper text transfer protocol (HTTP) and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410291363.5A CN104065725A (en) | 2014-06-25 | 2014-06-25 | System real-time monitoring method based on hyper text transfer protocol (HTTP) and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104065725A true CN104065725A (en) | 2014-09-24 |
Family
ID=51553252
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410291363.5A Pending CN104065725A (en) | 2014-06-25 | 2014-06-25 | System real-time monitoring method based on hyper text transfer protocol (HTTP) and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104065725A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107124309A (en) * | 2017-04-28 | 2017-09-01 | 福建中金在线信息科技有限公司 | The monitoring method and website processor of a kind of domain name addresses state |
CN108134708A (en) * | 2016-12-01 | 2018-06-08 | 腾讯科技(深圳)有限公司 | The method and apparatus for monitoring third party's interface |
CN108900632A (en) * | 2018-07-28 | 2018-11-27 | 安徽捷兴信息安全技术有限公司 | A kind of monitoring method and device of mobile phone transmission HTTPS data |
CN110224870A (en) * | 2019-06-19 | 2019-09-10 | 腾讯云计算(北京)有限责任公司 | Interface monitoring method, apparatus calculates equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2458903A1 (en) * | 2009-09-04 | 2012-05-30 | ZTE Corporation | System and method for filtering long short message |
CN102624570A (en) * | 2012-04-27 | 2012-08-01 | 杭州东信北邮信息技术有限公司 | Monitoring system and method for detecting availability of web server |
CN103067230A (en) * | 2013-01-23 | 2013-04-24 | 江苏天智互联科技有限公司 | Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code |
CN103729477A (en) * | 2014-01-26 | 2014-04-16 | 飞狐信息技术(天津)有限公司 | Webpage data format detection method and device |
-
2014
- 2014-06-25 CN CN201410291363.5A patent/CN104065725A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2458903A1 (en) * | 2009-09-04 | 2012-05-30 | ZTE Corporation | System and method for filtering long short message |
CN102624570A (en) * | 2012-04-27 | 2012-08-01 | 杭州东信北邮信息技术有限公司 | Monitoring system and method for detecting availability of web server |
CN103067230A (en) * | 2013-01-23 | 2013-04-24 | 江苏天智互联科技有限公司 | Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code |
CN103729477A (en) * | 2014-01-26 | 2014-04-16 | 飞狐信息技术(天津)有限公司 | Webpage data format detection method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108134708A (en) * | 2016-12-01 | 2018-06-08 | 腾讯科技(深圳)有限公司 | The method and apparatus for monitoring third party's interface |
CN108134708B (en) * | 2016-12-01 | 2021-05-25 | 腾讯科技(深圳)有限公司 | Method and device for monitoring third-party interface |
CN107124309A (en) * | 2017-04-28 | 2017-09-01 | 福建中金在线信息科技有限公司 | The monitoring method and website processor of a kind of domain name addresses state |
CN108900632A (en) * | 2018-07-28 | 2018-11-27 | 安徽捷兴信息安全技术有限公司 | A kind of monitoring method and device of mobile phone transmission HTTPS data |
CN108900632B (en) * | 2018-07-28 | 2021-04-27 | 安徽捷兴信息安全技术有限公司 | Monitoring method and device for HTTPS data transmission of mobile phone |
CN110224870A (en) * | 2019-06-19 | 2019-09-10 | 腾讯云计算(北京)有限责任公司 | Interface monitoring method, apparatus calculates equipment and storage medium |
CN110224870B (en) * | 2019-06-19 | 2023-03-24 | 腾讯云计算(北京)有限责任公司 | Interface monitoring method and device, computing equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107689988B (en) | Message pushing method and device, electronic equipment and terminal equipment | |
US20210036907A1 (en) | Methods and apparatuses for pushing a message | |
CN104320425A (en) | Method and device for receiving and sending message | |
CN103634409A (en) | Method and system for realizing always-online internet application | |
CN104065725A (en) | System real-time monitoring method based on hyper text transfer protocol (HTTP) and system | |
CN102761864A (en) | Data transmission method, system and device | |
WO2008087428A8 (en) | A facilitating arrangement in a communication system | |
EP2908497B1 (en) | Method, device and system for remote management of terminal peripheral | |
CN104881279A (en) | Mass messaging method and device | |
CN104135571A (en) | Method of setting heartbeat timer, terminal and server | |
CN105812405B (en) | A kind of method, apparatus and system handling message | |
CN103685357A (en) | Account multi-open message processing method and system | |
CN103873691A (en) | Method, client and server prompting user to charge | |
EP2943881A1 (en) | Systems and methods for device-to-cloud message delivery | |
CN103297937A (en) | Method, system and device for achieving short message notification | |
CN205283611U (en) | End and server end news information will be moved and synchronous device will be carried out | |
US20140068048A1 (en) | Managing remote devices | |
CN105450365A (en) | Message-sending device and method, message-receiving device and method, and message interaction system | |
CN101854369A (en) | Remote information notification system and method | |
CN104301352B (en) | The adaptation method and device of double-terminal | |
CN104486443A (en) | Message pushing system and method | |
CN104093199A (en) | Timer setting method and terminal | |
CN103440145A (en) | Method and device for updating application programs and mobile terminal | |
CN104144393A (en) | Memo information reminding method and device | |
CN102685155A (en) | Content delivery method, content delivery server and content delivery proxy server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140924 |