CN104767653B - A kind of method and apparatus of network interface monitoring - Google Patents
A kind of method and apparatus of network interface monitoring Download PDFInfo
- Publication number
- CN104767653B CN104767653B CN201510047008.8A CN201510047008A CN104767653B CN 104767653 B CN104767653 B CN 104767653B CN 201510047008 A CN201510047008 A CN 201510047008A CN 104767653 B CN104767653 B CN 104767653B
- Authority
- CN
- China
- Prior art keywords
- network interface
- monitoring
- monitored
- destination server
- priority
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present disclosure is the method and apparatus monitored about a kind of network interface, belongs to Internet technical field.The method includes:In the access log of destination server, obtains every and access the network interface being accessed in record;Duplicate removal processing is carried out to the network interface of acquisition, using remaining network interface after duplicate removal processing as network interface to be monitored;Network interface monitoring is carried out to the network interface to be monitored.Using the disclosure, the reliability of system can be improved.
Description
Technical field
The disclosure is directed to Internet technical fields, especially with respect to a kind of method and apparatus of network interface monitoring.
Background technology
With the rapid development of network technology, internet has been obtained quickly universal and has been widely applied, and is had become
Indispensable tool in people's Working Life.Website server in internet can externally provide many network interfaces, can claim
Make REST API (Representational State Transfer Application Programming Interface,
Representative state shifts application programming interface), the data for accessing the Website server, for example, network interface can be with
It is the network address for the webpage that Website server provides.
The O&M engineer of Website server can use certain method to be monitored local each network interface, general
Method is to obtain each network interface of Website server from Developmental Engineer, run on certain monitor terminal and write in advance
Monitoring script, pseudo-terminal accesses these network interfaces, and judges number according to the data content or data structure of returned data
According to whether normally, if it find that abnormal then alarm.
Invention content
Present disclose provides a kind of method and apparatus of network interface monitoring.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method of network interface monitoring is provided, the method includes:
In the access log of destination server, obtains every and access the network interface being accessed in record;
Duplicate removal processing is carried out to the network interface of acquisition, using remaining network interface after duplicate removal processing as net to be monitored
Network interface;
Network interface monitoring is carried out to the network interface to be monitored.
Optionally, described in the access log of destination server, it obtains the network being accessed in every access record and connects
Mouthful, including:
Whenever reaching the preset period, in the access log of the destination server, obtain in nearest a cycle
Every access record in be accessed network interface.
Optionally, described that network interface monitoring is carried out to the network interface to be monitored, including:
Total visit capacity of the visit capacity in the accessed network interface of each network interface to be monitored is obtained respectively
In shared ratio value;
According to the corresponding ratio value of each network interface to be monitored, each corresponding prison of network interface to be monitored is determined
Control priority;
According to each corresponding monitoring priority of network interface to be monitored, to the network interface to be monitored into
Row network interface monitors.
Optionally, described that network interface monitoring is carried out to the network interface to be monitored, including:
Each of the destination server storage network interface corresponding data update time to be monitored is obtained respectively;
According to each network interface to be monitored corresponding data update time, each network interface pair to be monitored is determined
The monitoring priority answered;
According to each corresponding monitoring priority of network interface to be monitored, to the network interface to be monitored into
Row network interface monitors.
Optionally, described according to each corresponding monitoring priority of network interface to be monitored, to described to be monitored
Network interface carry out network interface monitoring, including:
According to each corresponding monitoring priority of network interface to be monitored, each network interface to be monitored is determined
Corresponding monitoring frequency and monitoring order information;
According to each corresponding monitoring frequency of network interface to be monitored and monitoring order information, to described to be monitored
Network interface carry out network interface monitoring.
According to the second aspect of the embodiment of the present disclosure, a kind of device of network interface monitoring is provided, described device includes:
Acquisition module accesses the network being accessed in record in the access log of destination server, obtaining every
Interface;
Processing module carries out duplicate removal processing, by remaining network interface after duplicate removal processing for the network interface to acquisition
As network interface to be monitored;
Monitoring module, for carrying out network interface monitoring to the network interface to be monitored.
Optionally, the acquisition module, is used for:
Whenever reaching the preset period, in the access log of the destination server, obtain in nearest a cycle
Every access record in be accessed network interface.
Optionally, the monitoring module, including:
Acquisition submodule, for obtaining the visit capacity of each network interface to be monitored respectively in the accessed network
Shared ratio value in total visit capacity of interface;
Determination sub-module, for according to each corresponding ratio value of network interface to be monitored, determining each to be monitored
The corresponding monitoring priority of network interface;
Monitoring submodule, for according to each corresponding monitoring priority of network interface to be monitored, waiting for described
The network interface of monitoring carries out network interface monitoring.
Optionally, the monitoring module, including:
Acquisition submodule, it is corresponding for obtaining each of described destination server storage network interface to be monitored respectively
The data update time;
Determination sub-module, for according to each network interface corresponding data update time to be monitored, determination each to wait for
The corresponding monitoring priority of network interface of monitoring;
Monitoring submodule, for according to each corresponding monitoring priority of network interface to be monitored, waiting for described
The network interface of monitoring carries out network interface monitoring.
Optionally, monitoring submodule, including:
Determination unit, for according to each corresponding monitoring priority of network interface to be monitored, determination each to wait for
The corresponding monitoring frequency of network interface and monitoring order information of monitoring;
Monitoring unit, for believing according to each corresponding monitoring frequency of network interface to be monitored and monitoring sequence
Breath carries out network interface monitoring to the network interface to be monitored.
According to the third aspect of the embodiment of the present disclosure, a kind of device of network interface monitoring is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
In the access log of destination server, obtains every and access the network interface being accessed in record;
Duplicate removal processing is carried out to the network interface of acquisition, using remaining network interface after duplicate removal processing as net to be monitored
Network interface;
Network interface monitoring is carried out to the network interface to be monitored.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure, in the access log of destination server, obtains every and access the net being accessed in record
Network interface carries out duplicate removal processing, using remaining network interface after duplicate removal processing as net to be monitored to the network interface of acquisition
Network interface carries out network interface monitoring to network interface to be monitored.The access of destination server is recorded by user, is determined
Network interface set by destination server is notified without Developmental Engineer to O&M engineer with carrying out network interface monitoring
The network interface of destination server can prevent the case where network interface failure can not alert in time caused by leaking notice from sending out
It is raw, it is thus possible to improve the reliability of system.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for network interface monitoring shown according to an exemplary embodiment;
Fig. 2 is a kind of schematic diagram of implementation procedure shown according to an exemplary embodiment;
Fig. 3 is a kind of apparatus structure schematic diagram of network interface monitoring shown according to an exemplary embodiment;
Fig. 4 is a kind of apparatus structure schematic diagram of network interface monitoring shown according to an exemplary embodiment;
Fig. 5 is a kind of apparatus structure schematic diagram of network interface monitoring shown according to an exemplary embodiment;
Fig. 6 is a kind of structural schematic diagram of monitoring device shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Embodiment one
The embodiment of the present disclosure provides a kind of method of network interface monitoring, as shown in Figure 1, the process flow of this method
It may include following step:
In a step 101, it in the access log of destination server, obtains the network being accessed in every access record and connects
Mouthful.
In a step 102, duplicate removal processing is carried out to the network interface of acquisition, remaining network interface after duplicate removal processing is made
For network interface to be monitored.
In step 103, network interface monitoring is carried out to network interface to be monitored.
In the embodiment of the present disclosure, in the access log of destination server, obtains every and access the net being accessed in record
Network interface carries out duplicate removal processing, using remaining network interface after duplicate removal processing as net to be monitored to the network interface of acquisition
Network interface carries out network interface monitoring to network interface to be monitored.The access of destination server is recorded by user, is determined
Network interface set by destination server is notified without Developmental Engineer to O&M engineer with carrying out network interface monitoring
The network interface of destination server can prevent the case where network interface failure can not alert in time caused by leaking notice from sending out
It is raw, it is thus possible to improve the reliability of system.
Embodiment two
The embodiment of the present disclosure provides a kind of method of network interface monitoring, and this method can be used for executing monitoring function
In monitoring device (such as monitor terminal, monitoring server), network interface monitoring can be carried out to destination server.Destination service
Device can be Website server, can also be the background server etc. of application program.In the present embodiment, it is prison with executive agent
Control terminal, and by taking destination server is certain Website server as an example, the detailed description of scheme is carried out, other situations are similar therewith,
The present embodiment no longer carries out tired state.Wherein, monitor terminal can be arbitrary computer.
Below in conjunction with embodiment, process flow shown in FIG. 1 is described in detail, content can be as follows:
In a step 101, it in the access log of destination server, obtains the network being accessed in every access record and connects
Mouthful.
Wherein, access log is that destination server is recorded when terminal through internet accesses to destination server
Daily record, access log can be stored in destination server in the form of journal file, can be recorded and be formed by a plurality of access, often
Item accesses the primary access of record counterpart terminal.
In force, it after certain Website server (i.e. destination server) reaches the standard grade work, has a large amount of user and accesses phase
The website answered.The Website server can be provided with a large amount of page, such as website homepage, website subpage frames at different levels, each page
Face is all corresponding to be provided with corresponding link.User may click chain different in the page during accessing the website
It connects, at this point, can then trigger its terminal obtains the corresponding network interface of the link in web data, such as URL (Uniform
Resoure Locator, uniform resource locator), it is asked based on the page for carrying the network interface is sent to Website server
It asks, after Website server receives page request, parses the network interface wherein carried, obtain corresponding page data and be sent to
Terminal carries out the page and shows, and increases by one in access log and access record, records the relevant information of this visit, such as accesses
Time (time for receiving page request), network interface, terminal address etc..
For example, certain user hits the link of sports channel at Sina's net home page midpoint, terminal can then take to the website of Sina website
Business device sends the page request of the sports channel page, wherein carrying http:The URL of //sports.sina.com.cn/, should
URL is network interface, and network server can return to corresponding page data, and record access after receiving page request to terminal
Daily record.
When needing to carry out network interface monitoring, monitor terminal can send log query request, net to network server
Network server can obtain every and access and remember in record after receiving log query request in the access log of its record
These network interfaces are sent to monitor terminal by the network interface of record.At this point, monitor terminal then gets the visit of network server
Ask that every accesses the accessed network interface recorded in daily record.
Optionally, network interface monitoring can be carried out according to certain period, correspondingly, the processing procedure of step 101 can
With as follows:Whenever reaching the preset period, in the access log of destination server, every in nearest a cycle is obtained
Access the network interface being accessed in record.
In force, a cycle can be arranged in O&M engineer in monitor terminal, be used for the acquisition of network interface, should
Period can be configured according to the concrete condition of network server, and network server network interface is updated frequently, and visit
The larger situation of the amount of asking can set the period to shorter numerical value, prevent the network interface got from not used, right
It is less in the update of network server network interface, and the situation that visit capacity is smaller, it can will be set as longer numerical value the period, prevent
Only certain network interfaces can not be got.After network server is reached the standard grade, whenever reaching this period, monitor terminal can be to net
Network server sends log query request, can be in the access day of its storage after network server receives log query request
In will, the network interface recorded in the access record in nearest a cycle is obtained, monitor terminal is sent to.
For example, the period is 1 day, network server often passes through 1 day time after reaching the standard grade, and monitor terminal then can be to network server
Log query request is sent, network server then can obtain the network interface in the access record in 1 day in access log,
It is sent to monitor terminal.
In a step 102, duplicate removal processing is carried out to the network interface of acquisition, remaining network interface after duplicate removal processing is made
For network interface to be monitored.
Wherein, duplicate removal processing is to get rid of the network interface of redundance, is only retained identical network interface therein
One.
In force, monitor terminal can be searched wherein after getting a large amount of network interface in network server
Identical network interface deletes the network interface repeated, for multiple identical network interfaces, only retains wherein
One.After above-mentioned processing, the remaining mutually different multiple network interfaces of network interface of acquisition, at this point it is possible to
Using this multiple network interface as network interface to be monitored.It is possible to further which network interface to be monitored is recorded in finger
In fixed file, such as xml document of entitled apimap.In this document, each network interface note to be monitored can also be corresponded to
Some relevant attribute informations are recorded, for example, each network interface to be monitored can be recorded in this document all accessed
Network interface in shared ratio value, the corresponding data of each network interface to be monitored can also be recorded in this document more
New time, network interface corresponding data update time are the last update by the data of the network interface access
Time.For example, the format of apimap files can be as follows:
<Urlset xmlns=" REST API address lists ">
<url>
<loc>The addresses REST API</loc>
<lastmod>2005-06-03T04:20-08:00</lastmod>
<priority>0.1</priority>
</url>
<url>
<loc>The addresses REST API</loc>
<lastmod>2005-06-02T20:20:36Z</lastmod>
<priority>0.8</priority>
</url>
</urlset>
Wherein, " priority " can indicate the visit capacity of some network interface to be monitored in accessed network interface
Total visit capacity in shared ratio value, for example, the visit capacity of certain day (a cycle) all-network interface is 10000, some
Network interface http:The visit capacity of //www.example.com/article/1.html is 1000, then priority is 0.1.
" lastmod " can indicate the network interface to be monitored corresponding data update time.
In destination server, storage system maintenance can be carried out to the data update time of each network interface, when new net
After network interface enables, destination server can store a kind of MD5 codes (common data of the corresponding page data of the network interface
Condition code), if receiving the page request of the corresponding network interface, destination server if can record the network interface just
Secondary access time, as the network interface the data update time (in the case of visit capacity is larger this maiden visit time and
This data update time is very close, it is believed that identical), the page request of the corresponding network interface is subsequently received every time,
Destination server can calculate MD5 codes to the page data of return, and compared with the MD5 codes stored before, if there is a change,
The time of this page request is then recorded as to the new data update time of the network interface.
In step 103, network interface monitoring is carried out to network interface to be monitored.
In force, monitor terminal can read the file of above-mentioned storage network interface to be monitored, then, for each
Network interface to be monitored, monitor terminal can be sent by certain frequency to destination server and corresponded to the terminal of analog subscriber
The page request of each network interface to be monitored, the data then fed back according to destination server judge corresponding network interface
It is whether normal, specifically, the conditional code in feedback data can be obtained first, judge if conditional code is not 200 or 304 corresponding
Network interface occur abnormal, can alarm, can continue to judge feedback data if conditional code is 200 or 304
Whether data structure meets preset data structure feature, if it is satisfied, then judging that corresponding network interface is normal, can keep
Continue to monitor, if conditions are not met, it is abnormal then to judge that corresponding network interface occurs, can alarm.As shown in Fig. 2, being this
From page request to record access daily record in inventive embodiments, then to generation apimap files, then arrives and carry out network interface monitoring
Entire implementation procedure schematic diagram.
Optionally, different monitoring priority can be arranged for different network interfaces in monitor terminal, and based on different
Monitoring priority is monitored different network interfaces, and the method for setting monitoring priority can be varied, is given below
Several optional processing modes:
Mode one obtains total access of the visit capacity in accessed network interface of each network interface to be monitored respectively
Shared ratio value in amount;According to the corresponding ratio value of each network interface to be monitored, determine that each network to be monitored connects
The corresponding monitoring priority of mouth;According to the corresponding monitoring priority of each network interface to be monitored, network to be monitored is connect
Mouth carries out network interface monitoring.
In force, monitor terminal can obtain the access of each network interface to be monitored from above-mentioned apimap files
Shared ratio value in total visit capacity of accessed network interface, i.e., the numerical value of above-mentioned priority are measured, alternatively, monitoring is eventually
End can also access the total amount quantity for accessing record corresponding with each network interface to be monitored recorded according to acquisition,
Calculate separately the visit capacity of each network interface to be monitored ratio shared in total visit capacity of accessed network interface
Value.Then excellent for each network interface setting monitoring to be monitored according to each corresponding ratio value of network interface to be monitored
First grade can be that higher monitoring priority is arranged in the corresponding higher network interface of ratio value, for the corresponding lower net of ratio value
Lower monitoring priority is arranged in network interface, in this way, the higher network interface of rate of people logging in then can be monitored preferentially, can more and
When discovery its there are the problem of.
Mode two, when obtaining the corresponding data update of each of destination server storage network interface to be monitored respectively
Between;According to each network interface to be monitored corresponding data update time, determine that each network interface to be monitored is corresponding
Monitor priority;According to the corresponding monitoring priority of each network interface to be monitored, net is carried out to network interface to be monitored
Network interface monitoring.
In force, it is corresponding can to obtain each network interface to be monitored from above-mentioned apimap files for monitor terminal
Data update time, i.e., the numerical value of above-mentioned lastmod, alternatively, monitor terminal can also obtain its storage from destination server
Each of the network interface corresponding data update time to be monitored.Then according to each corresponding number of network interface to be monitored
It can be later for corresponding data renewal time for each network interface setting monitoring priority to be monitored according to renewal time
Higher monitoring priority is arranged in network interface, can be that corresponding data renewal time, lower prison was arranged in network interface earlier
Priority is controlled, in this way, the network interface of the new newer page then can be monitored preferentially, because, what this kind of page went wrong
Possibility bigger.
Optionally, can be that monitoring frequency and monitoring sequence is arranged in network interface according to monitoring priority, it is corresponding to handle
Process can be as follows:According to the corresponding monitoring priority of each network interface to be monitored, determine that each network to be monitored connects
The corresponding monitoring frequency of mouth and monitoring order information;According to the corresponding monitoring frequency of each network interface to be monitored and monitor suitable
Sequence information carries out network interface monitoring to network interface to be monitored.
Wherein, monitoring order information can be monitoring serial number etc..
In force, for the later network interface of the higher network interface of visit capacity or data update time, Ke Yishe
Higher monitoring frequency is set, that is, the shorter monitoring period is set, for the lower network interface of visit capacity or data update time
Network interface earlier, can be arranged lower monitoring frequency, that is, the longer monitoring period is arranged.Meanwhile it can be based on accessing
Amount and data renewal time arrange the monitoring sequence of network interface, the monitoring serial number of network interface are determined, when more
When a network interface needs to send the page request for monitoring simultaneously, it can be compiled according to the monitoring sequence of each network interface
Number, sequence sends page request, to realize monitoring.
In the embodiment of the present disclosure, in the access log of destination server, obtains every and access the net being accessed in record
Network interface carries out duplicate removal processing, using remaining network interface after duplicate removal processing as net to be monitored to the network interface of acquisition
Network interface carries out network interface monitoring to network interface to be monitored.The access of destination server is recorded by user, is determined
Network interface set by destination server is notified without Developmental Engineer to O&M engineer with carrying out network interface monitoring
The network interface of destination server can prevent the case where network interface failure can not alert in time caused by leaking notice from sending out
It is raw, it is thus possible to improve the reliability of system.
Embodiment three
Based on the same technical idea, the embodiment of the present disclosure additionally provides a kind of device of network interface monitoring, such as Fig. 3 institutes
Show, which includes:Acquisition module 310, processing module 320 and monitoring module 330.
Acquisition module 310 accesses the net being accessed in record in the access log of destination server, obtaining every
Network interface;
Processing module 320 carries out duplicate removal processing for the network interface to acquisition, remaining network after duplicate removal processing is connect
Mouth is as network interface to be monitored;
Monitoring module 330, for carrying out network interface monitoring to the network interface to be monitored.
Optionally, the acquisition module, is used for:
Whenever reaching the preset period, in the access log of the destination server, obtain in nearest a cycle
Every access record in be accessed network interface.
Optionally, as shown in figure 4, the monitoring module 330, including:
Acquisition submodule 331, for obtaining the visit capacity of each network interface to be monitored respectively described accessed
Shared ratio value in total visit capacity of network interface;
Determination sub-module 332, for according to each corresponding ratio value of network interface to be monitored, determining each to be monitored
The corresponding monitoring priority of network interface;
Monitoring submodule 333 is used for according to each corresponding monitoring priority of network interface to be monitored, to described
Network interface to be monitored carries out network interface monitoring.
Optionally, as shown in figure 4, the monitoring module 330, including:
Acquisition submodule 331, for obtaining each of destination server storage network interface pair to be monitored respectively
The data update time answered;
Determination sub-module 332, for according to each network interface corresponding data update time to be monitored, determining each
The corresponding monitoring priority of network interface to be monitored;
Monitoring submodule 333 is used for according to each corresponding monitoring priority of network interface to be monitored, to described
Network interface to be monitored carries out network interface monitoring.
Optionally, as shown in figure 5, monitoring submodule 333, including:
Determination unit 333a, for according to each corresponding monitoring priority of network interface to be monitored, determining every
The corresponding monitoring frequency of a network interface to be monitored and monitoring order information;
Monitoring unit 333b, for according to each corresponding monitoring frequency of network interface to be monitored and monitoring sequence
Information carries out network interface monitoring to the network interface to be monitored.
In the embodiment of the present disclosure, in the access log of destination server, obtains every and access the net being accessed in record
Network interface carries out duplicate removal processing, using remaining network interface after duplicate removal processing as net to be monitored to the network interface of acquisition
Network interface carries out network interface monitoring to network interface to be monitored.The access of destination server is recorded by user, is determined
Network interface set by destination server is notified without Developmental Engineer to O&M engineer with carrying out network interface monitoring
The network interface of destination server can prevent the case where network interface failure can not alert in time caused by leaking notice from sending out
It is raw, it is thus possible to improve the reliability of system.
It should be noted that:Above-described embodiment provide unlock administration authority device when unlocking administration authority, only with
The division progress of above-mentioned each function module, can be as needed and by above-mentioned function distribution by not for example, in practical application
Same function module is completed, i.e., the internal structure of device is divided into different function modules, to complete whole described above
Or partial function.In addition, the device for the unlock administration authority that above-described embodiment provides and the method for unlock administration authority are implemented
Example belongs to same design, and specific implementation process refers to embodiment of the method, and which is not described herein again.
Example IV
Fig. 6 is a kind of block diagram of device 1900 for network interface monitoring shown according to an exemplary embodiment.Example
Such as, device 1900 may be provided as a server.With reference to Fig. 6, device 1900 includes processing component 1922, is further comprised
One or more processors and memory resource represented by a memory 1932, can be by processing component 1922 for storing
Execution instruction, such as application program.The application program stored in memory 1932 may include one or more
Each corresponds to the module of one group of instruction.In addition, processing component 1922 is configured as executing instruction, connect with executing above-mentioned network
The method of mouth monitoring.
Device 1900 can also include that a power supply module 1926 be configured as the power management of executive device 1900, one
Wired or wireless network interface 1950 is configured as device 1900 being connected to network and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the embodiment of the present disclosure, in the access log of destination server, obtains every and access the net being accessed in record
Network interface carries out duplicate removal processing, using remaining network interface after duplicate removal processing as net to be monitored to the network interface of acquisition
Network interface carries out network interface monitoring to network interface to be monitored.The access of destination server is recorded by user, is determined
Network interface set by destination server is notified without Developmental Engineer to O&M engineer with carrying out network interface monitoring
The network interface of destination server can prevent the case where network interface failure can not alert in time caused by leaking notice from sending out
It is raw, it is thus possible to improve the reliability of system.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (7)
1. a kind of method of network interface monitoring, which is characterized in that the method includes:
In the access log of destination server, obtains every and access the network interface being accessed in record;
Duplicate removal processing is carried out to the network interface of acquisition, remaining network interface after duplicate removal processing is connect as network to be monitored
Mouthful;
Each of the destination server storage network interface corresponding data update time to be monitored is obtained respectively;
According to each network interface to be monitored corresponding data update time, determine that each network interface to be monitored is corresponding
Monitor priority;
According to each corresponding monitoring priority of network interface to be monitored, net is carried out to the network interface to be monitored
Network interface monitoring.
2. according to the method described in claim 1, it is characterized in that, described in the access log of destination server, acquisition is every
Item accesses the network interface being accessed in record, including:
Whenever reaching the preset period, in the access log of the destination server, obtain every in nearest a cycle
Item accesses the network interface being accessed in record.
3. according to the method described in claim 1, it is characterized in that, described correspond to according to each network interface to be monitored
Monitoring priority, network interface monitoring is carried out to the network interface to be monitored, including:
According to each corresponding monitoring priority of network interface to be monitored, determine that each network interface to be monitored corresponds to
Monitoring frequency and monitoring order information;
According to each corresponding monitoring frequency of network interface to be monitored and monitoring order information, to the net to be monitored
Network interface carries out network interface monitoring.
4. a kind of device of network interface monitoring, which is characterized in that described device includes:
Acquisition module accesses the network interface being accessed in record in the access log of destination server, obtaining every;
Processing module, for carrying out duplicate removal processing to the network interface of acquisition, using remaining network interface after duplicate removal processing as
Network interface to be monitored;
Monitoring module, including acquisition submodule, determination sub-module and monitoring submodule,
The acquisition submodule, it is corresponding for obtaining each of described destination server storage network interface to be monitored respectively
The data update time;
The determination sub-module, for according to each network interface corresponding data update time to be monitored, determination each to wait for
The corresponding monitoring priority of network interface of monitoring;
The monitoring submodule, for according to each corresponding monitoring priority of network interface to be monitored, waiting for described
The network interface of monitoring carries out network interface monitoring.
5. device according to claim 4, which is characterized in that the acquisition module is used for:
Whenever reaching the preset period, in the access log of the destination server, obtain every in nearest a cycle
Item accesses the network interface being accessed in record.
6. device according to claim 4, which is characterized in that monitoring submodule, including:
Determination unit, for according to each corresponding monitoring priority of network interface to be monitored, determining each to be monitored
The corresponding monitoring frequency of network interface and monitoring order information;
Monitoring unit is used for according to each corresponding monitoring frequency of network interface to be monitored and monitoring order information, right
The network interface to be monitored carries out network interface monitoring.
7. a kind of device of network interface monitoring, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
In the access log of destination server, obtains every and access the network interface being accessed in record;
Duplicate removal processing is carried out to the network interface of acquisition, remaining network interface after duplicate removal processing is connect as network to be monitored
Mouthful;
Each of the destination server storage network interface corresponding data update time to be monitored is obtained respectively;
According to each network interface to be monitored corresponding data update time, determine that each network interface to be monitored is corresponding
Monitor priority;
According to each corresponding monitoring priority of network interface to be monitored, net is carried out to the network interface to be monitored
Network interface monitoring.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510047008.8A CN104767653B (en) | 2015-01-29 | 2015-01-29 | A kind of method and apparatus of network interface monitoring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510047008.8A CN104767653B (en) | 2015-01-29 | 2015-01-29 | A kind of method and apparatus of network interface monitoring |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104767653A CN104767653A (en) | 2015-07-08 |
CN104767653B true CN104767653B (en) | 2018-09-04 |
Family
ID=53649280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510047008.8A Active CN104767653B (en) | 2015-01-29 | 2015-01-29 | A kind of method and apparatus of network interface monitoring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104767653B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107846321B (en) * | 2016-09-19 | 2022-03-11 | 阿里巴巴集团控股有限公司 | Interface monitoring method and device and electronic equipment |
CN106484592B (en) * | 2016-09-28 | 2020-01-24 | 北京奇虎科技有限公司 | Anomaly detection method and device |
CN108134708B (en) * | 2016-12-01 | 2021-05-25 | 腾讯科技(深圳)有限公司 | Method and device for monitoring third-party interface |
CN107315672B (en) * | 2017-06-22 | 2020-08-21 | 北京星选科技有限公司 | Method and device for monitoring server |
CN110752962A (en) * | 2018-07-23 | 2020-02-04 | 北京奇虎科技有限公司 | Monitoring method and device of advertisement interface |
CN111435393B (en) * | 2019-01-14 | 2024-04-16 | 北京京东尚科信息技术有限公司 | Object vulnerability detection method, device, medium and electronic equipment |
CN110245060A (en) * | 2019-05-20 | 2019-09-17 | 北京奇艺世纪科技有限公司 | Service monitoring method and equipment, service monitoring device and medium |
CN110162979A (en) * | 2019-05-27 | 2019-08-23 | 北京百度网讯科技有限公司 | A kind of safety detecting method, device, electronic equipment and the storage medium of Web API |
CN111465009B (en) * | 2020-03-09 | 2023-03-21 | 平安普惠企业管理有限公司 | Method for detecting network interface request of mobile application and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079768A (en) * | 2006-05-25 | 2007-11-28 | 阿里巴巴公司 | A method for computing click data of webpage link |
CN102737029A (en) * | 2011-04-02 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Searching method and system |
CN104281688A (en) * | 2014-10-10 | 2015-01-14 | 百度在线网络技术(北京)有限公司 | Automatic erasing method and automatic erasing device for browser |
CN104301304A (en) * | 2014-09-16 | 2015-01-21 | 赛尔网络有限公司 | Vulnerability detection system based on large ISP interconnection port and method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011090512A (en) * | 2009-10-22 | 2011-05-06 | Fujitsu Ltd | Monitoring device, monitoring method, and monitoring program |
-
2015
- 2015-01-29 CN CN201510047008.8A patent/CN104767653B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079768A (en) * | 2006-05-25 | 2007-11-28 | 阿里巴巴公司 | A method for computing click data of webpage link |
CN102737029A (en) * | 2011-04-02 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Searching method and system |
CN104301304A (en) * | 2014-09-16 | 2015-01-21 | 赛尔网络有限公司 | Vulnerability detection system based on large ISP interconnection port and method thereof |
CN104281688A (en) * | 2014-10-10 | 2015-01-14 | 百度在线网络技术(北京)有限公司 | Automatic erasing method and automatic erasing device for browser |
Also Published As
Publication number | Publication date |
---|---|
CN104767653A (en) | 2015-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104767653B (en) | A kind of method and apparatus of network interface monitoring | |
TWI614703B (en) | Information recommendation method and information recommendation device | |
US9515901B2 (en) | Automatic asynchronous handoff identification | |
CN104092555B (en) | A kind of methods, devices and systems of undated parameter value | |
CN101529415A (en) | Offline execution of web based applications | |
CN102882974A (en) | Method for saving website access resource by website identification version number | |
CN110266661A (en) | A kind of authorization method, device and equipment | |
CN112130996A (en) | Data monitoring control system, method and device, electronic equipment and storage medium | |
CN106250454A (en) | The loading method of a kind of page script and device | |
US20140215008A1 (en) | Network method and apparatus | |
CN112732756B (en) | Data query method, device, equipment and storage medium | |
CN103858121A (en) | Method and system for making Web application obtain database change | |
CN110347955B (en) | Resource detection method and device | |
CN105338091A (en) | High-transmission-efficiency personalized information interface display method and apparatus | |
CN115543202A (en) | Cache management method, reading method, system, electronic device and storage medium | |
CN115687826A (en) | Page refreshing method and device, computer equipment and storage medium | |
US11843603B2 (en) | Authorization server, consent portal, resource server and user registration | |
JP4886356B2 (en) | Communication management device, communication management method, and communication management program | |
CN114371969A (en) | Page performance testing method and device, electronic equipment and storage medium | |
CN110944037B (en) | Method, computer device and storage medium for client cache change configuration | |
US20100251270A1 (en) | Selective Mobile Metering | |
JP6782219B2 (en) | Data utilization support device, data utilization support system, and data utilization support method | |
JPWO2008143284A1 (en) | Content providing apparatus, content providing method, and computer-usable storage medium | |
CN115604041B (en) | Security agent method, system, apparatus, computer device, and storage medium | |
CN109684158A (en) | Method for monitoring state, device, equipment and the storage medium of distributed coordination system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |