CN106354602A - Service monitoring method and equipment - Google Patents
Service monitoring method and equipment Download PDFInfo
- Publication number
- CN106354602A CN106354602A CN201610727293.2A CN201610727293A CN106354602A CN 106354602 A CN106354602 A CN 106354602A CN 201610727293 A CN201610727293 A CN 201610727293A CN 106354602 A CN106354602 A CN 106354602A
- Authority
- CN
- China
- Prior art keywords
- service
- monitored
- confirmation
- predetermined registration
- registration operation
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a service monitoring method and equipment. The method comprises the steps of obtaining the confirmation information of the service to be monitored, wherein the confirmation information is generated by service to be monitored to show whether the service response to be monitored responds to the access order and carries out the information of the preset operation or not; the preset operation is the operation for realizing the corresponding function of the access order; confirming whether the service to be monitored can provide service normally or not according to the confirmation information. Compared with judging whether the service progress to be monitored exists in the prior art or not, the scheme provided in the embodiment shows whether the service to be monitored can carry out the information of the preset operation according to the judgment basis, the service to be monitored can be accurately reflected whether to provide service normally or not, and then the scheme provided by the embodiment can achieve accurate monitoring result.
Description
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of service monitoring method and equipment.
Background technology
Develop rapidly with scientific and technical, the function that computing device (as terminal unit or server etc.) is capable of is got over
Come more.Taking terminal unit as a example, generally, terminal unit can install the service for realizing difference in functionality, and so, terminal sets
For when needing to realize certain function, related service can be started, and when this service is in running status, real by this service
Now corresponding function.For example, the service for being read out to data is installed in terminal unit, terminal unit is in this service
During running status, the function that be read out of data to storage can be realized by this service.
But, in actual applications, when realizing corresponding function by certain service, there is this service not in terminal unit
The phenomenon that can normally run, now terminal unit will be unable to successfully realize corresponding function by this service.
In order to solve the above problems, the service in terminal unit can be monitored.Specifically, terminal unit is starting
After certain service, the process producing during to this service operation is monitored, and determines that the process of this service whether there is, if this clothes
The process of business exists it may be determined that this service normally runs;If the process of this service does not exist, illustrate that this service is not normal
Run, at this point it is possible to create this process so that after creating this process, this service normally runs.
However, in actual applications, have that " although the process of service exists, this service still can not normally provide clothes
The situation of business ", in this case, according to above-mentioned monitoring method, the monitored results obtaining normally are run for this service, but this is aobvious
So it is not inconsistent with practical situation.
Content of the invention
In view of this, a kind of service monitoring method and equipment are embodiments provided, for solving to adopt existing skill
Art is monitored to the service in computing device, the inaccurate problem of the monitored results obtaining.
Embodiments provide a kind of service monitoring method, comprising:
Obtain the confirmation of service to be monitored;Described confirmation, is described service creation to be monitored, is used for characterizing
Whether described service response to be monitored executes the information of described predetermined registration operation in access instruction;Described predetermined registration operation, for realizing
The operation of function corresponding to described access instruction;
According to described confirmation, determine whether described service to be monitored normally provides service.
Embodiments provide a kind of service watchdog, comprising:
Acquiring unit, for obtaining the confirmation of service to be monitored;Described confirmation, is described waiter to be monitored
Becoming, for characterizing the information whether described service response to be monitored executes described predetermined registration operation in access instruction;Described default
Operation, for realizing the operation of function corresponding to described access instruction;
Determining unit, for according to described confirmation, determining whether described service to be monitored normally provides service.
The embodiment of the present invention can reach following technique effects:
For the basis for estimation " process of service to be monitored whether there is " adopting in prior art, due to this
The basis for estimation adopting in the scheme that bright embodiment provides " characterizes the letter of service to be monitored whether predetermined registration operation described in successful execution
Breath ", can more accurately reflect whether service to be monitored normally provides service, thus using provided in an embodiment of the present invention
In contrast scheme, to monitor whether service to be monitored normally provides service, can obtain more accurately monitored results.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are these
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also root
Obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of service monitoring method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of service monitoring method provided in an embodiment of the present invention;
Fig. 3 (a) is a kind of schematic flow sheet of service monitoring method provided in an embodiment of the present invention;
Fig. 3 (b) is a kind of schematic diagram of service monitoring method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of service watchdog provided in an embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is
The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
It should be noted that in embodiments of the present invention, described service to be monitored, can be mounted in computing device,
Corresponding function can be realized by described service to be monitored in order to described computing device or other computing devices.Such as, described
Service to be monitored can be mounted in server, for the gbalancer clothes that the data in described server is read out
Business or other services for realizing other functions, such as, data storage service, data mining service, information checking
Service, etc., it is not specifically limited here.
In embodiments of the present invention, can taking monitor the service to be monitored installed in the server as a example illustrate.
It should be noted that in the embodiment of the present invention, when in server, the service to be monitored of installation is monitored, can
To be monitored to described service to be monitored it is also possible to be supervised to described service to be monitored by monitoring device by described server
Control, is not specifically limited here.In embodiments of the present invention, with server to the service to be monitored being arranged in described server
Illustrate as a example being monitored.Alternatively it is also possible to arrange monitoring script in the server, described monitoring script is to being arranged on
Service to be monitored in described server is monitored, described monitoring script, is for realizing clothes provided in an embodiment of the present invention
The shell script of business monitoring method.
Embodiment 1
Fig. 1 is a kind of schematic flow sheet of service monitoring method provided in an embodiment of the present invention.Methods described is as described below.
Step 11: obtain the confirmation of service to be monitored.
Wherein, described confirmation is described service creation to be monitored, be used for characterizing described service response to be monitored in
Whether access instruction executes the information of described predetermined registration operation.
In a step 11, in order to determine whether the service to be monitored installed in server normally can provide service, permissible
Obtain service response to be monitored in the access instruction to described service to be monitored, the confirmation of generation, in order to according to acquisition
Confirmation determine whether described service to be monitored can normally provide service.
It should be noted that in embodiments of the present invention, described access instruction is real for triggering described service to be monitored
The instruction of existing corresponding function, described predetermined registration operation is to realize function corresponding to described access instruction for described service to be monitored
Operation.For example, for the service to be monitored for providing digital independent service, described access instruction can be that data is read
The instruction taking, described predetermined registration operation can be the read operation to data execution.
Described service to be monitored, can be according to the knot of execution predetermined registration operation after in response to access instruction execution predetermined registration operation
Really, generate confirmation, so, when being monitored to described service to be monitored it may be determined that obtaining described to be monitored
The confirmation of service.
This confirmation, can actively send (or claiming to return) to server by described service to be monitored, or, by described
Described in server active request, service to be monitored provides, or, can be by described server active from preserving the depositing of confirmation
Storage obtains in space.Wherein, described service to be monitored actively sends (or title returns) and, to described server, generally occurs in institute
State server to transmission access instruction, and wait described service to be monitored to return in the scene of confirmation.After specifically can be found in
The embodiment 2 of literary composition.It should be noted that actively sending (or claiming to return) to described server for by described service to be monitored
For mode, can in advance the function logic of described service to be monitored be improved (specifically, can be to treat described in modification
The source code of monitoring service), make described service to be monitored possess the function to server return confirmation.
Step 12: according to described confirmation, determine whether described service to be monitored normally provides service.
In step 12, after the confirmation getting described service to be monitored, can be sentenced according to described confirmation
Whether disconnected described service to be monitored normally provides service.
Such as, according to determination information it can be determined that whether described service to be monitored executes described predetermined registration operation;If being not carried out
Described predetermined registration operation is it is determined that described service to be monitored can not normally provide service;If executing described predetermined registration operation it is determined that institute
State normal offer of service to be monitored to service.
Based on the content described in above-mentioned steps 11, described confirmation is used for characterizing whether described service to be monitored executes
Described predetermined registration operation, in actual applications, if predetermined registration operation described in described service execution to be monitored is it may be said that bright, described treats
Monitoring service can realize the operation of function corresponding to described access instruction, i.e. described service to be monitored can realize described work(
Energy;If described service to be monitored is not carried out described predetermined registration operation it may be said that bright, described service to be monitored cannot realize institute
State the operation of function corresponding to access instruction, i.e. described service to be monitored cannot realize described function, therefore, in step 12
In, can determine whether described service to be monitored normally provides service according to described confirmation.
In described confirmation, such as can include for characterizing whether described service to be monitored executes described predetermined registration operation
Variate-value, then, according to this variate-value it may be determined that whether described service to be monitored executes described predetermined registration operation.Specifically,
If assuming, this variate-value is 1, characterizes the described predetermined registration operation of described service execution to be monitored, and variate-value is 0, waits to supervise described in sign
Control service is not carried out described predetermined registration operation, then, when this variate-value comprising in the described confirmation obtaining is 1, can
To determine the described predetermined registration operation of described service execution to be monitored.Certainly, in the embodiment of the present invention, depending on practical situation it is also possible to
Other features (this feature can characterize whether described service to be monitored executes described predetermined registration operation) according to confirmation, to sentence
Whether described service to be monitored of breaking performs described predetermined registration operation, and no longer citing repeats herein.
Technical scheme provided in an embodiment of the present invention, compared to the basis for estimation " service to be monitored adopting in prior art
Process whether there is " for, due in scheme provided in an embodiment of the present invention adopt basis for estimation " characterize service to be monitored
Whether the whether information of predetermined registration operation described in successful execution ", can more accurately reflect service to be monitored and normally provide and take
Business, thus to monitor whether service to be monitored normally provides service using scheme provided in an embodiment of the present invention, can obtain phase
More accurately monitored results for relatively.
Embodiment 2
Fig. 2 is a kind of schematic flow sheet of service monitoring method provided in an embodiment of the present invention, and methods described is as described below.
Step 21: search whether there is described service to be monitored really from the computing device that described service to be monitored is located
Recognize information.
In step 21, need to treat monitoring service be monitored when, the confirmation of described service to be monitored can be obtained
Information.In embodiments of the present invention, so that the computing device at described service place to be monitored is as server as a example illustrate.
In actual applications, the server that described service to be monitored is located, default described in described service execution to be monitored
After operating and generating confirmation, the confirmation of generation can be recorded and be preserved, therefore, in the embodiment of the present invention
In, when obtaining the confirmation of described service to be monitored, can search whether to exist described to be monitored from described server
The confirmation of service.The storing path of confirmation in the embodiment of the present invention, can be pre-set, and this storing path is entered
Row record, to find the confirmation of described service creation to be monitored according to the storing path of record.
When searching the confirmation of described service to be monitored, if existed in the server at described service place to be monitored
The confirmation of described service to be monitored, then execution step 22;If do not existed in the server that described service to be monitored is located
The confirmation of described service to be monitored, then execution step 23.
Step 22: obtain the confirmation of described service creation to be monitored.
In step 22, if there is described confirmation in described server, then, described service can be acquired
The described confirmation that device preserves.If it should be noted that there is the note of a plurality of described confirmation in described server
Record, then, as a kind of optional mode, up-to-date confirmation can be obtained according to the time recording described confirmation.
Step 23: send described access instruction to service to be monitored.
In step 23, if there is not described confirmation in described server, then, in order to treat described in acquiring
The confirmation of monitoring service, can send described access instruction to described service to be monitored, described to be monitored in order to obtain
Service is in the described access instruction in response to sending, the described confirmation generating after executing described predetermined registration operation.Specifically, obtain
Take the means can be as it was noted above, being to obtain the confirmation that described service to be monitored sends (or claim return).
It should be noted that in actual applications, when sending described access instruction to described service to be monitored, if by
The server that described service to be monitored is located is monitored to described service to be monitored, then, can be from described server to institute
State service to be monitored and send described access instruction, and indicate predetermined registration operation described in described service execution to be monitored;If monitoring
Equipment is monitored to described service to be monitored, then, can be from described monitoring device to the clothes installing described service to be monitored
Business device sends access instruction, and indicates predetermined registration operation described in described service execution to be monitored.
In some optional embodiments of the present embodiment, specifically, access instruction, bag are sent to described service to be monitored
Include:
The process of described service to be monitored is searched from the computing device that described service to be monitored is located;
When searching the process obtaining described service to be monitored, send access instruction to described service to be monitored.
In actual applications, before sending access instruction to described service to be monitored, described clothes to be monitored can be checked
Corresponding process of being engaged in whether there is, in order to, in the presence of the process determining described service to be monitored, described service to be monitored can
So that described predetermined registration operation is executed by this process.
When the process determining described service to be monitored whether there is, specifically, can be located from described service to be monitored
Server in search the process of described service to be monitored, when searching this process, can entering by described service to be monitored
The process number of journey is made a look up it is also possible to be made a look up by additive method, is not specifically limited.
If finding the process of described service to be monitored, then, described access can be sent to described service to be monitored
Instruction;Without the process finding described service to be monitored, then, described visit can not be sent to described service to be monitored
Ask instruction.
In embodiments of the present invention, when determining that described process does not exist it may be said that bright, described service to be monitored not by
Run, or described service abnormal running (not producing process) to be monitored, at this point it is possible to be located to described service to be monitored
Server sends enabled instruction, indicates that described server, to described service execution start-up operation to be monitored, is being waited to supervise described in startup
After control service, it is possible to use the method for above-mentioned record is monitored to described service to be monitored.
Step 24: obtain the confirmation that described service to be monitored generates in the described access instruction in response to sending.
In step 24, based on the content described in step 23, after sending access instruction to described service to be monitored, institute
State service to be monitored and can receive described access instruction, after receiving described access instruction, in response to described access instruction.
After in response to described access instruction, at least there are two kinds of implementing results, one kind is described in described service to be monitored
Service to be monitored is not carried out described predetermined registration operation, and another kind is predetermined registration operation described in described service execution to be monitored, at this
In bright embodiment, described service to be monitored can generate confirmation according to above two implementing result, and described confirmation is used
Whether execute described predetermined registration operation in the described service to be monitored of sign.
The described confirmation generating, after generating described confirmation, can be returned, also may be used by described service to be monitored
Not return described confirmation, it is not specifically limited.If returning described confirmation, then, can be returned by reception
The mode of the confirmation returned, acquires described confirmation;If not returning described confirmation, then, can obtain
Described confirmation.
Step 25: according to described confirmation, judge whether described service to be monitored executes described predetermined registration operation.
In step 25, based on the content of above-mentioned record, described confirmation can be used for characterizing described service to be monitored
Whether execute described predetermined registration operation, therefore, after obtaining described confirmation, described confirmation can be analyzed, and
Judge whether described service to be monitored executes described predetermined registration operation according to analysis result.
If described service to be monitored is not carried out described predetermined registration operation, execution step 26;If described clothes to be monitored
Business executes described predetermined registration operation, then execution step 27.
Step 26: determine that described service to be monitored can not normally provide service.
In step 26, if described service to be monitored is not carried out described predetermined registration operation, then it may be said that bright, described
The server that service to be monitored is located does not enable corresponding function by described service to be monitored, at this point it is possible to determine described
Service to be monitored can not normally provide service.
Step 27: determining that described service to be monitored is normal provides service.
In step 27, if predetermined registration operation described in described service execution to be monitored, then it may be said that bright, described wait to supervise
The server that control service is located can realize corresponding function by described service to be monitored, at this point it is possible to determine described to be monitored
Service is normal to provide service.
As a kind of optional mode, after determining that described service to be monitored normally can not provide service, execution step 28.
Step 28: the computing device being located to described service to be monitored sends instruction of restarting.
Wherein, described instruction of restarting is used for indicating described computing device to described service execution reboot operation to be monitored.
As some optional embodiments of the present embodiment, in a step 28, determining that described service to be monitored can not be just
After often providing service, in order that described service to be monitored can normally provide service, can be located to described service to be monitored
Server sends instruction of restarting, indicates described server to described service execution reboot operation to be monitored, in order to again open
After dynamic described service to be monitored, described service to be monitored can normally provide service.
In actual applications, after restarting described service to be monitored, it is possible to use skill provided in an embodiment of the present invention
Art scheme, is monitored to described service to be monitored, to determine that described service to be monitored is after restarting described service to be monitored
No normal offer services.If after restarting described service to be monitored, described service to be monitored still normally can not provide service,
It is possible to using manual intervention method so that described service to be monitored can normally provide service.
Alternatively, when determining that described service to be monitored can not normally provide, can also analyze further and treat described in leading to
The reason monitoring service normally can not provide service, carries out corresponding position to described service to be monitored the reason obtain according to analysis
, to avoid described service to be monitored due to due to identical, the situation that can not normally provide service again in reason.
Technical scheme provided in an embodiment of the present invention, is needing to treat when monitoring service is monitored it may be determined that described
With the presence or absence of the confirmation of described service to be monitored in the server that service to be monitored is located, if it is present direct access
Described confirmation, if it does not exist, then sending access instruction to described service to be monitored, and obtains described service sound to be monitored
The confirmation generating after access instruction described in Ying Yu, after the confirmation obtaining described service to be monitored, according to described true
Recognize information, judge whether described service to be monitored normally provides service.By described service to be monitored after execution predetermined registration operation
Generate confirmation, described service to be monitored is monitored, compared to existing technologies, can in contrast than
Accurate monitored results.
Embodiment 3
Fig. 3 (a) is a kind of schematic flow sheet of service monitoring method provided in an embodiment of the present invention.The following institute of methods described
State.The executive agent of the embodiment of the present invention can be monitoring device.This monitoring device, can be virtual unit or it is also possible to
It is entity device (function of this entity device generally can be realized by software and hardware combining).
In embodiments of the present invention, can taking to be monitored service as gbalancer service as a example illustrate, wherein, institute
State gbalancer service to can be used for the data of storage in server (or terminal unit) is read out, implement in the present invention
In example, described gbalancer service can be referred to as gb service, and the gb service installed in server is monitored.
Step 31: determine that the process of gb service to be monitored whether there is.
In step 31, gb service can be installed in server, for being read out to the data storing in server, prison
When the gb service that control equipment is installed in needing to server is monitored, can check whether the process of described gb service deposits
?.
If the process of described gb service exists, execution step 32;If the process of described gb service does not exist, hold
Row step 35.
Step 32: service to described gb and send data read command.
Wherein, described data acquisition request is used for asking described gb service execution data read operation.
In the step 32, in order to determine whether described gb service normally provides service, that is, whether described gb service can be just
Often read data, monitoring device can service to described gb and send data read command, request is read and installed described gb service
In server, the data of storage, that is, ask described gb service execution data read operation.
Described gb services after receiving data read command, can respond and described data read command, and generates really
Recognize information, described confirmation is used for characterizing whether described gb service executes described data read operation, whether successfully reads
The data of storage in described server.
In embodiments of the present invention, described confirmation, after generating described confirmation, can be returned to by described gb
Monitoring device.
Step 33: receive the confirmation that described gb service returns.
In step 33, described confirmation is returned to after monitoring device by described gb service, and monitoring device can receive
Described confirmation.
As shown in Fig. 3 (b), monitoring device a services to gb and sends data read command, and gb service receives described digital independent
Instruction, after receiving described data read command, in response to described data read command.
Gb services after in response to described data read command, generates confirmation, and described confirmation is used for characterizing gb
Whether service response executes data read operation in described data read command.The described confirmation generating is returned by gb service
To monitoring device a, monitoring device a receives the confirmation that gb service returns.
Step 34: according to described confirmation, judge whether described gb service executes data read operation.
In step 34, can judge whether described gb service executes data read operation, that is, according to described confirmation
Whether successfully read the data of storage in described server, if a determination be made that data, then execution step can not successfully be read
35;If a determination be made that data, then execution step 37 can successfully be read.
Step 35: determine that described gb service can not normally provide digital independent service.
In step 25, when determining that described gb service can not normally provide digital independent service, can analyze and lead to institute
The reason stating gb service and can not normally provide digital independent to service, and record analyses result, in order to according to described analysis result
Respective handling is carried out to described gb service, it is to avoid described gb service due to due to identical, occurs can not normally providing number again
Situation according to reading service.
Step 36: the server being located to described gb service sends instruction of restarting.
Wherein, described instruction of restarting is used for instruction to described gb service execution reboot operation.
In step 36, so that described gb service is normal provides digital independent service, can take to installing described gb
The server of business sends instruction of restarting, indicates described server to described gb service execution reboot operation.
After restarting described gb service, in order to determine whether the described gb service after restarting normally provides digital independent clothes
Business, can continue executing with above-mentioned steps 31, when determining that described gb service can normally provide digital independent service, execution step
37.
Step 37: determining that described gb service is normal provides digital independent service.
After determining that described digital independent service normally can provide service, it is possible to use described clothes are read in described gb service
The data of storage in business device.
By technical scheme provided in an embodiment of the present invention, the gb service installed in needing to server is monitored
When it may be determined that the process of described gb service whether there is, if the process of described gb service does not exist, illustrate that described gb services
Service can not be normally provided, then can restart described gb service;If the process of described gb service exists, one can be entered
Can step monitor described gb service and normally provide digital independent service, and can not normally provide digital independent to take in the described gb of determination
During business, restart described gb service, in order to, after restarting described gb service, described gb service can normally provide digital independent to take
Business, in terms of existing technologies, it is possible to achieve the effective monitoring to gb service.
Embodiment 4
Fig. 4 is a kind of structural representation of service watchdog provided in an embodiment of the present invention.Described service watchdog
Including: acquiring unit 41 and determining unit 42, wherein:
Acquiring unit 41, for determining the confirmation of service to be monitored;Described confirmation, is described service to be monitored
Generating, for characterizing the information whether described service response to be monitored executes described predetermined registration operation in access instruction;Described pre-
If operation, for realizing the operation of function corresponding to described access instruction;
Determining unit 42, for according to described confirmation, determining whether described service to be monitored normally provides service.
In some alternative embodiments of the present invention, described determining unit 42, specifically for:
According to described confirmation, judge whether described service to be monitored executes described predetermined registration operation;
If being not carried out described predetermined registration operation it is determined that described service to be monitored can not normally provide service;
If executing described predetermined registration operation it is determined that described service to be monitored is normal provides service.
In some alternative embodiments of the present invention, described service watchdog also includes: transmitting element 43, wherein:
In described determining unit 42, described transmitting element 43, for determining that described service to be monitored can not normally provide service
Afterwards, the computing device being located to described service to be monitored sends instruction of restarting, and described instruction of restarting, for indicating that described calculating sets
For to described service execution reboot operation to be monitored.
In some alternative embodiments of the present invention, described acquiring unit 41, specifically for:
The confirmation that there is described service to be monitored is searched whether from the computing device that described service to be monitored is located;
If there is the confirmation of described service to be monitored, obtaining described service to be monitored and executing described predetermined registration operation
The confirmation generating afterwards;
If there is not the confirmation of described service to be monitored, send described access instruction to service to be monitored;And,
Obtain the confirmation that described service to be monitored generates after the described access instruction in response to described transmission executes predetermined registration operation.
In some alternative embodiments of the present invention, described acquiring unit 41, specifically for:
The process of described service to be monitored is searched from the computing device that described service to be monitored is located;
When searching the process obtaining described service to be monitored, send described access instruction to described service to be monitored.
It should be noted that service watchdog provided in an embodiment of the present invention can be realized by hardware mode, also may be used
To be realized by software mode, do not limit here.
Described service watchdog can be a part or peace in the server install described service to be monitored
Fill the equipment outside the server of described service to be monitored, be not specifically limited.
Described service watchdog, when to treating monitoring service and being monitored, determines and obtains described service to be monitored in root
After access instruction execution predetermined registration operation, the confirmation of generation, and described service to be monitored is judged according to described confirmation
Whether normally provide service.Described service watchdog passes through to determine whether service to be monitored normally provides service, realizes treating
The effective monitoring of monitoring service, so, when determining that service to be monitored normally can not provide service, can be in time to clothes to be monitored
Business carries out respective handling so that service to be monitored normally can provide service, solves and treats monitoring service in prior art and enter
Monitored results inaccurate problem during row monitoring.
Device embodiment described above is only that schematically the wherein said unit illustrating as separating component can
To be or to may not be physically separate, as the part that unit shows can be or may not be physics list
Unit, you can with positioned at a place, or can also be distributed on multiple NEs.Can be selected it according to the actual needs
In the purpose to realize this embodiment scheme for some or all of module.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and to implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on
That states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as rom/ram, magnetic disc, CD etc., including some fingers
Order is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcement
Example or some partly described methods of embodiment.
Finally it is noted that above example, only in order to technical scheme to be described, is not intended to limit;Although
With reference to the foregoing embodiments the present invention is described in detail, it will be understood by those within the art that: it still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to wherein some technical characteristics;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (10)
1. a kind of service monitoring method is it is characterised in that include:
Obtain the confirmation of service to be monitored;Described confirmation is described service creation to be monitored, be used for characterizing described
Whether service response to be monitored executes the information of described predetermined registration operation in access instruction;Described predetermined registration operation, described for realizing
The operation of function corresponding to access instruction;
According to described confirmation, determine whether described service to be monitored normally provides service.
2. service monitoring method according to claim 1 is it is characterised in that according to described confirmation, treat described in determination
Whether monitoring service normally provides service, comprising:
According to described confirmation, judge whether described service to be monitored executes described predetermined registration operation;
If being not carried out described predetermined registration operation it is determined that described service to be monitored can not normally provide service;
If executing described predetermined registration operation it is determined that described service to be monitored is normal provides service.
3. service monitoring method according to claim 2 is it is characterised in that determining that described service to be monitored can not be normal
After providing service, methods described also includes:
The computing device being located to described service to be monitored sends instruction of restarting, and described instruction of restarting, for indicating described calculating
Equipment is to described service execution reboot operation to be monitored.
4. service monitoring method according to claim 1 is it is characterised in that obtain the confirmation letter of described service to be monitored
Breath, comprising:
The confirmation that there is described service to be monitored is searched whether from the computing device that described service to be monitored is located;
If there is the confirmation of described service to be monitored, obtain described service to be monitored raw after executing described predetermined registration operation
The confirmation becoming;
If there is not the confirmation of described service to be monitored, send described access instruction to service to be monitored;And, obtain
The confirmation that described service to be monitored generates after the described access instruction in response to described transmission executes predetermined registration operation.
5. service monitoring method according to claim 4 refers to it is characterised in that sending access to described service to be monitored
Order, comprising:
The process of described service to be monitored is searched from the computing device that described service to be monitored is located;
When searching the process obtaining described service to be monitored, send described access instruction to described service to be monitored.
6. a kind of service watchdog is it is characterised in that include:
Acquiring unit, for obtaining the confirmation of service to be monitored;Described confirmation, is described service creation to be monitored
, for characterizing the information whether described service response to be monitored executes described predetermined registration operation in access instruction;Described default behaviour
Make, for realizing the operation of function corresponding to described access instruction;
Determining unit, for according to described confirmation, determining whether described service to be monitored normally provides service.
7. service watchdog according to claim 6 is it is characterised in that described determining unit, specifically for:
According to described confirmation, judge whether described service to be monitored executes described predetermined registration operation;
If being not carried out described predetermined registration operation it is determined that described service to be monitored can not normally provide service;
If executing described predetermined registration operation it is determined that described service to be monitored is normal provides service.
8. service watchdog according to claim 7 is it is characterised in that described service watchdog also includes: sends
Unit, wherein:
Described transmitting element, for after described determining unit determines that described service to be monitored normally can not provide service, to institute
State the computing device transmission instruction of restarting that service to be monitored is located, described instruction of restarting, for indicating described computing device to institute
State service execution reboot operation to be monitored.
9. service watchdog according to claim 6 is it is characterised in that described acquiring unit, specifically for:
The confirmation that there is described service to be monitored is searched whether from the computing device that described service to be monitored is located;
If there is the confirmation of described service to be monitored, obtain described service to be monitored raw after executing described predetermined registration operation
The confirmation becoming;
If there is not the confirmation of described service to be monitored, send described access instruction to service to be monitored;And, obtain
The confirmation that described service to be monitored generates after the described access instruction in response to described transmission executes predetermined registration operation.
10. service watchdog according to claim 9 is it is characterised in that described acquiring unit, specifically for:
The process of described service to be monitored is searched from the computing device that described service to be monitored is located;
When searching the process obtaining described service to be monitored, send described access instruction to described service to be monitored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610727293.2A CN106354602A (en) | 2016-08-25 | 2016-08-25 | Service monitoring method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610727293.2A CN106354602A (en) | 2016-08-25 | 2016-08-25 | Service monitoring method and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106354602A true CN106354602A (en) | 2017-01-25 |
Family
ID=57854239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610727293.2A Pending CN106354602A (en) | 2016-08-25 | 2016-08-25 | Service monitoring method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354602A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109361525A (en) * | 2018-10-25 | 2019-02-19 | 珠海派诺科技股份有限公司 | Restart method, apparatus, controlling terminal and medium that distributed deployment services more |
CN111756599A (en) * | 2020-06-23 | 2020-10-09 | 中国联合网络通信集团有限公司 | Service monitoring method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075919A (en) * | 2006-06-22 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for monitoring Internet service |
US20090199047A1 (en) * | 2008-01-31 | 2009-08-06 | Yahoo! Inc. | Executing software performance test jobs in a clustered system |
CN103107921A (en) * | 2013-02-01 | 2013-05-15 | 大唐移动通信设备有限公司 | Monitoring method and system |
-
2016
- 2016-08-25 CN CN201610727293.2A patent/CN106354602A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075919A (en) * | 2006-06-22 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for monitoring Internet service |
US20090199047A1 (en) * | 2008-01-31 | 2009-08-06 | Yahoo! Inc. | Executing software performance test jobs in a clustered system |
CN103107921A (en) * | 2013-02-01 | 2013-05-15 | 大唐移动通信设备有限公司 | Monitoring method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109361525A (en) * | 2018-10-25 | 2019-02-19 | 珠海派诺科技股份有限公司 | Restart method, apparatus, controlling terminal and medium that distributed deployment services more |
CN109361525B (en) * | 2018-10-25 | 2021-08-13 | 珠海派诺科技股份有限公司 | Method, device, control terminal and medium for restarting distributed deployment of multiple services |
CN111756599A (en) * | 2020-06-23 | 2020-10-09 | 中国联合网络通信集团有限公司 | Service monitoring method and device |
CN111756599B (en) * | 2020-06-23 | 2022-07-12 | 中国联合网络通信集团有限公司 | Service monitoring method and service monitoring system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9734005B2 (en) | Log analytics for problem diagnosis | |
KR101470712B1 (en) | Method and system for minimizing loss in a computer application | |
RU2571726C2 (en) | System and method of checking expediency of installing updates | |
US9129058B2 (en) | Application monitoring through continuous record and replay | |
US9229844B2 (en) | System and method for monitoring web service | |
US8607339B2 (en) | Systems and methods for improved identification and analysis of threats to a computing system | |
KR20200052957A (en) | Security control method and computer system | |
WO2015020909A2 (en) | Virtual computing instance migration | |
CN103329093A (en) | Updating software | |
KR101748833B1 (en) | Software failure locating method, apparatus and equipment | |
US11880458B2 (en) | Malware detection based on user interactions | |
US11113142B2 (en) | Early risk detection and management in a software-defined data center | |
US10795793B1 (en) | Method and system for simulating system failures using domain-specific language constructs | |
US11528298B2 (en) | Methods and systems for preventing malicious activity in a computer system | |
CN112860282A (en) | Upgrading method and device of cluster plug-in and server | |
CN108090352B (en) | Detection system and detection method | |
CN106354602A (en) | Service monitoring method and equipment | |
CN106529281A (en) | Executable file processing method and device | |
US9154519B1 (en) | System and method for antivirus checking of objects from a plurality of virtual machines | |
CN109582454A (en) | Permission releasing control method, device and equipment in a kind of distributed storage cluster | |
KR101834530B1 (en) | Dynamic collaboration service platform and Method for providing an application service at the same platform | |
US9438607B2 (en) | Information processing apparatus and verification control method | |
CN112835595B (en) | Method, device, equipment and medium for running AIX system on small core architecture | |
CN112506607A (en) | Cloud security control method, system and storage medium | |
JP2023143842A (en) | Computer-implemented method, computer program and computer system (task-specific log record in digital computer system) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170125 |