CN102347874A - Ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system - Google Patents

Ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system Download PDF

Info

Publication number
CN102347874A
CN102347874A CN2011103562685A CN201110356268A CN102347874A CN 102347874 A CN102347874 A CN 102347874A CN 2011103562685 A CN2011103562685 A CN 2011103562685A CN 201110356268 A CN201110356268 A CN 201110356268A CN 102347874 A CN102347874 A CN 102347874A
Authority
CN
China
Prior art keywords
ftp
ssh
service
module
response
Prior art date
Application number
CN2011103562685A
Other languages
Chinese (zh)
Inventor
王达心
Original Assignee
百度在线网络技术(北京)有限公司
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 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Priority to CN2011103562685A priority Critical patent/CN102347874A/en
Publication of CN102347874A publication Critical patent/CN102347874A/en

Links

Abstract

The invention provides an ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system. The ftp service monitoring method comprises the following steps of: sending an ftp connecting request; returning response content according to the ftp connecting request; judging whether the response content contains predetermined characters; judging that the service of an ftp is normal if the response content contains the predetermined characters; and judging that the service of the ftp is abnormal if the response content does not contain the predetermined characters. According to the ftp and ssh service monitoring method and system of the embodiment, whether the services of the ftp and the ssh are normal can be judged by whether the returned response content contains the predetermined characters. The monitoring method has high accuracy, efficiency and safety and cannot leak user names and passwords.

Description

ftp和SSh服务监控方法及系统 ftp and SSh service monitoring method and system

技术领域 FIELD

[0001] 本发明涉及服务监控技术领域,特别涉及一种ftp和SSh服务监控方法及系统。 [0001] The present invention relates to a technical field service monitoring, ftp, and in particular to a method and system for monitoring SSh services. 背景技术 Background technique

[0002] 目前一般的ftp (File Transfer Protocol,文件传输协议)、ssh (secure shell, 安全外壳协议)监控有两种方式,第一种是检测端口是否连接;第二种是使用独立的监控程序,模拟真实用户登录,验证服务是否正常。 [0002] Current general ftp (File Transfer Protocol, File Transfer Protocol), ssh (secure shell, Secure Shell Protocol), there are two ways to monitor, whether a first detection port is connected; second is to use a separate monitor simulate real user login authentication service is normal.

[0003] 对于第一种方法,不能完全判断服务是否正常,当端口正常而服务异常时监控失效。 [0003] For the first method, whether the services are not completely normal, when the port monitor normal and abnormal service failure. 对于第二种方法,需要在监控程序中写入用户名和密码,因此存在安全隐患,可能泄露用户名和密码。 For the second method, the monitoring program needs to be written in a user name and password, so there are security risks, possible disclosure of user name and password.

发明内容 SUMMARY

[0004] 本发明的目的旨在至少解决上述技术缺陷之一。 [0004] The object of the present invention to solve at least one of the above technical defects.

[0005] 为此,本发明的一个目的在于提出一种可以完全准确地判断ftp和ssh服务是否正常的ftp和SSh服务监控方法。 [0005] It is therefore an object of the present invention is to provide a fully and accurately determine ftp ssh service is normal and SSh ftp service monitoring method.

[0006] 本发明的另一个目的在于提出一种ftp和ssh服务监控系统。 [0006] Another object of the present invention is to provide a monitoring system services ssh and ftp.

[0007] 为了实现上述目的,根据本发明第一方面的实施例的ftp服务监控方法,包括以下步骤:发送ftp连接请求;根据所述ftp连接请求返回回应内容;判断所述回应内容中是否包含预定字符;如果所述回应内容中包含预定字符,则判断所述ftp服务正常;以及如果所述回应内容中不包含预定字符,则判断所述ftp服务异常。 [0007] To achieve the above object, according to the embodiment ftp service monitoring method according to the first aspect of the present invention, comprising the steps of: transmitting a connection request ftp; according to the content requested to return responses ftp connection; determining whether said response content comprising a predetermined character; content if the response contains a predetermined character, it is determined that the service ftp normal; and if the response does not contain the contents of the predetermined character, it is determined that the abnormality ftp service.

[0008] 为了实现上述目的,根据本发明第二方面的实施例的ssh服务监控方法,包括以下步骤:发送SSh连接请求;根据所述SSh连接请求返回回应内容;判断所述回应内容中是否包含预定字符;如果所述回应内容中包含预定字符,则判断所述SSh服务正常;以及如果所述回应内容中不包含预定字符,则判断所述SSh服务异常。 [0008] To achieve the above object, according to ssh service monitoring method of an embodiment of the second aspect of the present invention, comprising the steps of: transmitting a connection request SSh; SSh returned response content according to the connection request; determining whether the content of the response comprising a predetermined character; content if the response contains a predetermined character, it is determined that the service SSh normal; and if the response does not contain the contents of the predetermined character, it is determined that the abnormality SSh service.

[0009] 根据本发明实施例的ftp和ssh服务监控方法,可以根据返回的回应内容中是否包含预定字符判断ftp和SSh服务是否正常,这种监控方法操作简单,实现容易,准确度高且效率高。 [0009] The ftp and ssh service monitoring method of the embodiment of the present invention, and can be determined ftp service SSh The normal response returned content contains a predetermined character, this monitoring method is simple, easy to realize, with high accuracy and efficiency high. 而且,监控时无需输入用户名和密码,从而不会泄露用户信息,安全性高。 Also, you do not need to enter a user name and password control, so as not to disclose user information safe.

[0010] 为了实现上述目的,根据本发明第三方面的实施例的ftp服务监控系统包括终端和服务器,所述终端包括:第一发送模块,所述第一发送模块用于发送ftp连接请求;第一接收模块,所述第一接收模块用于接收所述服务器返回的回应内容;和判断模块,所述判断模块用于判断所述回应内容中是否包含预定字符,如果所述回应内容中包含预定字符,则所述判断模块判断所述ftp服务正常,并且如果所述回应内容中不包含预定字符,则所述判断模块判断所述ftp服务异常;所述服务器包括:第二接收模块,所述第二接收模块用于接收所述ftp连接请求;和第二发送模块,所述第二发送模块用于根据所述ftp连接请求向所述第一接收模块返回回应内容。 [0010] To achieve the above object, according to the ftp service monitoring system according to a third aspect of the embodiment of the present invention includes a terminal and a server, said terminal comprising: a first transmitting module, a first transmitting means for transmitting the ftp connection request; a first receiving module, the first receiving means for receiving a response to the content returned by the server; and a determining module, a determining module configured to determine whether the response contains a predetermined character content, if the content included in the response a predetermined character, then the determining module determines that the normal ftp service, and if the response does not include the predetermined characters in the content, then the determining module determines that the abnormality ftp service; the server comprising: a second receiving module, the said second receiving means for receiving the ftp connection request; and a second sending module, configured to return the second sending module content response to the first receiving module according to the ftp connection request.

[0011] 为了实现上述目的,根据本发明第四方面的实施例的ssh服务监控系统包括终端和服务器,所述终端包括:第一发送模块,所述第一发送模块用于发送ssh连接请求;第一接收模块,所述第一接收模块用于接收所述服务器返回的回应内容;和判断模块,所述判断模块用于判断所述回应内容中是否包含预定字符,如果所述回应内容中包含预定字符,则所述判断模块判断所述SSh服务正常,并且如果所述回应内容中不包含预定字符,则所述判断模块判断所述SSh服务异常;所述服务器包括:第二接收模块,所述第二接收模块用于接收所述SSh连接请求;和第二发送模块,所述第二发送模块用于根据所述SSh连接请求向所述第一接收模块返回回应内容。 [0011] To achieve the above object, according to an embodiment ssh service monitoring system of the fourth aspect of the present invention includes a terminal and a server, said terminal comprising: a first transmitting module, a first transmitting means for transmitting the connection request ssh; a first receiving module, the first receiving means for receiving a response to the content returned by the server; and a determining module, a determining module configured to determine whether the response contains a predetermined character content, if the content included in the response a predetermined character, then the determining module determines that the SSh normal service, and if the response does not include the predetermined characters in the content, then the determining module determines that the service SSh abnormal; the server comprising: a second receiving module, the said second receiving means for receiving the connection request SSh; and a second transmitting module, a second transmitting module is configured to return the response content according to the first receiving module SSh connection request.

[0012] 根据本发明实施例的ftp和ssh服务监控系统,可以根据返回的回应内容中是否包含预定字符判断ftp和SSh服务是否正常,这种监控系统操作简单,实现容易,准确度高而且效率高。 [0012] The service monitoring system of ftp and ssh embodiment of the present invention, and can be determined ftp SSh service is normal, the monitoring system is simple in operation, easy to achieve high accuracy and efficiency in accordance with the content of the returned response contains a predetermined character high. 而且,由于无需输入用户名和密码,因此不会泄露用户信息,安全性高。 Moreover, there is no need to enter a user name and password, it will not disclose user information, safe.

[0013] 本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。 [0013] This additional aspects and advantages of the invention will be set forth in part in the description which follows, from the following description in part be apparent from, or learned by practice of the present invention.

附图说明 BRIEF DESCRIPTION

[0014] 本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中: [0014] The present invention described above and / or additional aspects and advantages from the following description of embodiments in conjunction with the accompanying drawings of the embodiments will become apparent and more readily appreciated, wherein:

[0015] 图1为根据本发明一个实施例的ftp服务监控方法的流程图; [0015] FIG. 1 is a flowchart of a method for monitoring service ftp embodiment of the present invention;

[0016] 图2为根据本发明另一个实施例的ftp服务监控方法的流程图; [0016] FIG 2 is a flowchart of a method for monitoring the ftp service according to another embodiment of the present invention;

[0017] 图3为根据本发明又一个实施例的ftp服务监控方法的流程图; [0017] FIG. 3 is a flowchart of a method for monitoring ftp service yet another embodiment of the present invention;

[0018] 图4为根据本发明再一个实施例的ftp服务监控方法的流程图; [0018] FIG 4 is a flowchart of ftp service monitoring method further embodiment of the present invention;

[0019] 图5为根据本发明一个实施例的ftp服务监控系统的结构框图; [0019] FIG. 5 is a block diagram showing a ftp service monitoring system in accordance with an embodiment of the present invention;

[0020] 图6为根据本发明另一个实施例的ftp服务监控系统的结构框图; [0020] FIG. 6 is a block diagram showing the ftp service monitoring system according to another embodiment of the present invention;

[0021] 图7为根据本发明又一个实施例的ftp服务监控系统的结构框图;以及 [0021] According to the present invention, FIG. 7 is a block diagram showing still another ftp service monitoring system according to an embodiment; and

[0022] 图8为根据本发明一个实施例的ssh服务监控方法的流程图。 [0022] FIG 8 is a flowchart of a method for monitoring service ssh embodiment of the present invention.

具体实施方式 Detailed ways

[0023] 下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 [0023] Example embodiments of the present invention is described in detail below, exemplary embodiments of the embodiment shown in the accompanying drawings, wherein same or similar reference numerals designate the same or similar elements or elements having the same or similar functions. 下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。 By following with reference to the embodiments described are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0024] 在本发明的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。 [0024] In the description of the present invention, it is to be understood that the terms "first," "second," and the like for illustrative purposes only, and not intended to indicate or imply relative importance. 在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接, 或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。 In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the term "coupled", "connected" are to be broadly understood, for example, may be a fixed connection, the connection may be detachable or integrally connected; may be a mechanical connector, it may be electrically connected; may be directly connected, can also be connected indirectly through an intermediary. 对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。 Those of ordinary skill in the art, be appreciated that the specific circumstances of the specific meanings in the present invention. 此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。 Further, in the description of the present invention, unless otherwise specified, the meaning of "more" is two or more.

[0025] 流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。 [0025] In the flowchart in any process or method or otherwise described in this description may be understood as representing modules comprises one or more steps for implementing specific logical functions or processes executable instructions, fragment or portion, and the scope of the preferred embodiment of the present invention includes other implementations, which may be shown or discussed in order not press, comprising a substantially simultaneous manner or in reverse order, depending upon the functionality to perform the functions involved it should be understood that embodiments skilled in the art of the present invention.

[0026] 在本发明中,根据ftp和ssh通信协议的特点,在发送ftp连接请求和ssh连接请求时,发送预定的内容,并在tcp网络层分析服务器端返回的回应内容,达到监控的目的, 从而能够在无需用户名和密码的情况下,完全准确地判断ftp和SSh服务是否正常。 [0026] In the present invention, according to the characteristics ftp and ssh communication protocol, when transmitting ftp connection requests and ssh connection request, send a predetermined content, and analyzes the response could be returned by the server in the tcp network layer, to achieve the purpose of monitoring , which can in the case of need for a username and password, entirely accurately determine ftp and SSh service is normal.

[0027] 下面参考附图1-4描述根据本发明实施例的ftp服务监控方法。 [0027] The following description with reference to the ftp service monitoring method according to an embodiment of the present invention the figures 1-4.

[0028] 一种ftp服务监控方法,包括以下步骤:发送ftp连接请求;根据ftp连接请求返回回应内容;判断回应内容中是否包含预定字符;如果回应内容中包含预定字符,则判断ftp服务正常;以及如果回应内容中不包含预定字符,则判断ftp服务异常。 [0028] A ftp service monitoring method, comprising the steps of: transmitting a connection request ftp; The content requested to return responses ftp connection; determining whether the response contains a predetermined character contents; if the contents of the response contains a predetermined character, it is judged normal ftp service; and if the response does not contain the content of a predetermined character, it is determined ftp service exception.

[0029] 图1是根据本发明一个实施例的ftp服务监控方法的流程图。 [0029] FIG. 1 is a flowchart of a method for monitoring ftp service embodiment of the present invention.

[0030] 如图1所示,ftp服务监控方法包括下述步骤。 [0030] As shown in FIG 1, ftp service monitoring method comprising the following steps.

[0031] 步骤SlOl,发送ftp连接请求。 [0031] Step SlOl, ftp transmits the connection request.

[0032] 在本发明的一个实施例中,在发送ftp连接请求时,发送如下内容"USERanonymous\r\nQUIT"0 [0032] In one embodiment of the present invention, when the transmission ftp connection request following "USERanonymous \ r \ nQUIT" 0

[0033] 步骤S102,根据ftp连接请求返回回应内容。 [0033] step S102, returns the response to the connection request according to the contents of ftp.

[0034] 服务器端接收到连接请求后,根据连接请求运行相应的线程,并生成相应的结果作为回应内容而返回。 After [0034] the server receives a connection request, the connection request according to the corresponding running threads and an appropriate response as a result of the content returned.

[0035] 步骤S103,判断回应内容中是否包含预定字符。 [0035] In step S103, the content is determined whether the response contains a predetermined character.

[0036] 步骤S104,如果回应内容中包含预定字符,则判断ftp服务正常。 [0036] step S104, if the response contains a predetermined character content is judged normal ftp service.

[0037] 步骤S105,如果回应内容中不包含预定字符,则判断ftp服务异常。 [0037] step S105, if the response does not contain the contents of the predetermined character, it is determined that abnormality ftp service.

[0038] 在本发明的一个实施例中,根据ftp连接请求返回的回应内容中如果包含字符"Anonymous",则可判断ftp服务正常,否则可判断ftp服务异常。 [0038] In one embodiment of the present invention, the connection request response content based ftp returned if it contains characters "Anonymous", ftp service can be judged normal or abnormal can be determined ftp service.

[0039] 应理解,除了上述内容外,还可在发送ftp连接请求时,发送其他的内容,本发明不做限制,只要保证根据其返回的回应内容中可包括具有唯一性和可判断性的预定字符即可。 [0039] It should be understood, in addition to the above, also when sending ftp connection request additional content, the present invention is not limited as long as its content in accordance with the returned response may include a unique and judgmental predetermined character can be. 还应理解,当ftp通信协议作出适应性更改时,上述发送内容和回应内容中预定字符的设定也可做相应的更改,这些均应包含在本发明的保护范围内。 It should also be understood that, when making adaptive changes ftp protocol, the transmission content, and the content set in response to the predetermined corresponding characters also can change, which should be included within the scope of the present invention.

[0040] 根据本发明实施例的ftp服务监控方法,根据返回的回应内容中是否包含预定字符判断ftp服务是否正常,这种监控方法操作简单,实现容易,准确度高且效率高。 [0040] The ftp service monitoring method of the embodiment of the present invention, in accordance with whether the response returned content comprises a predetermined character is determined whether the normal ftp service, this monitoring method is simple, easy implementation, high accuracy and high efficiency. 而且,监控时无需输入用户名和密码,不存在泄露用户信息的风险,安全性高。 Moreover, when the monitor without having to enter a user name and password, the risk of disclosure of user information does not exist, safe.

[0041] 图2是根据本发明另一个实施例的ftp服务监控方法。 [0041] FIG. 2 is a ftp service monitoring method according to another embodiment of the present invention.

[0042] 如图2所示,该ftp服务监控方法包括下述步骤。 [0042] As shown in FIG 2, the ftp service monitoring method comprising the following steps.

[0043] 步骤S201,判断ftp端口是否连接正常。 [0043] step S201, the determination ftp port is connected properly.

[0044] 如果ftp端口连接正常,则继续步骤S202 ;否则,可直接判断ftp服务异常,无需继续后面的步骤。 [0044] If the ftp port is normal, it proceeds to step S202; otherwise, the abnormality can be directly determined ftp service, no need to continue the following step.

[0045] 步骤S202,发送ftp连接请求。 [0045] Step S202, the connection request transmission ftp.

[0046] 步骤S203,根据ftp连接请求返回回应内容。 [0046] step S203, the connection request according ftp return response content.

[0047] 步骤S204,判断回应内容中是否包含预定字符。 [0047] step S204, the content is determined whether the response contains a predetermined character.

[0048] 步骤S205,如果回应内容中包含预定字符,则判断ftp服务正常。 [0048] step S205, if the response contains a predetermined character content is judged normal ftp service.

[0049] 步骤S206,如果回应内容中不包含预定字符,则判断ftp服务异常。 [0049] step S206, if the response does not contain the contents of the predetermined character, it is determined that abnormality ftp service.

[0050] 根据本发明实施例的ftp服务监控方法,在进行进一步的判断之前,可以先判断端口是否连接了,在端口连接正常的情况下,再进一步判断ftp服务是否正常,可以进一步提高判断效率以及准确度。 [0050] The ftp service monitoring method of the embodiment of the present invention, prior to a further determination may first determine whether the port is connected, in a case where the port connection is normal, and further determines whether the normal ftp services, efficiency can be further improved Analyzing as well as accuracy.

[0051] 图3是根据本发明又一个实施例的ftp服务监控方法的流程图。 [0051] FIG. 3 is a flowchart of ftp service monitoring method of the embodiment of still another embodiment of the present invention.

[0052] 如图3所示,ftp服务监控方法包括下述步骤。 [0052] As shown in FIG 3, ftp service monitoring method comprising the following steps.

[0053] 步骤S301,判断ftp端口是否连接正常。 [0053] step S301, the determination ftp port is connected properly.

[0054] 步骤S302,发送ftp连接请求。 [0054] Step S302, the connection request transmission ftp.

[0055] 步骤S303,根据ftp连接请求返回回应内容。 [0055] Step S303, the connection request according ftp return response content.

[0056] 步骤S304,判断回应内容中是否包含预定字符。 [0056] step S304, the content is determined whether the response contains a predetermined character.

[0057] 步骤S305,如果回应内容中包含预定字符,则判断ftp服务正常。 [0057] step S305, the content if the response contains a predetermined character, it is judged normal ftp service.

[0058] 步骤S306,如果回应内容中不包含预定字符,则判断ftp服务异常。 [0058] step S306, the content if the response does not contain the predetermined character, it is determined that abnormality ftp service.

[0059] 步骤S307,在判断ftp服务异常时,发出服务异常提示。 [0059] step S307, when it is judged ftp service exception, an exception in the service sent.

[0060] 例如,可通过指示灯进行提示,或者可发出报警声音,或者还可以通过短信等通信平台将服务异常的消息发送至相关的负责人员,从而使得相关的负责人员可以及时地了解到服务器端的服务运行状况,并在出现问题时及时进行维修。 [0060] For example, by indicating light, or may emit an alarm sound, or may also send the message to an associated service exception responsible personnel through SMS communications platform, so that the responsible staff can be timely related to understand server service health side, and timely repairs when problems arise.

[0061] 在本发明的一个实施例中,步骤S301是可选的。 [0061] In one embodiment of the present invention, the step S301 is optional.

[0062] 根据本发明实施例的ftp服务监控方法,在判断ftp服务异常时,可以及时向用户 [0062] The ftp service monitoring method of the embodiment of the present invention, when the abnormality is determined ftp service, the user timely

发出提不。 Not to mention the issue.

[0063] 图4是根据再一个实施例的ftp服务监控方法的流程图。 [0063] FIG. 4 is a flowchart of a method for monitoring ftp service according to a further embodiment.

[0064] 如图4所示,ftp服务监控方法包括下述步骤。 [0064], ftp service monitoring method comprises the steps shown in FIG. 4.

[0065] 步骤S401,判断ftp端口是否连接正常。 [0065] step S401, the determination ftp port is connected properly.

[0066] 步骤S402,发送ftp连接请求。 [0066] step S402, the connection request transmission ftp.

[0067] 步骤S403,根据ftp连接请求返回回应内容。 [0067] step S403, the connection request according ftp return response content.

[0068] 步骤S404,判断回应内容中是否包含预定字符。 [0068] step S404, the content is determined whether the response contains a predetermined character.

[0069] 步骤S405,如果回应内容中包含预定字符,则判断ftp服务正常。 [0069] step S405, the content if the response contains a predetermined character, it is judged normal ftp service.

[0070] 步骤S406,如果回应内容中不包含预定字符,则判断ftp服务异常。 [0070] step S406, if the response does not contain the contents of the predetermined character, it is determined that abnormality ftp service.

[0071] 步骤S407,在判断ftp服务异常时,发出服务异常提示。 [0071] step S407, when it is judged ftp service exception, an exception in the service sent.

[0072] 步骤S408,存储上述步骤S405和步骤S406的判断结果。 [0072] step S408, step S405 and stores the judgment result of step S406 is.

[0073] 将每次判断的结果进行存储以生成日志,这样用户可通过查看日志了解服务器端的历史运行情况,以便更好地对服务器端进行监控和管理。 [0073] The determination results are stored each time to generate a log, so that the user can know the history of operation of viewing the log server in order to better monitor and manage the server.

[0074] 在本发明的一个实施例中,步骤S401和步骤S407是可选的。 [0074] In one embodiment of the present invention, the steps S401 and S407 are optional steps. 而且,各个步骤的执行并无明显的先后顺序,例如可先执行步骤S408再执行步骤S407,或者可同时执行步骤S407和步骤S408。 Further, through the steps of the sequence is not significant, for example, to perform step S408 and then the step S407, or step S407 may be performed simultaneously and step S408.

[0075] 根据本发明实施例的ftp服务监控方法,存储服务监控的结果,从而可以更好地对服务器端进行监控和管理。 [0075] The ftp service monitoring method of the embodiment of the present invention, the result is stored service monitoring, so as to better monitor and manage the server.

[0076] 为实现上述实施例,本发明还提出一种ftp服务监控系统。 [0076] To achieve the above embodiment, the present invention also provides a ftp service monitoring system.

[0077] 下面参考附图5-7详细描述本发明实施例的ftp服务监控系统。 [0077] Referring 5-7 ftp service monitoring system of the present invention will be described in detail embodiments of the drawings.

[0078] 图5是根据本发明一个实施例的ftp服务监控系统的结构框图。 [0078] FIG. 5 is a block diagram according to the ftp service monitoring system of an embodiment of the present invention. 如图5所示,该ftp服务监控系统1包括终端10和服务器20。 5, the ftp service monitoring system 1 includes a terminal 10 and the server 20.

[0079] 具体地,终端10包括:第一发送模块110,第一接收模块120,判断模块130。 [0079] Specifically, the terminal 10 includes: a first transmitting module 110, a first receiving module 120, a determining module 130. 服务器20包括:第二接收模块210,第二发送模块220。 Server 20 comprises: a second receiving module 210, a second transmitting module 220.

[0080] 第一发送模块110用于发送ftp连接请求。 [0080] The first sending module 110 is configured to send a connection request ftp. 第一接收模块120用于接收服务器20 返回的回应内容。 A first receiving module 120 for receiving a response from the content server 20 returns. 判断模块130用于判断回应内容中是否包含预定字符,如果回应内容中包含预定字符,则判断模块130判断ftp服务正常,如果回应内容中不包含预定字符,则判断模块130判断ftp服务异常。 Judgment module 130 is used to determine whether to include content in response to a predetermined character, if the response could be included in a predetermined character, the judgment module 130 judges that the ftp service is normal, if the response does not contain the contents of the predetermined character, the judgment module 130 judges that the ftp service exception.

[0081] 第二接收模块210用于接收ftp连接请求。 [0081] The second receiving module 210 is configured to receive a connection request ftp. 第二发送模块220用于根据ftp连接请求向第一接收模块120返回回应内容。 The second sending module 220 for returning a first response to the content receiving module 120 ftp connection request based.

[0082] 根据本发明实施例的ftp服务监控系统,可以根据返回的回应内容中是否包含预定字符判断ftp服务是否正常,这种监控系统操作简单,实现容易,准确度高而且效率高。 [0082] The ftp service monitoring system of the embodiment of the present invention, can be determined whether normal ftp service, such a monitoring system simple operation, easy implementation, high accuracy and high efficiency in accordance with the content of the returned response contains a predetermined character. 而且,由于无需输入用户名和密码,因此不会泄露用户信息,安全性高。 Moreover, there is no need to enter a user name and password, it will not disclose user information, safe.

[0083] 在本发明的一个实施例中,第一发送模块110发送的ftp连接请求中包括如下内容“USER anonymous\r\nQUIT"0相应地,如果第一接收模块120接收的根据ftp连接请求返回的回应内容中包括“Anonymous”,则判断模块130判断ftp服务正常,否则ftp服务异常。 [0083] In one embodiment of the present invention, ftp connection request sent by a first sending module 110 includes the following "USER anonymous \ r \ nQUIT" 0 Accordingly, if the first receiving module 120 receives a connection request according ftp response could return included "Anonymous", the judgment module 130 judges that the ftp service normal, abnormal or ftp service.

[0084] 应理解,除了上述内容外,还可在发送ftp连接请求时,发送其他的内容,本发明不做限制,只要保证根据其返回的回应内容中可包括具有唯一性和可判断性的预定字符即可。 [0084] It should be understood, in addition to the above, also when sending ftp connection request additional content, the present invention is not limited as long as its content in accordance with the returned response may include a unique and judgmental predetermined character can be. 还应理解,当ftp通信协议作出适应性更改时,上述发送内容和回应内容中预定字符的设定也可做相应的更改,这些均应包含在本发明的保护范围内。 It should also be understood that, when making adaptive changes ftp protocol, the transmission content, and the content set in response to the predetermined corresponding characters also can change, which should be included within the scope of the present invention.

[0085] 在本发明的一个实施例中,判断模块130还可用于判断ftp端口是否连接正常,在端口连接正常的情况下,再进一步判断ftp服务是否正常。 [0085] In one embodiment of the present invention, the determining module 130 may also be configured to determine ftp port is connected properly, in the case of a normal port, ftp server further determines whether or not normal. 由此,可以进一步提高判断效率以及准确度。 Thereby, it is possible to further improve the efficiency and accuracy of determination.

[0086] 图6是根据发明另一个实施例的ftp服务监控系统的结构框图。 [0086] FIG. 6 is a block diagram ftp service monitoring system according to another embodiment of the invention. 如图6所示,在图5所示的实施例的基础上,该终端10还包括提示模块140。 6, on the basis of the embodiment shown on FIG. 5, the terminal 10 further includes a prompt module 140.

[0087] 提示模块140用于在判断模块130判断ftp服务异常时,发出服务异常提示。 [0087] When presenting module 140 for determining module 130 determines ftp service exception, an exception in issuing service. 例如,可通过指示灯进行提示,或者可发出报警声音,或者还可以通过短信等通信平台将服务异常的消息发送至相关的负责人员,从而使得相关的负责人员可以及时地了解到服务器端的服务运行状况,并在出现问题时及时进行维修。 For example, by indicating light, or it may emit an alarm sound, or may also send the message to an associated service exception responsible personnel through SMS communications platform, so that the responsible staff can be timely related to understand the server running the service situation, and timely repairs when problems arise.

[0088] 图7是根据本发明又一个实施例的ftp服务监控系统的结构框图。 [0088] FIG. 7 is a block diagram of the present invention further ftp service monitoring system according to an embodiment. 如图7所示, 在图6所示的实施例的基础上,该终端10还包括存储模块150。 As shown in FIG 7, the basis of the embodiment shown in Figure 6 on the terminal 10 further includes a storage module 150.

[0089] 存储模块150用于在判断模块130判断完ftp服务是否正常之后,存储判断模块130的判断结果,以便生成日志,从而用户可通过查询日志了解服务器20的历史运行状况, 更好地对服务器20进行监控和管理。 [0089] After the storage module 150 for service ftp is normal, the determination result in the storage determination module determining module 130 determines End 130 so as to generate a log, so that the user can know the history of the health log by querying the server 20, for better 20 server to monitor and manage.

[0090] 本发明另一个方面还提出一种ssh服务监控方法。 [0090] Another aspect of the present invention also provides a method for monitoring service ssh.

[0091] 图8为根据本发明一个实施例的ssh服务监控方法的流程图。 [0091] FIG 8 is a flowchart of a method for monitoring service ssh embodiment of the present invention. 应理解,ssh服务监控与ftp服务监控类似,此处为了简单起见,仅以一个具体实施例描述SSh服务监控方法。 It should be understood, SSH ftp service monitoring and service monitoring Similarly, where for simplicity, only one particular embodiment of the method described in Example SSh monitoring service.

[0092] 如图8所示,ssh服务监控方法包括下述步骤。 [0092] As shown in FIG 8, ssh service monitoring method comprising the following steps.

[0093] 步骤S801,判断ssh端口是否连接正常。 [0093] step S801, the determination ssh port is connected properly.

[0094] 如果ssh端口连接正常,则继续步骤S802 ;否则,可直接判断ssh服务异常,无需继续后面的步骤。 [0094] If ssh port is normal, proceeds to step S802; otherwise, the abnormality can be directly determined ssh service, no need to continue the following step. [0095] 步骤S802,发送ssh连接请求。 [0095] step S802, transmits the connection request ssh.

[0096] 在本发明的一个实施例中,在发送ssh连接请求时,发送服务器端可识别的ssh版本字符串,如“ SSH-1. 99-0penSSH_3. 9P1,,。 [0096] In one embodiment of the present invention, when the transmission ssh connection request, the server transmits ssh version string recognized as "SSH-1. 99-0penSSH_3. 9P1 ,,.

[0097] 步骤S803,根据ssh连接请求返回回应内容。 [0097] step S803, the response returns the connection request according to the content ssh.

[0098] 步骤S804,判断回应内容中是否包含预定字符。 [0098] step S804, the content is determined whether the response contains a predetermined character.

[0099] 步骤S805,如果回应内容中包含预定字符,则判断ssh服务正常。 [0099] step S805, the content if the response contains a predetermined character, it is determined ssh normal service.

[0100] 步骤S806,如果回应内容中不包含预定字符,则判断ssh服务异常。 [0100] step S806, the content if the response does not contain the predetermined character, it is determined that abnormality ssh service.

[0101] 在本发明的一个实施例中,根据ssh连接请求返回的回应内容中如果包含字符“zlib”,则可判断ssh服务正常,否则可判断ssh服务异常。 Content Response [0101] In one embodiment of the present invention, according to the connection request ssh returned if it contains characters "zlib", ssh service can be judged normal or abnormal can be determined ssh service.

[0102] 应理解,除了上述内容外,还可在发送ssh连接请求时,发送其他的内容,本发明不做限制,只要保证根据其返回的回应内容中可包括具有唯一性和可判断性的预定字符即可。 [0102] It should be understood, in addition to the above, also when sending ssh connection request, transmits the contents of the other, the present invention is not limited as long as its content in accordance with the returned response may include a unique and judgmental predetermined character can be. 还应理解,当SSh通信协议作出适应性更改时,上述发送内容和回应内容中预定字符的设定也可做相应的更改,这些均应包含在本发明的保护范围内。 It should also be understood that, when making adaptive changes SSh communication protocol, the transmission content, and the content set in response to the predetermined corresponding characters also can change, which should be included within the scope of the present invention.

[0103] 步骤S807,在判断ssh服务异常时,发出服务异常提示。 [0103] step S807, when it is judged abnormal ssh services, issues a service exception tips. 例如,可通过指示灯进行提示,或者可发出报警声音,或者还可以通过短信等通信平台将服务异常的消息发送至相关的负责人员,从而使得相关的负责人员可以及时地了解到服务器端的服务运行状况,并在出现问题时及时进行维修。 For example, by indicating light, or it may emit an alarm sound, or may also send the message to an associated service exception responsible personnel through SMS communications platform, so that the responsible staff can be timely related to understand the server running the service situation, and timely repairs when problems arise.

[0104] 步骤S808,存储上述步骤S805和步骤S806的判断结果。 [0104] step S808, the step S805 and stores the judgment result of step S806 is.

[0105] 将每次判断的结果进行存储以生成日志,这样用户可通过查看日志了解服务器端的历史运行情况,以便更好地对服务器端进行监控和管理。 [0105] The determination results are stored each time to generate a log, so that the user can know the history of operation of viewing the log server in order to better monitor and manage the server.

[0106] 在本发明的一个实施例中,步骤S801、步骤S807和步骤S808均是可选的。 [0106] In one embodiment of the present invention, the step S801, the step S807 and step S808 are optional. 而且, 各个步骤的执行并无明显的先后顺序,例如可先执行步骤S808再执行步骤S807,或者可同时执行步骤S807和步骤S808。 Further, through the steps of the sequence is not significant, for example, to perform step S808 and then the step S807, or step S807 may be performed simultaneously and step S808.

[0107] 根据本发明实施例的ssh服务监控方法,根据返回的回应内容中是否包含预定字符判断SSh服务是否正常,这种监控方法操作简单,实现容易,准确度高且效率高。 [0107] The ssh service monitoring method of the embodiment of the present invention, in accordance with whether the response returned content comprises a predetermined character is determined whether the normal service SSh, this monitoring method is simple to operate, easy implementation, high accuracy and high efficiency. 而且,监控时无需输入用户名和密码,不存在泄露用户信息的风险,安全性高。 Moreover, when the monitor without having to enter a user name and password, the risk of disclosure of user information does not exist, safe.

[0108] 为实现上述实施例,本发明还提出一种ssh服务监控系统。 [0108] To achieve the above embodiment, the present invention also provides a service monitoring system ssh.

[0109] 具体地,ssh服务监控系统与上述ftp服务监控系统类似,不同地是,第一发送模块Iio用于发送SSh连接请求,第二接收模块210用于接收SSh连接请求,第二发送模块220用于根据ssh连接请求向第一接收模块120返回回应内容,判断模块130用于判断回应内容中是否包含预定字符,如果回应内容中包含预定字符,则判断模块130判断ssh服务正常,如果回应内容中不包含预定字符,则判断模块130判断ssh服务异常。 [0109] Specifically, the above-described system SSH ftp service monitoring service monitoring system is similar differently, the first sending module configured to send SSh Iio a connection request, a second receiving module 210 is configured to receive a connection request SSh, a second sending module the ssh 220 for returning to the first connection request receiving module 120 to respond to the content, for determining module 130 determines whether the response contains a predetermined character content, if the response contains a predetermined character content, then the determining module 130 determines ssh normal service, if the response content does not contain the predetermined character, then the determining module 130 determines abnormality ssh service.

[0110] 在本发明的一个实施例中,第一发送模块110在发送ssh连接请求时,发送服务器20可识别的ssh版本字符串,如“SSH-1. 99-0penSSH_3. 9P1”。 [0110] In one embodiment of the present invention, the first sending module 110 ssh while sending a connection request server 20 may identify the ssh version string, such as "SSH-1. 99-0penSSH_3. 9P1". 相应地,如果第一接收模块120接收的根据ssh连接请求返回的回应内容中包括“zlib”,则判断模块130判断ssh服务正常,否则ssh服务异常。 Accordingly, if the first receiving module 120 according to the received connection request response ssh returned content include "zlib", then the determining module 130 determines ssh normal service, or a service exception ssh.

[0111] 应理解,除了上述内容外,还可在发送SSh连接请求时,发送其他的内容,本发明不做限制,只要保证根据其返回的回应内容中可包括具有唯一性和可判断性的预定字符即可。 [0111] It should be understood, in addition to the above, also when sending SSh connection request additional content, the present invention is not limited as long as its content in accordance with the returned response may include a unique and judgmental predetermined character can be. 还应理解,当SSh通信协议作出适应性更改时,上述发送内容和回应内容中预定字符的设定也可做相应的更改,这些均应包含在本发明的保护范围内。 It should also be understood that, when making adaptive changes SSh communication protocol, the transmission content, and the content set in response to the predetermined corresponding characters also can change, which should be included within the scope of the present invention.

[0112] 此外,判断模块130还用于判断ssh端口是否连接正常,在端口连接正常的情况下,再进一步判断SSh服务是否正常。 [0112] In addition, the determining module further configured to determine ssh port 130 is connected properly, in the case of a normal port, and further determines whether the normal SSh service. 由此,可以进一步提高判断效率以及准确度。 Thereby, it is possible to further improve the efficiency and accuracy of determination.

[0113] 提示模块140在判断模块130判断ssh服务异常时,发出服务异常提示。 [0113] When presenting module 140 determining module 130 determines abnormality ssh services, issues a service exception tips. 例如,可通过指示灯进行提示,或者可发出报警声音,或者还可以通过短信等通信平台将服务异常的消息发送至相关的负责人员,从而使得相关的负责人员可以及时地了解到服务器端的服务运行状况,并在出现问题时及时进行维修。 For example, by indicating light, or it may emit an alarm sound, or may also send the message to an associated service exception responsible personnel through SMS communications platform, so that the responsible staff can be timely related to understand the server running the service situation, and timely repairs when problems arise.

[0114] 存储模块150用于在判断模块130判断完ssh服务是否正常之后,存储判断模块130的判断结果,以便生成日志,从而用户可通过查询日志了解服务器20的历史运行状况, 更好地对服务器20进行监控和管理。 [0114] After the storage module 150 for ssh service is normal, the determination result stored in the determination module determining module 130 determines End 130 so as to generate a log, so that the user can know the history of the health log by querying the server 20, for better 20 server to monitor and manage.

[0115] 根据本发明实施例的ssh服务监控系统,可以根据返回的回应内容中是否包含预定字符判断SSh服务是否正常,这种监控系统操作简单,实现容易,准确度高而且效率高。 [0115] The service monitoring system of embodiment ssh embodiment of the present invention, the service is normal is determined SSh simple operation such monitoring systems, to achieve easy, high accuracy and high efficiency in accordance with the content of the returned response contains a predetermined character. 而且,由于无需输入用户名和密码,因此不会泄露用户信息,安全性高。 Moreover, there is no need to enter a user name and password, it will not disclose user information, safe.

[0116] 在本发明的实施例中,终端可以是笔记本、台式机、手机、PDA、上网本等各种终端。 [0116] In an embodiment of the present invention, the terminal may be a laptop, desktop, mobile phone, PDA, Internet and other terminals.

[0117] 应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。 [0117] It should be understood that various portions of the present invention may be implemented in hardware, software, firmware or a combination thereof to achieve. 在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。 In the above-described embodiment, a plurality of steps or methods may be implemented in software or firmware and executed by a suitable system executing instructions stored in a memory with. 例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。 For example, if implemented in hardware, as in another embodiment, the present technique may be any one of the following well-known in the art, or their combination thereof: a logic gate circuit for implementing logic functions upon data signals discrete logic circuits having appropriate combinational logic gate circuit ASIC, a programmable gate array (PGA), a field programmable gate array (FPGA) and the like.

[0118] 在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。 [0118] In the description of the present specification, reference to the term "one embodiment," "some embodiments", "an example", "a specific example", or "some examples" means that a description of the exemplary embodiment or embodiments described a particular feature, structure, material, or characteristic is included in at least one embodiment of the present invention, embodiments or examples. 在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。 In the present specification, a schematic representation of the above terms necessarily referring to the same embodiment or example. 而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。 Furthermore, the particular features, structures, materials, or characteristics described embodiments or examples may be at any one or more in a proper manner.

[0119] 尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同限定。 [0119] While there has been illustrated and described embodiments of the present invention, those of ordinary skill in the art, to be understood that various changes may be made to these embodiments without departing from the principles and spirit of the present invention, modifications, substitutions and modifications, the scope of the invention being indicated by the appended claims and their equivalents.

Claims (24)

1. 一种ftp服务监控方法,其特征在于,包括以下步骤: 发送ftp连接请求;根据所述ftp连接请求返回回应内容; 判断所述回应内容中是否包含预定字符;如果所述回应内容中包含预定字符,则判断所述ftp服务正常;以及如果所述回应内容中不包含预定字符,则判断所述ftp服务异常。 CLAIMS 1. A method for monitoring ftp service, characterized by comprising the steps of: transmitting a connection request ftp; according to the content requested to return responses ftp connection; determining whether the response contains a predetermined character contents; if the contents included in the response a predetermined character, it is determined that the service ftp normal; and if the response does not contain the contents of the predetermined character, it is determined that the abnormality ftp service.
2.根据权利要求1所述的ftp服务监控方法,其特征在于,进一步包括步骤: 判断ftp端口是否连接正常。 The ftp service monitoring method according to claim 1, characterized in that, further comprising the step of: determining ftp port is connected properly.
3.根据权利要求1所述的ftp服务监控方法,其特征在于,所述ftp连接请求包括"USER anonymous\r\nQUIT”。 3. ftp service monitoring method according to claim 1, wherein the connection request comprises ftp "USER anonymous \ r \ nQUIT".
4.根据权利要求3所述的ftp服务监控方法,其特征在于,所述预定字符为"Anonymous,,。 4. ftp service monitoring method according to claim 3, wherein said predetermined character is "Anonymous ,,.
5.根据权利要求1或2所述的ftp服务监控方法,其特征在于,进一步包括步骤: 在判断所述ftp服务异常时,发出服务异常提示。 Ftp service monitoring method according to claim 1 or claim 2, characterized in that, further comprising the step of: upon determining that the ftp service exception, an exception in issuing service.
6.根据权利要求1或2所述的ftp服务监控方法,其特征在于,进一步包括步骤: 存储判断所述ftp服务是否正常的结果。 Ftp service monitoring method according to claim 1 or claim 2, characterized in that, further comprising the step of: storing the result of the determination whether a normal ftp service.
7. —种ftp服务监控系统,其特征在于,包括终端和服务器, 所述终端包括:第一发送模块,所述第一发送模块用于向所述服务器发送ftp连接请求; 第一接收模块,所述第一接收模块用于接收所述服务器返回的回应内容;和判断模块,所述判断模块用于判断所述回应内容中是否包含预定字符,如果所述回应内容中包含预定字符,则所述判断模块判断所述ftp服务正常,如果所述回应内容中不包含预定字符,则所述判断模块判断所述ftp服务异常; 所述服务器包括:第二接收模块,所述第二接收模块用于接收所述ftp连接请求;和第二发送模块,所述第二发送模块用于根据所述ftp连接请求向所述第一接收模块返回回应内容。 7. - Species ftp service monitoring system, comprising a server and a terminal, said terminal comprising: a first transmitting module, a first transmitting means for transmitting the connection request to the server ftp; a first receiving module, the first receiving means for receiving the content of the response returned by the server; and a determining module, a determining module configured to determine whether the response contains a predetermined character content, if the content included in the response to a predetermined character, then the said determination module determines that the normal ftp service, if the response does not include the predetermined characters in the content, then the determining module determines that the abnormality ftp service; the server comprising: a second receiving module, the second receiving module ftp connection to receive the request; and a second sending module, configured to return the second sending module content response to the first receiving module according to the ftp connection request.
8.根据权利要求7所述的ftp服务监控系统,其特征在于,所述判断模块还用于判断所述服务器的ftp端口是否连接正常。 8. The ftp service monitoring system of claim 7, wherein the determining module is further configured to determine ftp port of the server is connected properly.
9.根据权利要求7或8所述的ftp服务监控系统,其特征在于,所述终端进一步包括: 提示模块,所述提示模块用于在所述判断模块判断所述ftp服务异常时,发出服务异常提示。 9. The ftp service monitoring system according to claim 78, characterized in that the terminal further comprising: a prompt module, said module is configured to prompt when the determination means determines the abnormal ftp service, issues a service abnormal tips.
10.根据权利要求7或8所述的ftp服务监控系统,其特征在于,所述终端进一步包括: 存储模块,所述存储模块用于在所述判断模块判断完所述ftp服务是否正常之后,存储所述判断模块的判断结果。 10. The ftp service monitoring system of claim 7 or claim 8, characterized in that the terminal further comprises: a storage module, the storage module for after completion of the judging module determines whether the normal ftp service, determination of the determination result storing module.
11.根据权利要求7所述的ftp服务监控系统,其特征在于,所述第一发送模块发送的ftp 连接请求包括"USER anonymous\r\nQUIT,,。 11. The ftp service monitoring system of claim 7, characterized in that, the ftp connection request sent by a first sending module comprises a "USER anonymous \ r \ nQUIT ,,.
12.根据权利要求7所述的ftp服务监控系统,其特征在于,所述第一接收模块接收的回应内容中的预定字符为''Anonymous”。 12. ftp service monitoring system of claim 7, wherein, in response to the content of the first receiving module receives the predetermined characters '' Anonymous ".
13. —种ssh服务监控方法,其特征在于,包括以下步骤: 发送ssh连接请求;根据所述ssh连接请求返回回应内容; 判断所述回应内容中是否包含预定字符;如果所述回应内容中包含预定字符,则判断所述ssh服务正常;以及如果所述回应内容中不包含预定字符,则判断所述ssh服务异常。 13. - Species ssh service monitoring method, characterized by comprising the steps of: transmitting a connection request ssh; content according to the returned response ssh connection request; determining whether the response contains a predetermined character contents; if the contents included in the response a predetermined character, it is determined that the service ssh normal; and if the response does not contain the contents of the predetermined character, it is determined that the abnormality ssh service.
14.根据权利要求13所述的ssh服务监控方法,其特征在于,进一步包括步骤: 判断ssh端口是否连接正常。 14. A method of monitoring ssh service according to claim 13, characterized in that, further comprising the step of: determining ssh port is connected properly.
15.根据权利要求13所述的ssh服务监控方法,其特征在于,所述ssh连接请求包括“ SSH-1. 99-0penSSH_3. 9P1,,。 15. A method of monitoring ssh service according to claim 13, wherein the connection request comprises ssh "SSH-1. 99-0penSSH_3. 9P1 ,,.
16.根据权利要求14所述的ssh服务监控方法,其特征在于,所述预定字符为“zlib”。 16. ssh service monitoring method according to claim 14, wherein said predetermined character is "zlib".
17.根据权利要求13或14所述的ssh服务监控方法,其特征在于,进一步包括步骤: 在判断所述ssh服务异常时,发出服务异常提示。 17. A monitor 13 or ssh service according to claim 14, characterized in that, further comprising the step of: upon determining that the abnormality ssh service issuing an exception in service.
18.根据权利要求13或14所述的ssh服务监控方法,其特征在于,进一步包括步骤: 存储判断所述ssh服务正常与否的结果。 18. A method of monitoring ssh service 13 or claim 14, characterized in that, further comprising the step of: storing the judgment result is normal or not ssh service.
19. 一种ssh服务监控系统,其特征在于,包括终端和服务器, 所述终端包括:第一发送模块,所述第一发送模块用于向所述服务器发送SSh连接请求; 第一接收模块,所述第一接收模块用于接收所述服务器返回的回应内容;和判断模块,所述判断模块用于判断所述回应内容中是否包含预定字符,如果所述回应内容中包含预定字符,则所述判断模块判断所述SSh服务正常,如果所述回应内容中不包含预定字符,则所述判断模块判断所述SSh服务异常; 所述服务器包括:第二接收模块,所述第二接收模块用于接收所述SSh连接请求;和第二发送模块,所述第二发送模块用于根据所述SSh连接请求向所述第一接收模块返回回应内容。 Ssh 19. A service monitoring system, comprising a server and a terminal, said terminal comprising: a first transmitting module, a first transmitting means for transmitting the connection request to the server SSh; a first receiving module, the first receiving means for receiving the content of the response returned by the server; and a determining module, a determining module configured to determine whether the response contains a predetermined character content, if the content included in the response to a predetermined character, then the said determination module determines that the SSh normal service, if the response does not include the predetermined characters in the content, then the determining module determines that the service SSh abnormal; the server comprising: a second receiving module, the second receiving module to receiving the connection request SSh; and a second transmitting module, a second transmitting module is configured to return the response content according to the first receiving module SSh connection request.
20.根据权利要求19所述的ssh服务监控系统,其特征在于,所述判断模块还用于判断所述服务器的SSh端口是否连接正常。 20. ssh service monitoring system of claim 19, wherein the determining module is further configured to determine the SSh server port is connected properly.
21.根据权利要求19或20所述的ssh服务监控系统,其特征在于,所述终端进一步包括:提示模块,所述提示模块用于在所述判断模块判断所述ssh服务异常时,发出服务异常提示。 21. ssh service monitoring system of claim 19 or claim 20, wherein said terminal further comprising: a prompt module, said module is configured to prompt when the determining module determines that the abnormality ssh service, issues a service abnormal tips.
22.根据权利要求19所述的ssh服务监控系统,其特征在于,所述第一发送模块发送的ssh 连接请求包括“SSH-1. 99-0penSSH_3. 9P1”。 22. ssh service monitoring system of claim 19, wherein, the first sending module sends the SSH connection request comprises "SSH-1. 99-0penSSH_3. 9P1".
23.根据权利要求22所述的ssh服务监控系统,其特征在于,所述第一接收模块接收的回应内容中的预定字符为“zlib”。 23. ssh service monitoring system of claim 22, wherein, in response to the content of the first receiving module receives the predetermined character "zlib".
24.根据权利要求19或20所述的ssh服务监控系统,其特征在于,所述终端进一步包括:存储模块,所述存储模块用于在所述判断模块判断完所述ssh服务是否正常之后,存储所述判断模块的判断结果。 24. The service monitoring system of ssh 19 or claim 20, characterized in that the terminal further comprises: a storage module, the storage module for after completion of the judging module determines whether the normal service ssh, determination of the determination result storing module.
CN2011103562685A 2011-11-10 2011-11-10 Ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system CN102347874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103562685A CN102347874A (en) 2011-11-10 2011-11-10 Ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103562685A CN102347874A (en) 2011-11-10 2011-11-10 Ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system

Publications (1)

Publication Number Publication Date
CN102347874A true CN102347874A (en) 2012-02-08

Family

ID=45546180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103562685A CN102347874A (en) 2011-11-10 2011-11-10 Ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system

Country Status (1)

Country Link
CN (1) CN102347874A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825124A (en) * 2015-01-06 2016-08-03 中国移动通信集团广西有限公司 Server illegal operation monitoring method and monitoring system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859802A (en) * 2006-03-24 2006-11-08 华为技术有限公司 Method for detecting talking state
US7506047B2 (en) * 2001-03-30 2009-03-17 Bmc Software, Inc. Synthetic transaction monitor with replay capability
CN101594269A (en) * 2009-06-29 2009-12-02 成都市华为赛门铁克科技有限公司 Method, device and gateway device for detecting abnormal connection
EP1502201B1 (en) * 2002-05-03 2009-12-23 American Power Conversion Corporation Method and apparatus for collecting and displaying network device information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7506047B2 (en) * 2001-03-30 2009-03-17 Bmc Software, Inc. Synthetic transaction monitor with replay capability
EP1502201B1 (en) * 2002-05-03 2009-12-23 American Power Conversion Corporation Method and apparatus for collecting and displaying network device information
CN1859802A (en) * 2006-03-24 2006-11-08 华为技术有限公司 Method for detecting talking state
CN101594269A (en) * 2009-06-29 2009-12-02 成都市华为赛门铁克科技有限公司 Method, device and gateway device for detecting abnormal connection

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825124A (en) * 2015-01-06 2016-08-03 中国移动通信集团广西有限公司 Server illegal operation monitoring method and monitoring system

Similar Documents

Publication Publication Date Title
CN102859935B (en) The use of virtual machine remote maintenance system and method for multiple clients in the electronic network
US8588990B2 (en) Communicating through a server between appliances and applications
US20070233855A1 (en) Adaptible keepalive for enterprise extenders
CN103051557B (en) Method and system for processing a data stream, a controller, a switching device
KR101540129B1 (en) Remote access diagnostic device and methods thereof
EP2769570B1 (en) Mobile risk assessment
US8327441B2 (en) System and method for application attestation
US8909758B2 (en) Physical server discovery and correlation
US20100077072A1 (en) Test Driven Deployment and Monitoring of Heterogeneous Network Systems
CN103532797A (en) Abnormity monitoring method and device for user registration
CN102025535B (en) Virtual machine management method and device and network equipment
US8161285B2 (en) Protocol-Independent remote attestation and sealing
US20110090900A1 (en) Controlling registration floods in VoIP networks via DNS
US8910129B1 (en) Scalable control system for test execution and monitoring utilizing multiple processors
US20130346591A1 (en) Clientless Cloud Computing
US9253100B2 (en) Asynchronous virtual machine replication
US20150195168A1 (en) Systems and methods for managing computing systems utilizing augmented reality
JP2015511099A (en) Consistent detection of interconnect failures across the cluster
US7770208B2 (en) Computer-implemented method, apparatus, and computer program product for securing node port access in a switched-fabric storage area network
US9894166B2 (en) Registration method and system for common service entity
CN103313216B (en) Message prompt method, system and device for communication account
CN101917287A (en) Fault processing method and fault detecting system of IRF (Intelligent Resilient Framework)
CN105229986A (en) Service layer resource propagation across domains
EP3005641B1 (en) Certificating authority trust evaluation
US20110283138A1 (en) Change Tracking and Management in Distributed Applications

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C12 Rejection of a patent application after its publication