Nothing Special   »   [go: up one dir, main page]

CN109150626A - FTP service monitoring method, device, terminal and computer readable storage medium - Google Patents

FTP service monitoring method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109150626A
CN109150626A CN201811124062.8A CN201811124062A CN109150626A CN 109150626 A CN109150626 A CN 109150626A CN 201811124062 A CN201811124062 A CN 201811124062A CN 109150626 A CN109150626 A CN 109150626A
Authority
CN
China
Prior art keywords
service
ftp service
state parameter
ftp
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811124062.8A
Other languages
Chinese (zh)
Inventor
罗雪莹
张小博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811124062.8A priority Critical patent/CN109150626A/en
Publication of CN109150626A publication Critical patent/CN109150626A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of FTP service monitoring methods, comprising: when detecting FTP service operation, obtains preset service state parameter according to the setting period;Wherein, preset service state parameter includes at least one of cluster service state parameter, FPT service state parameter, file system state parameter, osd state parameter and mds state parameter;Judge whether preset service state parameter belongs to corresponding service state normal range (NR);If it is not, then sending FTP service warning information according to the first preset path.This method is by being monitored the preset service state parameter that may cause FTP service exception, so that related technical personnel can eliminate the possibility of potential problems generation in time, guarantees that FTP service is reliably run, and then guarantee that client traffic operates normally;The invention also discloses a kind of FTP service monitoring device, terminal and computer readable storage mediums, have above-mentioned beneficial effect.

Description

FTP service monitoring method, device, terminal and computer readable storage medium
Technical field
The present invention relates to FTP service field, in particular to a kind of FTP service monitoring method, device, terminal and computer can Read storage medium.
Background technique
The FTP (File Transport Protocol, File Transfer Protocol) that storage product uses at present is served by ten Divide extensively, the main file realized between client and server transmits.Currently need to carry out the feelings of long-time business in client Under condition, it may occur that FTP service disconnection or FTP service abnormal conditions.If High Availabitity service at this time is also abnormal or switching time compared with It is long, then the ongoing business of client is likely to interrupt.When interrupting, client must restart all industry Business, not only influences the progress of client traffic in this way, and wastes time, and influences business efficiency.
Summary of the invention
The object of the present invention is to provide a kind of FTP service monitoring method, device, terminal and computer readable storage medium, Related technical personnel can be allow to eliminate the possibility of potential problems generation in time, guarantee that FTP service is reliably run, Jin Erbao Client traffic is demonstrate,proved to operate normally.
In order to solve the above technical problems, the present invention provides a kind of FTP service monitoring method, comprising:
When detecting FTP service operation, preset service state parameter is obtained according to the setting period;Wherein, described default Service state parameter includes cluster service state parameter, FPT service state parameter, file system state parameter, osd state parameter And at least one of mds state parameter;
Judge whether the preset service state parameter belongs to corresponding service state normal range (NR);
If it is not, then sending FTP service warning information according to the first preset path.
It is optionally, described to send FTP service warning information according to the first preset path, comprising:
FTP service warning level is determined according to abnormal preset service state parameter;
FTP service warning information corresponding with the FTP service warning level is sent according to the first preset path.
Optionally, when detecting that the FTP service is operating abnormally, further includes:
Judge whether the reason of FTP service is operating abnormally is known FTP service abnormal cause;
If so, sending the alarm comprising the corresponding FTP service abnormal cause of the FTP service according to the second preset path Information;
If it is not, then sending the warning message comprising related FTP service warning information according to the second preset path.
Optionally, the FTP service monitoring method, further includes:
The average bandwidth of client within a preset period of time is calculated in real time uses numerical value;
When the average bandwidth is less than bandwidth threshold using numerical value, then urgent early warning is sent according to third preset path and believed Breath.
The present invention also provides a kind of FTP service monitoring devices, comprising:
Module is obtained, for obtaining preset service state parameter according to the setting period when detecting FTP service operation; Wherein, the preset service state parameter includes cluster service state parameter, FPT service state parameter, file system state ginseng At least one of number, osd state parameter and mds state parameter;
First judgment module, for judging whether the preset service state parameter is belonging to corresponding service state just Normal range;
Warning module, for being not belonging to the preset service state parameter of corresponding service state normal range (NR) if it exists, then FTP service warning information is sent according to the first preset path.
Optionally, the warning module, comprising:
Warning level determination unit, for determining FTP service warning level according to abnormal preset service state parameter;
Prewarning unit, for sending FTP service corresponding with the FTP service warning level according to the first preset path Warning information.
Optionally, the FTP service monitoring device, further includes:
Second judgment module, for when detecting that the FTP service is operating abnormally, judging that the FTP service operation is different Whether normal reason is known FTP service abnormal cause;
Alarm module, if the reason of being operating abnormally for the FTP service is known FTP service abnormal cause, according to Second preset path sends the warning message comprising the corresponding FTP service abnormal cause of the FTP service;If the FTP service The reason of operation exception is not known FTP service abnormal cause, then sends according to the second preset path pre- comprising related FTP service The warning message of alert information.
Optionally, the FTP service monitoring device, further includes:
Bandwidth warning module uses numerical value for calculating the average bandwidth of client within a preset period of time in real time;Work as institute When stating average bandwidth and being less than bandwidth threshold using numerical value, then urgent warning information is sent according to third preset path.
The present invention also provides a kind of terminals, comprising:
Memory, for storing computer program;
Processor, the step of FTP service monitoring method described above is realized when for executing the computer program.
The present invention also provides a kind of computer readable storage medium, calculating is stored on the computer readable storage medium The step of machine program, the computer program realizes FTP service monitoring method described above when being executed by processor.
A kind of FTP service monitoring method provided by the present invention, comprising: when detecting FTP service operation, according to setting Period obtains preset service state parameter;Wherein, preset service state parameter includes cluster service state parameter, FPT service shape At least one of state parameter, file system state parameter, osd state parameter and mds state parameter;Judge preset service state Whether parameter belongs to corresponding service state normal range (NR);If it is not, then sending FTP service early warning according to the first preset path Information.
As it can be seen that this method works as discovery by being monitored to the preset service state parameter that may cause FTP service exception Illustrate that the FTP service may be subjected to threat when abnormal preset service state parameter, thus can according to the first preset path to Default technical staff sends FTP service warning information, so that related technical personnel can recognize that FTP service may be by time The possibility for threatening and eliminating in time potential problems and occur arrived, guarantees that FTP service is reliably run, and then guarantee client traffic just Often operation;The present invention also provides a kind of FTP service monitoring device, terminal and computer readable storage mediums, have with above-mentioned Beneficial effect, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of FTP service monitoring method provided by the embodiment of the present invention;
Fig. 2 is the structural block diagram of FTP service monitoring device provided by the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
If FTP service is abnormal in the prior art, the progress of client traffic can be seriously affected, client is caused serious Economic loss.But for developer, it can only all be analyzed after problem generation at present, to solve the exception feelings Condition.But at this time since the exception of FTP service has had resulted in irremediable influence to client traffic.Therefore, this reality Example is applied to be primarily implemented in front of FTP service is abnormal, by the monitoring to preset service state parameter, occur it is any can shadow When ringing the situation for arriving FTP service safety, FTP service warning information can be sent to related technical personnel in time, so as to technical staff Before FTP service exception can potential threat existing for processing system in time, guarantee the normal operation of FTP service, in turn Guarantee that client traffic operates normally.The present embodiment can be applied in memory software field, be assisted mainly for NAS in storage product A kind of method for early warning that FTP service provides in view.Specifically referring to FIG. 1, Fig. 1 is FTP service provided by the embodiment of the present invention The flow chart of monitoring method;This method may include:
S101: when detecting FTP service operation, preset service state parameter is obtained according to the setting period;Wherein, it presets Service state parameter includes cluster service state parameter, FPT service state parameter, file system state parameter, osd state parameter And at least one of mds state parameter.
Specifically, the main purpose of the step be obtain preset service state parameter, and then it is subsequent can be according to acquisition Preset service state parameter threatens appearance in turn abnormal with the presence or absence of exception, to judge whether FTP service will receive.The present embodiment In the type and quantity of preset service state parameter are not defined, such as user can analyze and FTP service safely transport The parameter of row related (can be directly related be also possible to directly related and indirect correlation), and therefrom choose and be affected, Or all parameters relevant to FTP service safe operation are set to preset service state parameter.It presets under normal circumstances Service state parameter can be cluster service state parameter, FPT service state parameter, file system state parameter, osd In (Object Storage Device, object storage) state parameter and mds (Metadate Service) state parameter extremely Few one kind.Can certainly all have either any combination.
The present embodiment avoids the waste of unnecessary hardware computing resource to improve hardware utilization, in the present embodiment Only when detecting FTP service operation, preset service state parameter is just obtained.It is not limited in the present embodiment and detects that FTP takes The mode of business operation, such as can be and issue confirmation signal when detecting unlatching FTP service execution, it is pre- according to the acquisition of setting period If service state parameter;Can certainly receive when determining the instruction for opening FTP service of user's input, according to setting week Phase obtains preset service state parameter.
It can be understood that the present embodiment does not limit the specific value in setting period.Such as can be in real time, it can also be with It is 10 seconds.Of course for improve FTP service monitoring reliability, here can in real time acquisition system preset service state ginseng Number.In order to further increase hardware utilization, multiple predetermined periods can also be set in the present embodiment, are run in different time sections When FTP service, the acquisition of corresponding setting period progress preset service state parameter can choose.Such as client traffic peak hours/period Preset service state parameter can be obtained in real time, and client traffic free time section can obtain pre- according to 1 minute setting period If service state parameter.
S102: judge whether preset service state parameter belongs to corresponding service state normal range (NR).
Specifically, a corresponding normal model of service state is arranged for each preset service state parameter in the present embodiment It encloses.I.e. when some preset service state parameter of acquisition belongs in its corresponding service state normal range (NR), illustrate that this is default Service state parameter is normal preset service state parameter, if being not belonging in its corresponding service state normal range (NR), explanation The preset service state parameter is abnormal preset service state parameter.The present embodiment is not to each preset service state parameter pair The numerical value for the service state normal range (NR) answered is defined, and user can set according to the actual situation.It can certainly be right Service state normal range (NR) is modified.
The step compares the corresponding service state normal range (NR) of each preset service state parameter, sentences Whether disconnected preset service state parameter belongs to corresponding service state normal range (NR).Since the present embodiment is in order in FTP Service operation occurs can recognizing whether normal operation (whether there is safe operation to the FTP service before exception in advance Threaten), the threat that FTP service may be subjected to can be recognized in time so as to related technical personnel and eliminates potential problems in time The possibility of generation guarantees that FTP service is reliably run, and then guarantees that client traffic operates normally.Therefore default simply by the presence of having When service state parameter is not belonging to its corresponding service state normal range (NR), FTP service is considered as it is possible that exception.Also It is when saying that only whole preset service state parameters belongs to corresponding service state normal range (NR), just to think current FTP service normal operation, there is no the threats of safe operation.
S103: if it is not, then sending FTP service warning information according to the first preset path.
Specifically, the main purpose of the step is when there are preset service state parameters to be not belonging to its corresponding service shape When state normal range (NR), FTP service warning information is sent according to the first preset path.Related technical personnel are understood in time Abnormal risk is faced to the operation of current FTP service, so that related technical personnel arrange in time after obtaining the FTP service warning information The serious problems for solving to may cause are looked into, system is repaired, so that FTP service operates in the environment of health, Jin Ercong The case where FTP service is operating abnormally appearance is prevented in root, ensure that client traffic operates normally.
The form of the first preset path is not defined in the present embodiment, can be short message path, be also possible to Mail path etc..Short message address and/or the email address of related technical personnel can be set in advance in user, when there are default clothes When business state parameter is not belonging to its corresponding service state normal range (NR), FTP service early warning letter is sent according to the first preset path Breath.The present embodiment is not also defined the quantity of the first preset path, such as can be the short message address of a technical staff Or email address;Either the short message address of technical staff and email address;Either multiple technical staff's is short Believe address or email address;Either the short message address of multiple technical staff and person's email address.Certain user can be to the One preset path is modified.
Further, the present embodiment is not defined the particular content of FTP service warning information.Such as FTP service is pre- Alert information can be unified prompt information, i.e., either which preset service state parameter is not belonging to its corresponding service state Normal range (NR) all sends the same FTP service warning information.It can be preferably to current in system of course for technical staff Whether FTP service, which can have risk, is assessed, and it is (pre- that FTP service warning information may include abnormal preset service state parameter If service state parameter is not belonging to the preset service state parameter of its corresponding service state normal range (NR)) information, the information It can be the specific value and numberical range under normal circumstances of the preset service state parameter, or can also be comprising should The reason etc. of the corresponding FTP service exception that may cause of preset service state parameter.Due to every kind of preset service state parameter pair A possibility that influence of FTP service may not be identical, such as the preset service state parameter exception FTP service having is abnormal be just 90%, a possibility that some preset service state parameter exception FTP services is abnormal is just 30%.And the same preset service state The degree of the corresponding service state normal range (NR) of parameter drift-out is different, also can influence to FTP service it is not identical.Therefore in order to make The degree of risk of FTP service can be understood in time by obtaining related technical personnel, and FTP service warning information may include corresponding early warning Rank.Such as can be particularly urgent warning information, and urgent warning information, more urgent warning information, general warning information.Certainly The mode of consumer's risk degree i.e. warning level is not prompted to be defined FTP service warning information in the present embodiment. Such as can be and significance level is distinguished by the content of FTP service warning information, it is also possible to by sending FTP service early warning letter The frequency of breath embodies significance level.Preferably, sending FTP service warning information according to the first preset path may include:
FTP service warning level is determined according to abnormal preset service state parameter;
FTP service warning information corresponding with FTP service warning level is sent according to the first preset path.
Specifically, the present embodiment is associated by preset service state parameter and FTP service warning level, in this way when When determining abnormal preset service state parameter, so that it may determine its corresponding FTP service warning level, it is then pre- according to first If path sends FTP service warning information corresponding with FTP service warning level.The present embodiment is not to preset service state The incidence relation of parameter and FTP service warning level is defined.
At this point, FTP service warning information is associated with FTP service warning level.Such as every kind of FTP clothes can be set The FTP service warning information for warning level corresponding content of being engaged in.Either every kind of FTP service warning level, which is arranged, corresponds to FTP service The transmission frequency of warning information.The present embodiment is not limited thereto.
For example, providing correlation when there are preset service state parameters to be not belonging to its corresponding service state normal range (NR) Abnormal mail early warning or short message warning information, and warning information grade can be set as needed as particularly urgent, promptly, compared with Promptly, general four kinds of grades, when receiving warning information (i.e. FTP service warning information), developer can be according to urgency level The examination of carry out problem and solution.And mail early warning or short message warning can be set according to grade, such as particularly urgent, promptly Event can carry out short message warning, for important or the common event, can carry out mail early warning etc., be configured according to the actual situation.
S104: if so, return step S101.
This step illustrates that whole preset service state parameters belongs to corresponding service state normal range (NR), i.e., Whole preset service state parameters is normal, illustrates current FTP service normal operation, there is no the threats of safe operation.This As long as when continue according to setting the period obtain preset service state parameter, i.e. return step S101.
Based on the above-mentioned technical proposal, FTP service monitoring method provided in an embodiment of the present invention, this method is by may draw The preset service state parameter for playing FTP service exception is monitored, and when the preset service state parameter to note abnormalities, explanation should FTP service may be subjected to threat, therefore can send FTP service early warning letter to default technical staff according to the first preset path Breath, and the rank of corresponding FTP service warning information can be set, so that related technical personnel can recognize FTP service in time The severity of the threat and threat that may be subjected to simultaneously eliminates the possibility that potential problems occur in time, guarantees that FTP service can The operation leaned on, and then guarantee that client traffic operates normally.
When FTP service is operating abnormally, the message that developer (namely related technical personnel) obtains is often more stagnant Afterwards, and due to situ configuration etc. is a series of, so that can sometimes miss critical issue reason.Cause to transport FTP service The solution of row abnormal problem takes a long time, and further influences the operation of client traffic.In order to enable FTP service can when being operating abnormally Quickly to eliminate exception, based on the above embodiment, can also include: when detecting that FTP service is operating abnormally in the present embodiment
Judge whether the reason of FTP service is operating abnormally is known FTP service abnormal cause;
If so, sending the alarm signal comprising the corresponding FTP service abnormal cause of FTP service according to the second preset path Breath;
If it is not, then sending the warning message comprising related FTP service warning information according to the second preset path.
Specifically, first having to determine the reason of FTP service is operating abnormally when FTP service is operating abnormally.It can protect in advance Deposit all known reason information for causing FTP service disconnection or exception.Such as may include osd exception, mds is abnormal and literary FTP service disconnection caused by part system exception or exception root because.Certain user can also according to the actual situation take known FTP Business abnormal cause is modified, such as increase known reason etc..
It is for side that whether the reason of FTP service operation exception is distinguished in the present embodiment, which is known FTP service abnormal cause, Continue technical staff after an action of the bowels when repairing to FTP service, it being capable of quick positioning question.When FTP service be operating abnormally the reason of It is known FTP service abnormal cause, then sending according to the second preset path includes the corresponding FTP service abnormal cause of FTP service Warning message.The reason of related technical personnel's FTP service operation troubles can be informed when sending warning message, it is convenient for Technical staff can quickly solve the technical problem.The present embodiment is not defined the particular content of warning message at this time, As long as may include the corresponding FTP service abnormal cause of FTP service, user can add corresponding report according to the actual situation Alert content.It is not known FTP service abnormal cause when the reason of FTP service operation exception, then is sent according to the second preset path Warning message comprising related FTP service warning information.I.e. at this time when sending warning message due to not knowing that FTP service is corresponding FTP service abnormal cause, in order on this basis as far as possible convenient for technical staff carry out positioning problems, can be by relevant FTP The content of service warning information is sent to technical staff, prevents technical staff when carrying out FTP service reparation extremely, due to log The reasons such as capped cannot achieve positioning problems.Go out before technical staff can be abnormal according to the FTP service of offer at this time The FTP service warning information now crossed, problem of implementation positioning.The present embodiment does not limit the particular content of warning message at this time Fixed, as long as may include related FTP service warning information, user can be added according to the actual situation in corresponding alarm Hold.
The form of the second preset path is not defined in the present embodiment, can be short message path, be also possible to Mail path etc..Short message address and/or the email address of related technical personnel can be set in advance in user.The present embodiment is not also right The quantity of second preset path is defined, such as can be short message address or the email address of a technical staff;Or It is short message address and the email address of a technical staff;Either the short message address of multiple technical staff or mailbox Location;Either the short message address of multiple technical staff and person's email address.Certain user can repair the second preset path Change.The first preset path and the second preset path can be identical in the present embodiment, naturally it is also possible to which not identical, user can basis Actual demand is set.
The form of third preset path is not defined in the present embodiment, can be short message path, be also possible to Mail path etc..Short message address and/or the email address of related technical personnel can be set in advance in user.The present embodiment is not also right The quantity of third preset path is defined, such as can be short message address or the email address of a technical staff;Or It is short message address and the email address of a technical staff;Either the short message address of multiple technical staff or mailbox Location;Either the short message address of multiple technical staff and person's email address.Certain user can repair third preset path Change.In the present embodiment third preset path can be identical with the first preset path and/or the second preset path, certainly may be used With not identical, user can set according to actual needs.
The process is exemplified below: when FTP service exception or FTP service disconnection, first detecting whether to be known original Because caused by, if it is known reason caused by, then be to have solved not to be incorporated into or known reason phase according to known reason judgement The problem of the reason of pass, causes, to carry out positioning solution.If caused by unknown cause, then excluding known reason, exploit person Member combines warning message to carry out subsequent further examining report, until detection is gone wrong, root is because carrying out accurate positionin solution, saving It has saved positioning problems and has solved the time, provided guarantee for the timely follow-up of follow-up business.Such as believed using related FTP service early warning Breath is detected.
Based on the above-mentioned technical proposal, FTP service monitoring method provided in an embodiment of the present invention, this method can detect automatically The warning message of warning message and warning value under FTP service abnormal conditions, and pass through mail alarm or the shape of SMS alarm Formula informs developer, to check the serious problems for solving to may cause in time.Therefore this method is not only eliminated potential in time The possibility that problem occurs, and after problem generation, problem can be checked in time, to solve the problems, such as to provide convenience, improved The efficiency of Resolving probiems.Specifically, on the one hand not only may understand current cluster in FTP service and service shape before generation problem State solves the potential problems that may occur in time, prevents the generation of problem.On the other hand, after problem occurring in time Accurate positionin is provided convenience, and the efficiency of Resolving probiems is improved.On the one hand ensure that the ongoing business of client operates normally, On the other hand, it solves a problem promptly, provides guarantee for the timely follow-up of follow-up business, the after-sale service of more product provides Solid guarantee.
Based on above-mentioned any embodiment, the present embodiment can also include:
The average bandwidth of client within a preset period of time is calculated in real time uses numerical value;
When average bandwidth is less than bandwidth threshold using numerical value, then urgent warning information is sent according to third preset path.
Specifically, the present embodiment increase is integrated with FTP bandwidth statistics warning function, the major function of bandwidth statistics is real-time Detect client bandwidth service condition.The average bandwidth of client within a preset period of time is calculated in real time and uses numerical value, when flat When equal bandwidth is less than bandwidth threshold using numerical value, then urgent warning information is sent according to third preset path.Such as it calculates in real time Client bandwidth average value in 10s sends urgent warning information according to third preset path when average value is 0.It says at this time Bright client traffic is not run substantially, then proves that be likely due to FTP service causes client traffic to interrupt extremely, therefore count Bandwidth out is less than bandwidth threshold using numerical value.The present embodiment is not defined preset time period.Such as it can be 10 seconds. The present embodiment, which is not also defined bandwidth threshold, for example can be 0.User can be defined according to practical application scene.When Right the present embodiment is not also defined average bandwidth using the calculation of numerical value.Such as it can be the current band of real-time statistics Width uses numerical value, and the total bandwidth that cumulative statistics preset time period (such as 10S) obtains uses numerical value, then divided by preset time period It has just obtained average bandwidth and has used numerical value.
Based on the above-mentioned technical proposal, FTP service monitoring method provided in an embodiment of the present invention, this method can be realized pair FTP service operation exception is prevented, and when FTP service operation is abnormal, being capable of fast problem of implementation positioning.
FTP service monitoring device provided in an embodiment of the present invention, terminal and computer readable storage medium are carried out below It introduces, FTP service monitoring device, terminal and computer readable storage medium described below and above-described FTP service are supervised Survey method can correspond to each other reference.
Referring to FIG. 2, Fig. 2 is the structural block diagram of FTP service monitoring device provided by the embodiment of the present invention;The device can To include:
Module 100 is obtained, for obtaining preset service state ginseng according to the setting period when detecting FTP service operation Number;Wherein, preset service state parameter includes cluster service state parameter, FPT service state parameter, file system state ginseng At least one of number, osd state parameter and mds state parameter;
First judgment module 200, for judging whether preset service state parameter is belonging to corresponding service state just Normal range;
Warning module 300, for being not belonging to the preset service state parameter of corresponding service state normal range (NR) if it exists, Then FTP service warning information is sent according to the first preset path.
Based on the above embodiment, warning module 300 may include:
Warning level determination unit, for determining FTP service warning level according to abnormal preset service state parameter;
Prewarning unit, for sending FTP service early warning corresponding with FTP service warning level according to the first preset path Information.
Based on above-mentioned any embodiment, which can also include:
Second judgment module, for judging the reason of FTP service is operating abnormally when detecting that FTP service is operating abnormally It whether is known FTP service abnormal cause;
Alarm module, if the reason of being operating abnormally for FTP service is known FTP service abnormal cause, according to second Preset path sends the warning message comprising the corresponding FTP service abnormal cause of FTP service;If the original that FTP service is operating abnormally Because of FTP service abnormal cause known to not being, then the alarm comprising related FTP service warning information is sent according to the second preset path Information.
Based on above-mentioned any embodiment, which can also include:
Bandwidth warning module uses numerical value for calculating the average bandwidth of client within a preset period of time in real time;When flat When equal bandwidth is less than bandwidth threshold using numerical value, then urgent warning information is sent according to third preset path.
It should be noted that being based on above-mentioned any embodiment, described device can be to be realized based on programmable logic device , programmable logic device includes FPGA, CPLD, single-chip microcontroller etc..
The embodiment of the present invention also provides a kind of terminal, comprising: memory, for storing computer program;Processor is used for The step of realizing FTP service monitoring method described in above-mentioned any embodiment when executing computer program.If processor is for holding It is realized when row computer program when detecting FTP service operation, obtains preset service state parameter according to the setting period;Its In, preset service state parameter includes cluster service state parameter, FPT service state parameter, file system state parameter, osd At least one of state parameter and mds state parameter;Judge whether preset service state parameter belongs to corresponding service State normal range (NR);If it is not, then sending FTP service warning information according to the first preset path.
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage medium Sequence, the step of FTP service monitoring method described in above-mentioned any embodiment is realized when computer program is executed by processor.Such as meter It is realized when calculation machine program is executed by processor when detecting FTP service operation, obtains preset service state according to the setting period Parameter;Wherein, preset service state parameter includes cluster service state parameter, FPT service state parameter, file system state ginseng At least one of number, osd state parameter and mds state parameter;Judge whether preset service state parameter belongs to respective correspondence Service state normal range (NR);If it is not, then sending FTP service warning information according to the first preset path.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Above to a kind of FTP service monitoring method provided by the present invention, device, terminal and computer readable storage medium It is described in detail.Used herein a specific example illustrates the principle and implementation of the invention, the above reality The explanation for applying example is merely used to help understand method and its core concept of the invention.It should be pointed out that for the art For those of ordinary skill, without departing from the principle of the present invention, can with several improvements and modifications are made to the present invention, These improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims (10)

1. a kind of FTP service monitoring method characterized by comprising
When detecting FTP service operation, preset service state parameter is obtained according to the setting period;Wherein, the preset service State parameter include cluster service state parameter, FPT service state parameter, file system state parameter, osd state parameter and At least one of mds state parameter;
Judge whether the preset service state parameter belongs to corresponding service state normal range (NR);
If it is not, then sending FTP service warning information according to the first preset path.
2. FTP service monitoring method according to claim 1, which is characterized in that described to be sent according to the first preset path FTP service warning information, comprising:
FTP service warning level is determined according to abnormal preset service state parameter;
FTP service warning information corresponding with the FTP service warning level is sent according to the first preset path.
3. FTP service monitoring method according to claim 1, which is characterized in that when detecting that FTP service operation is different Chang Shi, further includes:
Judge whether the reason of FTP service is operating abnormally is known FTP service abnormal cause;
If so, sending the alarm signal comprising the corresponding FTP service abnormal cause of the FTP service according to the second preset path Breath;
If it is not, then sending the warning message comprising related FTP service warning information according to the second preset path.
4. FTP service monitoring method according to claim 1-3, which is characterized in that further include:
The average bandwidth of client within a preset period of time is calculated in real time uses numerical value;
When the average bandwidth is less than bandwidth threshold using numerical value, then urgent warning information is sent according to third preset path.
5. a kind of FTP service monitoring device characterized by comprising
Module is obtained, for obtaining preset service state parameter according to the setting period when detecting FTP service operation;Wherein, The preset service state parameter includes cluster service state parameter, FPT service state parameter, file system state parameter, osd At least one of state parameter and mds state parameter;
First judgment module, for judging whether the preset service state parameter belongs to the normal model of corresponding service state It encloses;
Warning module, for being not belonging to the preset service state parameter of corresponding service state normal range (NR) if it exists, then according to First preset path sends FTP service warning information.
6. FTP service monitoring device according to claim 5, which is characterized in that the warning module, comprising:
Warning level determination unit, for determining FTP service warning level according to abnormal preset service state parameter;
Prewarning unit, for sending FTP service early warning corresponding with the FTP service warning level according to the first preset path Information.
7. FTP service monitoring device according to claim 5, which is characterized in that further include:
Second judgment module, for when detecting that the FTP service is operating abnormally, judging what the FTP service was operating abnormally Whether reason is known FTP service abnormal cause;
Alarm module, if the reason of being operating abnormally for the FTP service is known FTP service abnormal cause, according to second Preset path sends the warning message comprising the corresponding FTP service abnormal cause of the FTP service;If the FTP service operation Abnormal reason is not known FTP service abnormal cause, then sends according to the second preset path comprising related FTP service early warning letter The warning message of breath.
8. according to the described in any item FTP service monitoring devices of claim 5-7, which is characterized in that further include:
Bandwidth warning module uses numerical value for calculating the average bandwidth of client within a preset period of time in real time;When described flat When equal bandwidth is less than bandwidth threshold using numerical value, then urgent warning information is sent according to third preset path.
9. a kind of terminal characterized by comprising
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the described in any item FTP service monitorings of Claims 1-4 The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes such as Claims 1-4 described in any item FTP service monitoring sides when the computer program is executed by processor The step of method.
CN201811124062.8A 2018-09-26 2018-09-26 FTP service monitoring method, device, terminal and computer readable storage medium Pending CN109150626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811124062.8A CN109150626A (en) 2018-09-26 2018-09-26 FTP service monitoring method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811124062.8A CN109150626A (en) 2018-09-26 2018-09-26 FTP service monitoring method, device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109150626A true CN109150626A (en) 2019-01-04

Family

ID=64812721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811124062.8A Pending CN109150626A (en) 2018-09-26 2018-09-26 FTP service monitoring method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109150626A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417578A (en) * 2019-06-20 2019-11-05 国网辽宁省电力有限公司信息通信分公司 A kind of exception FTP connection alert processing method
CN110908824A (en) * 2019-12-04 2020-03-24 支付宝(杭州)信息技术有限公司 Fault identification method, device and equipment
CN111683102A (en) * 2020-06-17 2020-09-18 绿盟科技集团股份有限公司 FTP behavior data processing method, and method and device for identifying abnormal FTP behavior
CN117931756A (en) * 2024-03-25 2024-04-26 广州睿帆科技有限公司 FTP file real-time monitoring and analyzing system and method based on Flink

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193436A1 (en) * 2008-01-30 2009-07-30 Inventec Corporation Alarm display system of cluster storage system and method thereof
CN107968727A (en) * 2017-11-29 2018-04-27 郑州云海信息技术有限公司 A kind of detection method, device and the medium of CIFS services
CN108092836A (en) * 2016-11-21 2018-05-29 深圳市蓝希领地科技有限公司 The monitoring method and device of a kind of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193436A1 (en) * 2008-01-30 2009-07-30 Inventec Corporation Alarm display system of cluster storage system and method thereof
CN108092836A (en) * 2016-11-21 2018-05-29 深圳市蓝希领地科技有限公司 The monitoring method and device of a kind of server
CN107968727A (en) * 2017-11-29 2018-04-27 郑州云海信息技术有限公司 A kind of detection method, device and the medium of CIFS services

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417578A (en) * 2019-06-20 2019-11-05 国网辽宁省电力有限公司信息通信分公司 A kind of exception FTP connection alert processing method
CN110417578B (en) * 2019-06-20 2022-03-11 国网辽宁省电力有限公司信息通信分公司 Abnormal FTP connection alarm processing method
CN110908824A (en) * 2019-12-04 2020-03-24 支付宝(杭州)信息技术有限公司 Fault identification method, device and equipment
CN111683102A (en) * 2020-06-17 2020-09-18 绿盟科技集团股份有限公司 FTP behavior data processing method, and method and device for identifying abnormal FTP behavior
CN111683102B (en) * 2020-06-17 2022-12-06 绿盟科技集团股份有限公司 FTP behavior data processing method, and method and device for identifying abnormal FTP behavior
CN117931756A (en) * 2024-03-25 2024-04-26 广州睿帆科技有限公司 FTP file real-time monitoring and analyzing system and method based on Flink
CN117931756B (en) * 2024-03-25 2024-06-04 广州睿帆科技有限公司 FTP file real-time monitoring and analyzing system and method based on Flink

Similar Documents

Publication Publication Date Title
CN110224858B (en) Log-based alarm method and related device
CN110661659B (en) Alarm method, device and system and electronic equipment
CN109150626A (en) FTP service monitoring method, device, terminal and computer readable storage medium
CN108809757B (en) System alarm method, storage medium and server
CN110618890B (en) Fault processing method and device, electronic equipment and computer readable storage medium
US10896073B1 (en) Actionability metric generation for events
CN108847008A (en) System alarm processing method, device, server and storage medium
WO2018125628A1 (en) A network monitor and method for event based prediction of radio network outages and their root cause
US7278048B2 (en) Method, system and computer program product for improving system reliability
US20210271555A1 (en) Traffic data self-recovery processing method, readable storage medium, server and apparatus
CN110739637A (en) power transmission line monitoring method, system, terminal and storage medium
CN111062503B (en) Power grid monitoring alarm processing method, system, terminal and storage medium
EP2899918A1 (en) Method, apparatus and system for detecting network element load imbalance
CN111857555A (en) Method, apparatus and program product for avoiding failure events of disk arrays
CN110674149B (en) Service data processing method and device, computer equipment and storage medium
CN107968727A (en) A kind of detection method, device and the medium of CIFS services
CN111124818B (en) Monitoring method, device and equipment for Expander
CN110633165A (en) Fault processing method, device, system server and computer readable storage medium
CN113835961B (en) Alarm information monitoring method, device, server and storage medium
CN117252640A (en) Fuse degradation method, rule engine system and electronic equipment
CN116483663A (en) Abnormality warning method and device for platform
CN112152878B (en) Monitoring and management method, system, terminal and storage medium for digital channel of transformer substation
CN109508356B (en) Data abnormality early warning method, device, computer equipment and storage medium
CN115241546A (en) Method and device for determining fault of battery system, electronic equipment and storage medium
CN112181780A (en) Detection and alarm method, device and equipment for containerized platform core component

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190104

RJ01 Rejection of invention patent application after publication