CN108023741A - One kind monitoring resource using method and server - Google Patents
One kind monitoring resource using method and server Download PDFInfo
- Publication number
- CN108023741A CN108023741A CN201610931401.8A CN201610931401A CN108023741A CN 108023741 A CN108023741 A CN 108023741A CN 201610931401 A CN201610931401 A CN 201610931401A CN 108023741 A CN108023741 A CN 108023741A
- Authority
- CN
- China
- Prior art keywords
- resource
- warning
- server
- size
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0604—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
- H04L41/0622—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephonic Communication Services (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses one kind to monitor resource using method, including:Whether the current resource of monitoring server is more than preset threshold value of warning using size;When the definite current resource is more than the threshold value of warning using size, detect the current time whether it is preset can be in the range of pre-warning time;When the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports, wherein, the warning information is used to prompt the user with the information that the current resource of the server exceedes threshold value of warning using size.The embodiment of the invention also discloses management server.Using the present invention, management server can carry out early warning to remove barriers in advance in the suitable time to the resource service condition of server, ensure server normal operation, improve the security of server operation, and reduce management cost.
Description
Technical field
The present invention relates to field of communication technology, more particularly to a kind of monitoring resource using method and server.
Background technology
Currently, in O&M service process, the management server of O&M alarm system can receive each to be used in system
The resource service condition of the server of O&M service.The resource of the management server meeting monitoring server of usual O&M alarm system
Whether exceed threshold value using size, when the resource for judging server exceedes threshold value using size, management server can be reported at once
It is alert, and need operation management personnel to remove barriers at once processing, it otherwise will cause system errors, such as the storage when server
, will if operation management personnel does not reduce memory space and uses size at once when space will be exhausted by certain using archive file
Causing follow-up journal file not file causes database to malfunction.
But the resource that can be likely to occur server at any time due to management server exceedes threshold using size
Value, this will be so that management server can trigger alarm at any time, and this scheme will cause management server may
May alarm when operation management personnel can not carry out removing barriers processing in time, such as at dead of night when to O&M
Administrative staff carry out alert notice, this would potentially result in making since operation management personnel can not reach on site fault clearing in time
Into system fault, the security of server operation can not be ensured, also, carry out alert notice in inappropriate time and also give O&M
Administrative staff cause inconvenience, increase management cost.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided one kind monitoring resource using method and server,
Early warning can be carried out to remove barriers in advance to the resource service condition of server in the suitable time, improve the peace of server operation
Quan Xing.
In order to solve the above-mentioned technical problem, on the one hand the embodiment of the present invention provides a kind of monitoring resource using method, bag
Include:
Whether the current resource of monitoring server is more than preset threshold value of warning using size;
When the definite current resource is more than the threshold value of warning using size, whether the current time is detected pre-
That puts can be in the range of pre-warning time;
When the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports, wherein,
The warning information is used to prompt the user with the information that the current resource of the server exceedes threshold value of warning using size.
On the other hand the embodiment of the present invention provides a kind of management server, including:
Whether the first monitoring unit, the resource current for monitoring server are more than preset threshold value of warning using size;
Detection unit, for determining that the current resource is more than the threshold value of warning using size when the monitoring unit
When, detect the current time whether it is preset can be in the range of pre-warning time;
First output unit, for when the detection unit determine the current time it is described can pre-warning time scope
When interior, generate warning information and export, wherein, the warning information makes for prompting the user with the current resource of the server
Exceed the information of threshold value of warning with size.
In embodiments of the present invention, whether the current resource of management server monitoring server is more than preset using size
Threshold value of warning, when the definite current resource is more than the threshold value of warning using size, detect the current time whether
It is preset can in the range of pre-warning time, when the definite current time it is described can be in the range of pre-warning time when, generate early warning
Information simultaneously exports, this causes management server to carry out early warning to the resource service condition of server with advance in the suitable time
Remove barriers, ensure server normal operation, improve the security of server operation, and reduce management cost.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram for monitoring resource using method provided in an embodiment of the present invention;
Fig. 3 is a kind of warning information display schematic diagram of the present invention;
Fig. 4 is the flow diagram of another monitoring resource using method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another monitoring resource using method provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of another monitoring resource using method provided in an embodiment of the present invention;
Fig. 7 is a kind of structure chart of management server provided in an embodiment of the present invention;
Fig. 8 is the structure chart of another management server provided in an embodiment of the present invention;
Fig. 9 is the structure chart of another management server provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment, belongs to the scope of protection of the invention.
A kind of monitoring resource using method provided in an embodiment of the present invention can be applied to monitoring server to server
The scene that resource service condition is monitored.
In order to be best understood from scheme disclosed by the embodiments of the present invention, the network architecture that is first applicable in below the embodiment of the present invention
It is described.Referring to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram disclosed by the embodiments of the present invention.In the network shown in Fig. 1
In framework, at least one server 1 for O&M service, the resource service condition for monitoring server 1 can be included
The terminal 3 of management server 2 and the warning message for receiving the push of management server 2.Wherein, server 1 and terminal 3
To be connected by network with management server 2.In a particular application, the resource that server 1 is monitored when management server 2 uses
When size is more than predetermined threshold value, monitoring server 2 can push warning message to terminal 3, to notify server 1 to need to administrative staff
Carry out timely resource management.
Below in conjunction with attached drawing 2- attached drawings 5, it is situated between in detail to monitoring resource using method provided in an embodiment of the present invention
Continue, wherein, the executive agent of embodiment is management server, can be included by the terminal of network connection with server:Computer,
Tablet computer, notebook etc. can carry out the intelligent terminal of PUSH message, and above-mentioned terminal is only citing, and non exhaustive, comprising but
It is not limited to above-mentioned terminal.
It is a kind of a kind of embodiment flow signal for monitoring resource using method provided in an embodiment of the present invention referring to Fig. 2
Figure.A kind of monitoring resource using method of the embodiment of the present invention includes the following steps:
Whether S100, the current resource of monitoring server are more than preset threshold value of warning using size.
In embodiments of the present invention, management server can be periodically monitored, alternatively, management server can be supervised in real time
Survey, or management server can be monitored by during cycle.Specifically, the resource that management server monitoring server is current
Can be using whether size is more than preset threshold value of warning:Management server can obtain the current resource of server and use greatly
It is small, and judge whether the current resource of server is more than default threshold value of warning using size.Wherein, management server obtains clothes
The current resource of business device can be using size:Management server can send acquisition resource to server and use size request, and
Receive the current resource that server respond request returns and use size;Alternatively, management server can receive server upload
Current resource uses size;, alternatively, management server obtains the running log that server is sent, analyzed according to running log
Obtain the current resource of server and use size.
In embodiments of the present invention, server may include various resources, such as CPU, memory, hard disk and bandwidth resource, because
This, management server can the current cpu resource of monitoring server whether be more than default threshold value of warning using size;Alternatively, pipe
Reason server can the current memory source of monitoring server whether be more than default threshold value of warning using size;Alternatively, management clothes
Be engaged in device can the current hard disk resources of monitoring server whether be more than default threshold value of warning etc. using size.
Further, in embodiments of the present invention, management server can an one or more resource therein to server
It is monitored.Preferably, in the embodiment of the present invention, the current hard disk resources service condition of management server only monitoring server.
It can understand, whether the use size of the current memory space of management server monitoring server is more than default early warning
Threshold value.Wherein, threshold value of warning can voluntarily be set, and optionally, threshold value of warning can be the 60% of the usable resource of server.Into
One step is optional, and threshold value of warning is less than alarm threshold value, and the difference between the threshold value of warning and alarm threshold value of setting will be greater than servicing
Resource increasing value of the device in preset future time section, if management server predicts server in the 12 following hours
The resource growth rate of server is 20%, alarm threshold value 90%, then it is 60% that management server, which can set threshold value of warning, its
In, can be in future time section management server it is current can in the range of pre-warning time with it is next can be in the range of pre-warning time
Between period.
In a particular application, server can be the server for O&M service, and server can record various applications
O&M daily record.Since O&M daily record only takes up the memory space of server, management server can monitoring server storage
Whether space is more than default threshold value of warning using size.
S101, when the definite current resource is more than the threshold value of warning using size, detecting the current time is
It is no it is preset can be in the range of pre-warning time.
In embodiments of the present invention, can pre-warning time scope can be administrative staff be easy to management server time model
Enclose, such as can pre-warning time scope can be daytime, or can pre-warning time may range from the work hours, such as can pre-warning time model
Enclosing to be:9:00~18:00.Management server can it is preset can pre-warning time scope, as management server can it is preset it is daily on
Class the time for can pre-warning time scope, as set can pre-warning time scope be:9:00~18:00, or management server may be used also
Preset other can conveniently be managed the time range of server, be not limited herein.
In embodiments of the present invention, whether management server can obtain the current time, judge the current time preset
Can be in the range of pre-warning time.Such as:When management server it is preset can pre-warning time scope be 9:00~18:When 00, if management
The current time that server is got is 10:00, management server can determine whether that the current time can pre-warning time in preset
In the range of.Wherein, management server, which obtains current time, can be specifically:Management server obtains current time by network,
Alternatively, management server receives the current time that server uploads upload at the same time when current resource uses size.
S102, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports.
In embodiments of the present invention, when management server determine the current time it is preset can be in the range of pre-warning time
When, management server can be exported warning information into the terminal to be notified by short message mode or liaison mode etc., wherein,
Warning information exceedes threshold value of warning for prompting the user with the current resource of server using size, need to carry out the phases such as resource management
The information of pass, the memory space for such as prompting administrative staff's server current exceed threshold value of warning using size, need to carry out cleaning clothes
The warning information of the memory space of business device, administrative staff in due course can use the resource of server according to warning information
Situation carries out resource management, reduces the current resource of server and uses size.As it can be seen that warning information can be pre- in advance to administrative staff
It is alert, so that administrative staff can arrange the suitable time to carry out settlement server problem.
In embodiments of the present invention, management server can register the contact method for the administrative staff for needing pre-alert notification, such as
Phone number.Management server can compile short message according to warning information, and be believed short message by preset contact method
Breath is sent specifically can be as shown in Figure 3 in the display schematic diagram of terminal to the corresponding terminal of contact method, warning information;Alternatively, pipe
Reason server can compile corresponding voice messaging according to warning information, and be sent voice messaging by preset contact method
To the corresponding terminal of contact method.Wherein, the resource that warning information is used to notify administrative staff's server current is surpassed using size
Cross threshold value of warning, administrative staff can take carries out resource management to the resource service condition of server, and it is current to reduce server
Resource uses size.
In embodiments of the present invention, when management server determine the current time not it is preset can be in the range of pre-warning time
When, management server can the current resource of monitoring server whether be more than default alarm threshold value using size, wherein, warning level
Value can be the threshold value for needing administrative staff to carry out resource management to server immediately, can be specifically that resource can be used in server
The 90% of size.Therefore, when management server judges that current resource is more than default alarm threshold value using size, management clothes
No matter any time business device can will generate warning message and export, so that the security of the operation of effective guarantee server.Its
In, warning message be used for prompt the resource of server to exceed alarm threshold value using size, need administrative staff horse back take measures into
Row reduces the information that resource uses.
In embodiments of the present invention, whether the current resource of monitoring server is more than preset threshold value of warning using size,
Whether when the definite current resource is more than the threshold value of warning using size, detecting the current time can be pre- in preset
In alert time range, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports,
This causes management server to carry out early warning to the resource service condition of server to remove barriers in advance in the suitable time, protects
Hinder server normal operation, improve the security of server operation, and reduce management cost.
It is that a kind of another embodiment flow for monitoring resource using method provided in an embodiment of the present invention is shown referring to Fig. 4
It is intended to.A kind of monitoring resource using method of the embodiment of the present invention includes the following steps:
S200, obtains the first resource usage log of server, wherein, the first resource usage log includes the clothes
The resource of business device uses size and the correspondence of time.
In embodiments of the present invention, the resource such as the CPU of server, memory, hard disk and bandwidth at every point of time on all can
There is corresponding resource to use resource size, management server can built-in log system, log system may include that first resource uses
Resource corresponding to different time points can be recorded and preserved using size by daily record, first resource usage log, with record
The resource of various resources uses size and the correspondence of time on server.Preferably, management server can record server
Memory space use size and the correspondence of time.
S201, uses size and the correspondence of time, predictive server resource is used according to the resource of the server
Predicted time of the size corresponding to alarm threshold value.
In embodiments of the present invention, management server can be closed according to the resource of server using size is corresponding with the time
System, generates prediction model.Management server can combine prediction model, be predicted according to resource using size for alarm threshold value,
Obtain corresponding predicted time.Wherein, management server can using resource using size for alarm threshold value as input value input to
Time prediction is carried out in predicted time model, obtains the predicted time of prediction model output.Wherein, prediction model can be used for
The predicted time formula of predicted time is exported, resource is independent variable therein using size, and server can be according to the money of server
Source is fitted using the correspondence of size and time, generates predicted time formula.
In embodiments of the present invention, management server can also train generation prediction model, such as management service by machine
Device can get sample resource using the correspondence of size and time according to the resource of server and use size and sample time,
And size is used to be trained sample time as dependent variable as independent variable, generate prediction model sample resource.
S202, judge the predicted time whether it is preset can be in the range of pre-warning time.
In embodiments of the present invention, can pre-warning time scope can be administrative staff be easy to management server time model
Enclose, such as can pre-warning time scope can with daytime, or can preset time may range from the work hours, such as can pre-warning time scope
Can be:9:00~18:00.
In embodiments of the present invention, when management server judge predicted time it is preset can be in the range of pre-warning time when,
Management server can will not carry out resource to server and use early warning, and the resource to server can be waited to exceed warning level using size
Value exports warning message and notifies administrative staff to carry out resource management immediately again, certainly, management server also still can to server into
Row resource uses early warning.Wherein, warning message exceedes warning level for prompting the user with the current resource of server using size
Value, need to take wording solve the information of warning reason at once.
In embodiments of the present invention, when management server judges predicted time not can be in the range of pre-warning time when, explanation
Management server may carry out alert notice within inappropriate time to administrative staff, and therefore, management server can be carried
Preceding early warning operation.
Whether S203, the current resource of monitoring server are more than preset threshold value of warning using size.
S204, when the definite current resource is more than the threshold value of warning using size, detecting the current time is
It is no it is preset can be in the range of pre-warning time.
S205, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports.
In embodiments of the present invention, step S203, the embodiment of step S204 and step S205 can be found in it is above-mentioned
The embodiment of step S100, step S101 and step S102 in embodiment, herein without repeating.
In embodiments of the present invention, whether the current resource of monitoring server is more than preset threshold value of warning using size,
Whether when the definite current resource is more than the threshold value of warning using size, detecting the current time can be pre- in preset
In alert time range, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports,
This causes management server to carry out early warning to the resource service condition of server to remove barriers in advance in the suitable time, protects
Hinder server normal operation, improve the security of server operation, and reduce management cost.
It is that a kind of another embodiment flow for monitoring resource using method provided in an embodiment of the present invention is shown referring to Fig. 5
It is intended to.A kind of monitoring resource using method of the embodiment of the present invention includes the following steps:
Whether S300, the current resource of monitoring server are more than preset threshold value of warning using size.
S301, when the definite current resource is more than the threshold value of warning using size, detecting the current time is
It is no it is preset can be in the range of pre-warning time.
S302, when the definite current time it is described can be in the range of pre-warning time when, monitor in the server
The current resource of each profile uses size, each profile current resource using size in obtain highest
Resource use the first object profile corresponding to size.
In embodiments of the present invention, management server can preset file or catalogue for monitoring resource service condition, its
In, preset file may include:The All Files pointed by file or preset catalogue pointed by pre-set path, preset text
Part can be the file for cleaning.The resource that management server can send acquisition profile to server please using size
Ask, and the current resource for receiving the profile of server respond request return uses size;Alternatively, management server can connect
The current resource for receiving the profile that server uploads uses size, alternatively, management server obtains the fortune that server is sent
Row daily record, the current resource that the profile for obtaining server is analyzed according to running log use size.Wherein, profile
Resource use size using the memory space that size can be profile.
In embodiments of the present invention, management server can obtain full in the current resource of each profile uses size
The resource of sufficient preset condition uses the first object profile corresponding to size.Wherein, management server can be in each preset text
The resource that the current resource of part meets preset condition using being obtained in size uses the preset text of first object corresponding to size
Part can be:Management server can each profile current resource using size in obtain highest resource and use size
Corresponding first object profile, alternatively, management server can be in the current resource of each profile uses size
Random acquisition uses the first object profile corresponding to size more than the resource of predetermined threshold value.Preferably, management server
Can each profile current memory space using size in obtain highest memory space and use the corresponding to size
One target profile.
S303, obtains the first object profile information for being used for positioning the first object profile.
In embodiments of the present invention, first object profile information can be used for positioning first object profile, such as wrap
Include the filename of first object profile, the memory space of first object profile uses size, the preset text of first object
The information such as the catalogue of part or path.
S304, generation carry the warning information of the first object profile information.
In embodiments of the present invention, management server can push the warning information for carrying first object profile information
To terminal, so that administrative staff can be by warning information that terminal receives or the file that need to be cleared up, so that pipe
Reason personnel can quickly carry out the file that positioning need to clear up, and effectively improve the efficiency of clearing server.
S305, exports the warning information for carrying first object profile information.
In embodiments of the present invention, step S300, the embodiment of step S301 and step S305 can be found in it is above-mentioned
The embodiment of step S100, step S101 and step S102 in embodiment, herein without repeating.
In embodiments of the present invention, whether the current resource of monitoring server is more than preset threshold value of warning using size,
Whether when the definite current resource is more than the threshold value of warning using size, detecting the current time can be pre- in preset
In alert time range, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports,
This causes management server to carry out early warning to the resource service condition of server to remove barriers in advance in the suitable time, protects
Hinder server normal operation, improve the security of server operation, and reduce management cost.
It is that a kind of another embodiment flow for monitoring resource using method provided in an embodiment of the present invention is shown referring to Fig. 6
It is intended to.A kind of monitoring resource using method of the embodiment of the present invention includes the following steps:
Whether S400, the current resource of monitoring server are more than preset threshold value of warning using size.
S401, when the definite current resource is more than the threshold value of warning using size, detecting the current time is
It is no it is preset can be in the range of pre-warning time.
S402, when the definite current time it is described can be in the range of pre-warning time when, obtain in the server
The Secondary resource usage log of each profile, wherein, the Secondary resource usage log includes the money of each profile
Source uses size and the correspondence of time.
In embodiments of the present invention, management server can use profile greatly in the resource corresponding to different time points
Small records are got off, so that the resource for recording profile uses size and the correspondence of time.
S403, determines that each profile exists according to the resource of each profile using the correspondence of size and time
Resource in preset time period uses the growth rate of size.
In embodiments of the present invention, preset time period can be one section of continuous period including current time,
Such as section of daily work hours, or can also be and start with the closest certain time of current time, such as this month to the tenth
It period.
In embodiments of the present invention, terminal can use size and the correspondence of time according to the resource of profile, obtain
The corresponding resource of two time endpoints of preset time period uses size, so as to calculate profile when default
Between resource in section use the growth rate of size.Can be specifically:Such as when preset time period be from a time points to b time points,
Wherein, a time points corresponding resource is c using size, and b time points corresponding resource is d using size, then in preset time period
Interior resource uses size growth rate f=(d-c)/d.
S404, determines that highest increases in growth rate of resource of each profile in preset time period using size
The second target profile corresponding to long rate.
In embodiments of the present invention, management server can each profile resource using the growth rate of size in obtain
Meet second target profile of the resource of preset condition corresponding to using the growth rate of size.Wherein, management server can
Each profile resource using the growth rate of size in obtain and meet the second target corresponding to the growth rate of preset condition
Profile can be:Management server can each profile resource using the growth rate of size in obtain highest resource
Using the second target profile corresponding to the growth rate of size, alternatively, management server can be in the resource of each profile
The second target corresponding to the growth rate of size is used using the resource obtained at random in the growth rate of size more than predetermined threshold value
Profile.Preferably, management server can each profile memory space using the growth rate of size in obtain highest
Memory space using size growth rate corresponding to the second target profile.
S405, obtains the second target profile information for being used for positioning the second target profile.
In embodiments of the present invention, the second target profile information can be used for the second target profile of positioning, such as wrap
Include the filename of the second target profile, the memory space of the second target profile uses size, the preset text of the second target
The information such as the catalogue of part or path.
S406, generation carry the warning information of the second target profile information.
In embodiments of the present invention, management server can push the warning information for carrying the second target profile information
To terminal, so that administrative staff can be by warning information that terminal receives or the file that need to be cleared up, so that pipe
Reason personnel can quickly carry out the file that positioning need to clear up, and effectively improve the efficiency of clearing server.
S407, exports the warning information for carrying the second target profile information.
In embodiments of the present invention, step S400, the embodiment of step S401 and step S407 can be found in it is above-mentioned
The embodiment of step S100, step S101 and step S102 in embodiment, herein without repeating.
In embodiments of the present invention, whether the current resource of monitoring server is more than preset threshold value of warning using size,
Whether when the definite current resource is more than the threshold value of warning using size, detecting the current time can be pre- in preset
In alert time range, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports,
This causes management server to carry out early warning to the resource service condition of server to remove barriers in advance in the suitable time, protects
Hinder server normal operation, improve the security of server operation, and reduce management cost.
Below in conjunction with attached drawing 7-9, describe in detail to management server provided in an embodiment of the present invention.Need to illustrate
, the management server shown in attached drawing 7-9, the method for performing Fig. 1-embodiment illustrated in fig. 6 of the present invention, for the ease of saying
It is bright, it illustrate only and do not disclosed with the relevant part of the embodiment of the present invention, particular technique details, refer to Fig. 1-Fig. 6 of the present invention
Shown embodiment.
Fig. 7 is referred to, for an embodiment of the present invention provides a kind of structure diagram of management server.As shown in fig. 7, this
The management server of inventive embodiments can include:
Whether the first monitoring unit 100, the resource current for monitoring server are more than preset early warning threshold using size
Value.
Detection unit 200, for determining that the current resource is more than the early warning using size when the monitoring unit
During threshold value, detect the current time whether it is preset can be in the range of pre-warning time.
First output unit 300, for when the detection unit determine the current time it is described can pre-warning time
In the range of when, generation warning information simultaneously export.
Wherein it is possible to understand, the function of each function module of the unit in the management server of the present embodiment can root
Implemented according to the method in above method embodiment, the correlation that its specific implementation process is referred to above method embodiment is retouched
State, no longer repeated herein.
In embodiments of the present invention, whether the current resource of monitoring server is more than preset threshold value of warning using size,
Whether when the definite current resource is more than the threshold value of warning using size, detecting the current time can be pre- in preset
In alert time range, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports,
This causes management server to carry out early warning to the resource service condition of server to remove barriers in advance in the suitable time, protects
Hinder server normal operation, improve the security of server operation, and reduce management cost.
Fig. 8 is referred to, for an embodiment of the present invention provides a kind of structure diagram of management server.As shown in figure 8, this
The management server of inventive embodiments can include:
First monitoring unit 100,200 and first output unit 300 of detection unit.
Wherein, the management server includes:
Acquiring unit 400, for obtaining the first resource usage log of server, wherein, the first resource uses day
The resource that will includes the server uses size and the correspondence of time;
Predicting unit 500, for using size and the correspondence of time, prediction service according to the resource of the server
Predicted time of the device resource using size corresponding to alarm threshold value;
Judging unit 600, for judge the predicted time whether it is preset can be in the range of pre-warning time;
When the judging unit determine the predicted time not it is described can be in the range of pre-warning time when, notify the monitoring
Whether the current resource of unit monitoring server is more than preset threshold value of warning using size.
Wherein, the management server further includes:
Second monitoring unit 700, for when the definite current time not it is described can be in the range of pre-warning time when, prison
Survey whether resource current described in the server is more than default alarm threshold value using size;
Second output unit 800, for determining that the resource is more than the report using size when second monitoring unit
During alert threshold value, generate warning message and export, the warning message is used to prompt the resource of the server using size to exceed
The information of alarm threshold value.
Wherein, first output unit 300 includes:
First obtains subelement 10, and the current resource for obtaining each profile in the server uses big
It is small, each profile current resource using size in obtain highest resource and use the first mesh corresponding to size
Mark profile;
Second obtains subelement 20, for obtaining the preset text of first object for being used for positioning the first object profile
Part information;
First generation subelement 30, the warning information of the first object profile information is carried for generating, so that
It is pre- that user by the first object profile information in the warning information positions the first object in the server
Put file;
First output subelement 40, for exporting the warning information of the carrying first object profile information.
Wherein, first output unit 300 includes:
3rd obtains subelement 50, for obtaining the Secondary resource usage log of each profile in the server,
Wherein, resource of the Secondary resource usage log including each profile uses size and the correspondence of time;
First determination subelement 60, for using size and the correspondence of time according to the resource of each profile
Determine that resource of each profile in preset time period uses the growth rate of size;
Second determination subelement 70, the increasing of size is used for the resource in each profile in preset time period
The second target profile corresponding to highest growth rate is determined in long rate;
4th obtains subelement 80, for obtaining the preset text of the second target for being used for positioning the second target profile
Part information;
Second generation unit 90, the warning information of the second target profile information is carried for generating, to use
It is preset that family by the second target profile information in the warning information positions second target in the server
File;
Second output unit 91, for exporting the warning information of the second target profile information of the carrying.
Wherein, first output unit 300 includes:
First transmitting element 92, connects for being sent the warning information to the management server by short message mode
The terminal connect, alternatively,
Second transmitting element 93, connects for being sent the warning information to management server by mode voice call
The terminal connect.
Wherein it is possible to understand, the function of each function module of the unit in the management server of the present embodiment can root
Implemented according to the method in above method embodiment, the correlation that its specific implementation process is referred to above method embodiment is retouched
State, no longer repeated herein.
In embodiments of the present invention, whether the current resource of monitoring server is more than preset threshold value of warning using size,
Whether when the definite current resource is more than the threshold value of warning using size, detecting the current time can be pre- in preset
In alert time range, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports,
This causes management server to carry out early warning to the resource service condition of server to remove barriers in advance in the suitable time, protects
Hinder server normal operation, improve the security of server operation, and reduce management cost.
Fig. 9 is referred to, is the structure diagram an embodiment of the present invention provides another server.It is as shown in figure 9, described
Server 1000 can include:At least one processor 1001, such as CPU, at least one network interface 1004, user interface
1003, memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is used for realization between these components
Connection communication.Wherein, user interface 1003 can include display screen (Display), keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or non-labile storage
Device (non-volatile memory), for example, at least a magnetic disk storage.Memory 1005 optionally can also be at least one
A storage device for being located remotely from aforementioned processor 1001.As shown in figure 9, as a kind of memory of computer-readable storage medium
It can include operating system, network communication module, Subscriber Interface Module SIM and communication connection application program in 1005.
In the terminal 1000 shown in Fig. 9, user interface 1003 is mainly used for providing to the user the interface of input, obtains and uses
The data of family input;Network interface 1004 is used to be connected with server, obtains the data that server is sent;And processor 1001
It can be used for calling the communication connection application program stored in memory 1005, and specifically perform following operation:
Whether the current resource of monitoring server is more than preset threshold value of warning using size;
When the definite current resource is more than the threshold value of warning using size, whether the current time is detected pre-
That puts can be in the range of pre-warning time;
When the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports, wherein,
The warning information is used to prompt the user with the information that the current resource of the server exceedes threshold value of warning using size.
Wherein, whether it is more than preset early warning threshold using size in the current resource of 1001 monitoring server of processor
Before value, the processor 1001 also performs:
The first resource usage log of server is obtained, wherein, the first resource usage log includes the server
Resource use size and the correspondence of time;
Size and the correspondence of time are used according to the resource of the server, predictive server resource is using size
Predicted time corresponding to alarm threshold value;
Judge the predicted time whether it is preset can be in the range of pre-warning time;
When the definite predicted time not it is described can be in the range of pre-warning time when, it is current to perform the monitoring server
Whether resource is more than preset threshold value of warning step using size.
Wherein, the processor 1001 detect the current time whether it is preset can be in the range of pre-warning time after,
The processor 1001 also performs:
When the definite current time not it is described can be in the range of pre-warning time when, monitor current described in the server
Resource whether be more than default alarm threshold value using size;
When the definite resource is more than the alarm threshold value using size, generates warning message and export, the alarm
Information is used for the information for prompting the resource of the server to exceed alarm threshold value using size.
Wherein, handled device 1001 is stated generation warning information and is exported and includes:
The current resource for obtaining each profile in the server uses size, in working as each profile
Preceding resource uses the first object profile corresponding to size using highest resource is obtained in size;
Obtain the first object profile information for being used for positioning the first object profile;
Generation carries the warning information of the first object profile information, so that user passes through in the warning information
First object profile information the first object profile is positioned in the server;
Export the warning information of the carrying first object profile information.
Wherein, the processor 1001 generates warning information and exports and includes:
The Secondary resource usage log of each profile in the server is obtained, wherein, the Secondary resource uses
The resource that daily record includes each profile uses size and the correspondence of time;
Determine each profile default using the correspondence of size and time according to the resource of each profile
Resource in period uses the growth rate of size;
Highest growth rate is determined in growth rate of resource of each profile in preset time period using size
The second corresponding target profile;
Obtain the second target profile information for being used for positioning the second target profile;
Generation carries the warning information of the second target profile information, so that user passes through in the warning information
The second target profile information the second target profile is positioned in the server;
Export the warning information of the second target profile information of the carrying.
Wherein, the processor 1001 generates warning information and exports and includes:
The warning information is sent to the terminal being connected with the management server by short message mode, alternatively,
The warning information is sent to the terminal being connected with management server by mode voice call.
Wherein it is possible to understand, the function of each function module of the unit in the management server of the present embodiment can root
Implemented according to the method in above method embodiment, the correlation that its specific implementation process is referred to above method embodiment is retouched
State, no longer repeated herein.
In embodiments of the present invention, whether the current resource of monitoring server is more than preset threshold value of warning using size,
Whether when the definite current resource is more than the threshold value of warning using size, detecting the current time can be pre- in preset
In alert time range, when the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports,
This causes management server to carry out early warning to the resource service condition of server to remove barriers in advance in the suitable time, protects
Hinder server normal operation, improve the security of server operation, and reduce management cost.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
Enclose, therefore equivalent variations made according to the claims of the present invention, it is still within the scope of the present invention.
Claims (12)
1. one kind monitoring resource using method, it is characterised in that including:
Whether the current resource of monitoring server is more than preset threshold value of warning using size;
When the definite current resource is more than the threshold value of warning using size, whether the current time is detected preset
Can be in the range of pre-warning time;
When the definite current time it is described can be in the range of pre-warning time when, generation warning information simultaneously exports, wherein, it is described
Warning information is used to prompt the user with the information that the current resource of the server exceedes threshold value of warning using size.
2. the method as described in claim 1, it is characterised in that whether the current resource of the monitoring server is big using size
Include before preset threshold value of warning:
The first resource usage log of server is obtained, wherein, the first resource usage log includes the money of the server
Source uses size and the correspondence of time;
Size and the correspondence of time are used according to the resource of the server, predictive server resource is alarm using size
Predicted time corresponding to threshold value;
Judge the predicted time whether it is preset can be in the range of pre-warning time;
When the definite predicted time not it is described can be in the range of pre-warning time when, perform the current resource of the monitoring server
Whether it is more than preset threshold value of warning step using size.
3. method as claimed in claim 2, it is characterised in that the detection current time whether it is preset can early warning when
Between in the range of after further include:
When the definite current time not it is described can be in the range of pre-warning time when, monitor money current described in the server
Whether source is more than default alarm threshold value using size;
When the definite resource is more than the alarm threshold value using size, generates warning message and export, the warning message
Resource for prompting the server uses information of the size more than alarm threshold value.
4. the method as described in claim 1, it is characterised in that it is described generation warning information and export include:
The current resource for obtaining each profile in the server uses size, in the current of each profile
Resource uses the first object profile corresponding to size using highest resource is obtained in size;
Obtain the first object profile information for being used for positioning the first object profile;
Generation carries the warning information of the first object profile information, so that user passes through the in the warning information
One target profile information positions the first object profile in the server;
Export the warning information of the carrying first object profile information.
5. method as claimed in claim 4, it is characterised in that it is described generation warning information and export include:
The Secondary resource usage log of each profile in the server is obtained, wherein, the Secondary resource usage log
Resource including each profile uses size and the correspondence of time;
Determine each profile in preset time using the correspondence of size and time according to the resource of each profile
Resource in section uses the growth rate of size;
Determine that highest growth rate institute is right in growth rate of resource of each profile in preset time period using size
The the second target profile answered;
Obtain the second target profile information for being used for positioning the second target profile;
Generation carries the warning information of the second target profile information, so that user passes through the in the warning information
Two target profile information position the second target profile in the server;
Export the warning information of the second target profile information of the carrying.
6. the method as described in claim 1, it is characterised in that it is described generation warning information and export include:
The warning information is sent to the terminal being connected with the management server by short message mode, alternatively, will be described pre-
Alert information is sent to the terminal being connected with management server by mode voice call.
7. a kind of management server, it is characterised in that the management server includes:
Whether the first monitoring unit, the resource current for monitoring server are more than preset threshold value of warning using size;
Detection unit, for when the monitoring unit determines that the current resource is more than the threshold value of warning using size,
Detect the current time whether it is preset can be in the range of pre-warning time;
First output unit, for when the detection unit determine the current time it is described can be in the range of pre-warning time
When, generate warning information and export, wherein, the warning information is used to prompt the user with the current resource use of the server
Size exceedes the information of threshold value of warning.
8. management server as claimed in claim 7, it is characterised in that the management server includes:
Acquiring unit, for obtaining the first resource usage log of server, wherein, the first resource usage log includes institute
The resource for stating server uses size and the correspondence of time;
Predicting unit, for using size and the correspondence of time, predictive server resource according to the resource of the server
Use predicted time of the size corresponding to alarm threshold value;
Judging unit, for judge the predicted time whether it is preset can be in the range of pre-warning time;
When the judging unit determine the predicted time not it is described can be in the range of pre-warning time when, notify the monitoring unit
Whether the current resource of monitoring server is more than preset threshold value of warning using size.
9. management server as claimed in claim 8, it is characterised in that the management server further includes:
Second monitoring unit, for when the definite current time not it is described can be in the range of pre-warning time when, described in monitoring
Whether current resource described in server is more than default alarm threshold value using size;
Second output unit, for determining that the resource is more than the alarm threshold value using size when second monitoring unit
When, generate warning message and export, the warning message is used to prompt the resource of the server to exceed warning level using size
The information of value.
10. management server as claimed in claim 7, it is characterised in that first output unit includes:
First obtains subelement, and the current resource for obtaining each profile in the server uses size, in institute
The current resource for stating each profile is preset using the first object corresponding to size using highest resource is obtained in size
File;
Second obtains subelement, for obtaining the first object profile letter for being used to position the first object profile
Breath;
First generation subelement, the warning information of the first object profile information is carried for generating, so that user is led to
The first object profile information crossed in the warning information positions the first object profile in the server;
First output subelement, for exporting the warning information of the carrying first object profile information.
11. management server as claimed in claim 10, it is characterised in that first output unit includes:
3rd obtains subelement, for obtaining the Secondary resource usage log of each profile in the server, wherein, institute
State resource of the Secondary resource usage log including each profile and use size and the correspondence of time;
First determination subelement, for being determined respectively using the correspondence of size and time according to the resource of each profile
Resource of the profile in preset time period uses the growth rate of size;
Second determination subelement, uses in the growth rate of size for the resource in each profile in preset time period
Determine the second target profile corresponding to highest growth rate;
4th obtains subelement, for obtaining the second target profile letter for being used to position the second target profile
Breath;
Second generation unit, the warning information of the second target profile information is carried for generating, so that user passes through
The second target profile information in the warning information positions the second target profile in the server;
Second output unit, for exporting the warning information of the second target profile information of the carrying.
12. management server as claimed in claim 7, it is characterised in that first output unit includes:
First transmitting element, for being sent the warning information to the end being connected with the management server by short message mode
End, alternatively,
Second transmitting element, for being sent the warning information to the end being connected with management server by mode voice call
End.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610931401.8A CN108023741B (en) | 2016-10-31 | 2016-10-31 | Monitoring resource use method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610931401.8A CN108023741B (en) | 2016-10-31 | 2016-10-31 | Monitoring resource use method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108023741A true CN108023741A (en) | 2018-05-11 |
CN108023741B CN108023741B (en) | 2020-11-27 |
Family
ID=62069800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610931401.8A Active CN108023741B (en) | 2016-10-31 | 2016-10-31 | Monitoring resource use method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108023741B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112162897A (en) * | 2020-08-27 | 2021-01-01 | 广东卓维网络有限公司 | Public intelligent equipment management method and system |
CN113778778A (en) * | 2020-08-25 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Early warning method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729301A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团湖北有限公司 | Monitor method and monitor system of network anomaly traffic |
US20140149568A1 (en) * | 2012-11-26 | 2014-05-29 | Sap Ag | Monitoring alerts in a computer landscape environment |
CN104916088A (en) * | 2015-05-12 | 2015-09-16 | 广东美的暖通设备有限公司 | Fault alarm method, device and wired controller |
CN105245360A (en) * | 2015-09-08 | 2016-01-13 | 长威信息科技发展股份有限公司 | Data center operation and maintenance monitoring and alarming white list system |
CN106034051A (en) * | 2015-03-12 | 2016-10-19 | 腾讯科技(深圳)有限公司 | Network monitoring data processing method and network monitoring data processing device |
-
2016
- 2016-10-31 CN CN201610931401.8A patent/CN108023741B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729301A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团湖北有限公司 | Monitor method and monitor system of network anomaly traffic |
US20140149568A1 (en) * | 2012-11-26 | 2014-05-29 | Sap Ag | Monitoring alerts in a computer landscape environment |
CN106034051A (en) * | 2015-03-12 | 2016-10-19 | 腾讯科技(深圳)有限公司 | Network monitoring data processing method and network monitoring data processing device |
CN104916088A (en) * | 2015-05-12 | 2015-09-16 | 广东美的暖通设备有限公司 | Fault alarm method, device and wired controller |
CN105245360A (en) * | 2015-09-08 | 2016-01-13 | 长威信息科技发展股份有限公司 | Data center operation and maintenance monitoring and alarming white list system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778778A (en) * | 2020-08-25 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Early warning method and device |
CN112162897A (en) * | 2020-08-27 | 2021-01-01 | 广东卓维网络有限公司 | Public intelligent equipment management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108023741B (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110661659B (en) | Alarm method, device and system and electronic equipment | |
CN110224858B (en) | Log-based alarm method and related device | |
CN103123602B (en) | Based on abnormal alarm method for supervising and the device thereof of java | |
CN101548506B (en) | Apparatus and a security node for use in determining security attacks | |
US9077610B2 (en) | Performing call stack sampling | |
JP6097889B2 (en) | Monitoring system, monitoring device, and inspection device | |
KR100748246B1 (en) | Multi-step integrated security monitoring system and method using intrusion detection system log collection engine and traffic statistic generation engine | |
CN103220173B (en) | A kind of alarm monitoring method and supervisory control system | |
RU2535630C2 (en) | Method and apparatus for collecting mobile communication data | |
CN100370756C (en) | Reset processing method and device for system | |
CN109104438A (en) | Botnet method for early warning and device in a kind of narrowband Internet of Things | |
CN114743341A (en) | Fire-fighting detection alarm method and device based on edge calculation | |
CN104866296A (en) | Data processing method and device | |
CN104243192B (en) | Fault handling method and system | |
CN110262917A (en) | Host self-healing method, device, computer equipment and storage medium | |
CN113342619A (en) | Log monitoring method and system, electronic device and readable medium | |
CN112948223B (en) | Method and device for monitoring running condition | |
CN114490272A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN110674149B (en) | Service data processing method and device, computer equipment and storage medium | |
CN108023741A (en) | One kind monitoring resource using method and server | |
CN100501693C (en) | Method and memory used for analyzing software system CPU occupancy rate | |
WO2024139333A1 (en) | Method and device for predicting operating state of storage cluster | |
CN109165147A (en) | Log print control program, device, system, back-end server and headend equipment | |
US20210133068A1 (en) | Information processing device, information processing system, monitoring method, and recording medium | |
CN104363113A (en) | Business continuity detection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |