CN102761432B - Cgi monitoring method and apparatus and systems - Google Patents

Cgi monitoring method and apparatus and systems Download PDF

Info

Publication number
CN102761432B
CN102761432B CN 201110110847 CN201110110847A CN102761432B CN 102761432 B CN102761432 B CN 102761432B CN 201110110847 CN201110110847 CN 201110110847 CN 201110110847 A CN201110110847 A CN 201110110847A CN 102761432 B CN102761432 B CN 102761432B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
cgi
monitoring
configuration information
monitor
server
Prior art date
Application number
CN 201110110847
Other languages
Chinese (zh)
Other versions
CN102761432A (en )
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
Grant date

Links

Abstract

本发明公开了一种CGI监控方法及其装置和系统,对应CGI服务器设置有本地代理,所述本地代理中存储有从配置信息服务器同步更新得到的CGI监控配置信息,该方法包括:CGI服务器接收到CGI业务请求后,判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同;若所述CGI服务器判断为不相同,则根据所述本地代理中存储的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息,对所述CGI业务请求的处理过程进行监控。 The present invention discloses a method and apparatus to monitor and CGI systems, provided with a corresponding server CGI home agent, the home agent stores a CGI synchronization update configuration information obtained from the monitoring server configuration information, the method comprising: receiving the server CGI service request to the CGI, CGI monitor determines its own monitoring information stored in the configuration CGI corresponding home agent information stored in the configuration are the same; determining if the server is not the same as CGI, CGI is monitored according to the stored home agent updating the configuration information stored by the server CGI CGI monitor configuration information, configuration information and the updated monitoring CGI, CGI for processing the service request to monitor. 在本发明中,维护了监控配置信息的一致性和时效性,并提高了CGI监控的灵活性。 In the present invention, maintaining the consistency and timeliness of monitoring configuration information, and improve the flexibility of CGI monitored.

Description

CGI监控方法及其装置和系统 CGI monitoring method and apparatus and systems

技术领域 FIELD

[0001] 本发明涉及互联网领域的CGI (Common Gateway Interface,通用网关接口)监控技术,尤其涉及一种CGI监控方法及其装置和系统。 [0001] The present invention relates to the field of Internet CGI (Common Gateway Interface, Common Gateway Interface) monitoring technology, particularly to a method and apparatus to monitor and CGI systems.

背景技术 Background technique

[0002] CGI是运行在Web服务器上的程序,由浏览器的输入触发,用于处理客户端的请求,并根据客户端的请求向客户端返回处理结果。 [0002] CGI program running on the Web server, the browser is triggered by the input, the processing for requesting the client, and returns a processing result to the client end according to the client's request. 通过在CGI执行的业务逻辑中插入监控点的方式,可以对CGI执行业务逻辑的情况进行监控,以便在需要时获知CGI的运行状况,根据获取到CGI运行状况进行相应的系统维护。 , The situation can be monitored by a CGI execution of business logic to monitor the insertion point in the execution of business logic CGI manner, in order to know when the health of the CGI necessary, appropriate maintenance system based on the acquired operating conditions CGI.

[0003] 现有技术中,CGI监控方式主要有两种方式: [0003] In the prior art, CGI monitoring There are two main ways:

[0004] (I)将CGI运行状况记录在日志文件中; [0004] (I) The CGI operating conditions recorded in the log file;

[0005] (2)将CGI运行状况上报给服务器。 [0005] (2) The CGI reported to the health of the server.

[0006] 通过记录日志文件的方式可以很好地记录CGI运行路径,对调试CGI程序或者定位CGI出错情况很有帮助。 [0006] may well documented CGI run log file path by the way, error conditions helpful for debugging CGI programs or locate CGI. 但是,因为CGI可以分机器部署(即部署在不同服务器上),所以这种监控方式很难满足统计CGI调用API (Applicat1n Programming Interface,应用编程接口)的成功率以及CGI运行时间均值等方面的需求。 However, because the CGI can be divided machine deployment (ie, deployed on different servers), so this monitoring method is difficult to meet the needs of statistical CGI calls API (Applicat1n Programming Interface, Application Programming Interface) CGI success rate and the average running time, etc. . 而通过将CGI运行状况上报给服务器的方式可以较好地满足CGI统计方面的需求,但当CGI错误率较高时,却很难给出出错路径,使开发人员难以快速定位。 And can better meet the needs of statistics by way of CGI CGI reported to the health of the server, but when CGI higher error rate, but it is difficult to give wrong path, allowing developers to quickly locate difficult.

[0007] 由此可见,目前亟需一种能够根据不同情况灵活运用CGI监控方式的技术方案。 [0007] Thus, the current urgent need for technical solutions which can utilize CGI monitored mode depending on the situation.

发明内容 SUMMARY

[0008] 本发明提供一种CGI监控方法及其装置和系统,以维护CGI监控配置信息的一致性和时效性,并提高CGI服务器对CGI监控的灵活性。 [0008] The present invention provides a method and apparatus to monitor CGI and system monitor configured to maintain consistency and CGI timeliness of the information, and improve flexibility of the CGI server CGI monitored. 为此,本发明实施例采用如下技术方案: To this end, embodiments of the present invention employs the following technical solutions:

[0009] 一种通用网关接口CGI监控方法,对应CGI服务器设置有本地代理,所述本地代理中存储有从配置信息服务器同步更新得到的CGI监控配置信息,该方法包括: [0009] A monitoring method CGI Common Gateway Interface, CGI servers is provided with a corresponding home agent, the home agent stores a CGI synchronization update configuration information obtained from the monitoring server configuration information, the method comprising:

[0010] CGI服务器接收到CGI业务请求后,判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同; After [0010] CGI server receives a service request to a CGI, CGI monitor determines its own monitoring information stored in the configuration CGI corresponding home agent information stored in the configuration are the same;

[0011] 若所述CGI服务器判断为不相同,则根据所述本地代理中存储的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息,对所述CGI业务请求的处理过程进行监控。 [0011] The CGI server determines if not the same, the configuration server CGI CGI monitoring information updating configuration information stored by the home agent monitoring according to CGI stored, monitoring and configuration information updated CGI, the CGI process to monitor the service request.

[0012] 本发明实施例还提供一种通用网关接口CGI服务器,应用于WEB系统中,所述WEB系统中对应CGI服务器设置有本地代理,所述本地代理中存储有从配置信息服务器同步更新得到的CGI监控配置信息,该CGI服务器包括: [0012] Embodiments of the present invention further provides a Common Gateway Interface CGI servers, WEB system is applied, the WEB server CGI system is provided with a corresponding home agent, the home agent stores the configuration information obtained from the synchronization update server the CGI monitor configuration information, the CGI server includes:

[0013] 存储模块,用于存储CGI监控配置信息; [0013] The storage module for storing configuration information CGI monitor;

[0014] 接收模块,用于接收CGI业务请求; [0014] a receiving module, configured to receive a service request CGI;

[0015] 判断模块,用于当所述接收模块接收到CGI业务请求后,判断所述存储模块存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同; [0015] determining module, configured to, when the receiving module receives a service request to a CGI, determining the storage module stores the configuration CGI CGI monitoring agent monitoring information locally stored configuration information is identical;

[0016] 更新模块,用于当所述判断模块判断为不相同时,根据所述本地代理中存储的CGI监控配置信息更新所述存储模块存储的CGI监控配置信息; [0016] updating module, configured to, when the determining module determines not the same, updating the configuration information stored CGI monitoring module stores the configuration information to the home agent monitoring CGI stored;

[0017] 监控模块,用于根据更新后的CGI监控配置信息对所述CGI业务请求的处理过程进行监控。 [0017] The monitoring module configured to monitor configuration information updated for CGI processing the service request to monitor CGI.

[0018] 本发明实施例还提供一种WEB系统,包括本地代理、配置信息服务器以及上述CGI服务器;其中, [0018] Embodiments of the present invention further provides a WEB system comprising a home agent, and said configuration information server CGI servers; wherein,

[0019] 所述配置信息服务器用于,获取CGI监控配置信息,并将获取到的CGI监控配置信息发送给所述本地代理; [0019] The configuration information server for monitoring CGI acquiring configuration information, the configuration information and the acquired monitor CGI transmitted to the home agent;

[0020] 所述本地代理用于,根据接收到的CGI监控配置信息进行CGI监控配置信息同步更新; [0020] The home agent for monitoring CGI configuration information updated according to the configuration information synchronized to the received CGI monitor;

[0021] 所述CGI服务器用于,在接收到CGI业务请求后,判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同;若所述CGI服务器判断为不相同,则根据所述本地代理中存储的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息,对所述CGI业务请求的处理过程进行监控。 [0021] The CGI server for, upon receiving a service request to a CGI, CGI monitor determines its own monitoring information stored in the configuration CGI corresponding home agent information stored in the configuration are the same; determining if the server is not the same CGI , the configuration of the CGI to the home agent monitoring information stored in the server CGI CGI updating configuration information stored by the monitoring, and configuration information updated monitoring CGI, CGI for processing the service request to monitor.

[0022]与现有技术相比,本发明实施例具有以下优点: [0022] Compared with the prior art, embodiments of the present invention has the following advantages:

[0023] 对应CGI服务器设置的本地代理从配置信息服务器同步更新得到CGI监控配置信息,CGI服务器接收到CGI业务请求后,可以判断自身存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同,并当判断为不相同时,根据本地代理中存储的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息进行CGI监控,维护了CGI监控配置信息的一致性和时效性,且提高了CGI监控的灵活性。 [0023] corresponding to the CGI server provided the home agent from the configuration information server synchronization update obtain CGI monitor configuration information, CGI servers, after receiving the CGI service request, based on CGI monitor CGI monitor their own configuration information stored in the home agent stores configuration information They are the same, and when it is determined as not the same, the configuration CGI monitoring information updating CGI server itself stored in accordance CGI monitor local agent stored configuration information, and configuration information CGI monitored according CGI monitoring updated, maintained CGI monitoring configuration consistency and timeliness of information, and improve the flexibility of CGI monitored.

附图说明 BRIEF DESCRIPTION

[0024]图1为本发明实施例提供的CGI监控方法流程示意图; [0024] FIG. 1 is a schematic flow CGI monitoring method according to an embodiment of the present invention;

[0025] 图2为本发明实施例提供的CGI服务器的结构示意图; [0025] FIG. 2 is a schematic configuration CGI server according to an embodiment of the present invention;

[0026] 图3为本发明实施例提供的WEB系统的示意图。 [0026] FIG. 3 is a schematic WEB system according to an embodiment of the present invention.

具体实施方式 detailed description

[0027] 针对上述现有技术中的问题,本发明实施例提供一种CGI监控的技术方案,对应CGI服务器设置的本地代理从配置信息服务器同步更新得到CGI监控配置信息,CGI服务器接收到CGI业务请求后,判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同,并当判断为不同时,根据本地代理中的CGI监控配置信息更新自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息进行CGI监控,维护了CGI监控配置信息的一致性和时效性,并提高了CGI监控的灵活性。 [0027] For the above-described problems of the prior art, provides a technical solution to monitor CGI embodiment of the present invention, the corresponding local proxy server CGI configuration information provided from the server to monitor synchronization update configuration information obtained CGI, CGI CGI server receives service after the request, it determines its own stored CGI monitoring configuration CGI monitoring information corresponding to the home agent stores the configuration information is the same, and when it is determined as not the same, the configuration information update CGI monitor their own stored according to the local agent in CGI monitor configuration information and configuration information based on monitoring of the updated CGI CGI monitoring, maintenance, monitoring the CGI configuration consistency and timeliness of information, and improve the flexibility of CGI monitored.

[0028] 其中,CGI监控配置信息中指示出了CGI服务器监控的监控对象(如CGI执行业务逻辑的返回值、CGI执行业务逻辑的失败率等),CGI监控配置信息中还包含有监控规则,监控规则规定了监控对象在满足一定的监控动作触发条件(如CGI执行业务逻辑的失败率高于阈值)时,执行相应的监控动作,监控动作可以包括将业务逻辑的运行情况记录在本地日志中或上报给服务器。 [0028] wherein, CGI monitor configuration information indicating a monitoring target CGI servers monitored (e.g., CGI execution of business logic of the return value, CGI execution failure rate business logic, etc.), CGI monitor configuration information further includes monitoring rules, monitoring rules of the monitoring object is satisfied constant monitoring operation trigger condition (such as a CGI failed execution of business logic is higher than a threshold), performs the corresponding control operation, the monitoring operation may include the operation of the business logic is recorded in the local log or reported to the server.

[0029] 本发明实施例涉及WEB系统架构,该WEB系统中包括CGI服务器,对应CGI服务器设置有本地代理,还设置有配置信息服务器。 [0029] The present invention relates to system architecture WEB, WEB system which includes a CGI servers, CGI servers are provided corresponding to the local proxy, provided configuration information server. 配置信息服务器中可设置有数据库或可访问设置于其它设备的数据库,该数据库中维护有CGI监控配置信息;配置信息服务器能够与本地代理进行通信,将数据库中的CGI监控配置信息同步更新到本地代理中;CGI服务器可根据接收到的业务请求执行CGI业务逻辑,CGI服务器中存储有CGI配置信息,CGI服务器可根据其存储的CGI配置信息对CGI业务逻辑的执行进行监控。 Configuration information server may be provided with a database, or access is provided to the other device's database, the database maintains CGI monitor configuration information; configuration information server capable of communicating with the home agent, the CGI monitoring database configuration information synchronization update to the local agent; CGI server may request service according to the received service logic execution CGI, CGI servers stores configuration information CGI, CGI servers may store configuration information for execution of CGI CGI business logic to monitor.

[0030] 为了维护CGI监控配置信息的一致性和时效性,本地代理中存储的CGI监控配置信息要根据配置信息服务器中的CGI监控配置信息进行同步更新,该同步更新可以具体通过以下方式实现: [0030] In order to maintain consistency CGI monitor configuration information and timeliness, is stored in the home agent to monitor the configuration information to CGI configuration information synchronization update in accordance with the configuration information server CGI monitor, the synchronization update may be embodied in the following ways:

[0031] 方式一:当数据库中的CGI监控配置信息更新后,配置信息服务器从数据库中读取更新后的CGI监控配置信息,并主动将更新后的CGI监控配置信息发送给本地代理,本地代理根据接收到的CGI监控配置信息更新自身存储的CGI监控配置信息。 [0031] Method 1: When monitor CGI database updating configuration information, the configuration information after the configuration CGI monitor reads the updated information from the database server, and CGI actively monitoring the updated configuration information to the home agent, the home agent CGI configuration information update monitor their own configuration information stored according to the received monitoring CGI.

[0032] 方式二:可以在配置信息服务器中预先设置CGI监控配置信息更新周期,配置信息服务器根据预设周期周期性地向本地代理发送CGI监控配置信息。 [0032] Second way: CGI can be set in advance to monitor the configuration information update cycle, CGI server sends configuration information to the home agent monitoring according to a preset cycle periodically arranged in the configuration information server. 本地代理接收到配置信息服务器发送的CGI监控配置信息后,比较接收到的CGI监控配置信息与本地代理自身存储的CGI监控配置信息,若二者不同,则根据接收到的CGI配置信息更新自身存储的CGI监控配置信息。 After the home agent receives the configuration information sent by the server CGI monitor configuration information, compares the received CGI monitor configuration information stored by the home agent to monitor the configuration information of CGI, if two different, update the configuration information stored in itself based on the received CGI the CGI monitor configuration information.

[0033] 系统可根据业务需要,实时更新数据库中的CGI监控配置信息,更新的CGI监控配置信息会通过上述同步方式发送到本地代理中。 [0033] The system may be based on business needs, CGI updated in real time to monitor the configuration information in the database, updating the CGI monitoring configuration will be sent to the home agent via the synchronous mode. 利用本地代理中更新的CGI监控配置信息,本发明实施例提供的CGI监控过程中,当CGI服务器接收到CGI业务请求时,可以判断自身存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同,当判断为不同时,根据本地代理中的CGI监控配置信息更新自身存储的CGI监控配置信息,从而根据该更新的CGI监控配置信息进行CGI监控。 Using the home agent updates CGI monitor configuration information embodiments CGI monitoring process provided by the present invention, when the CGI server receives CGI service request, based on CGI Monitoring Configuration CGI monitor their own configuration information stored in the home agent stored information is the same, is not the same when it is determined, according to the configuration information in the home agent updates the monitoring CGI CGI monitor their own configuration information stored, thereby updating the configuration information for monitoring CGI CGI monitor.

[0034] 其中,本地代理可以采用文件方式存储CGI监控配置信息,也可以将CGI监控配置信息缓存在共享内存中,前者安全性较高,不易丢失,但该方式下CGI服务器读取CGI监控配置信息较慢;后者CGI服务器读取配置信息较快,但安全性较低,易因本地代理断电或内存被破坏而丢失。 [0034] wherein the local proxy files can be used to monitor the configuration information stored CGI, CGI also monitor configuration information can be cached in shared memory, the former high security, easy to lose, but CGI CGI monitoring server reads the configuration mode slow information; CGI server which reads the configuration information faster, but less secure, easy because of power failure or the home agent memory is destroyed and lost. 系统用户可根据需要采用相应的方式在本地代理中存储CGI监控配置信息。 The system user can employ a corresponding manner according to the need to store configuration information in a local monitor CGI agent.

[0035] 下面结合附图对本发明实施例提供的技术方案进行详细描述。 [0035] The following detailed description in conjunction with the accompanying drawings provide technical solutions of the present invention.

[0036] 如图1所示,为本发明实施例提供的CGI监控方法流程的示意图,可以包括以下步骤: [0036] FIG. 1, a schematic diagram of CGI process monitoring method according to an embodiment the invention, may comprise the steps of:

[0037] 步骤101、CGI服务器接收CGI业务请求。 [0037] Step 101, CGI CGI server receives a service request.

[0038] 步骤102、CGI服务器判断是否需要更新自身存储的CGI监控配置信息,若判断为是,则转至步骤103,否则,转至步骤106 ; [0038] Step 102, determining whether to update the server CGI CGI monitor their own configuration information stored, if the determination is yes, then go to step 103, otherwise, go to step 106;

[0039] 具体的,当CGI服务器接收到CGI业务请求时,可以访问本地代理,并判断自身存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同,若二者不同,则认为本地代理中存储的CGI监控配置信息发生了更新,即需要更新自身存储的CGI监控配置信息;若二者相同,则认为本地代理中存储的CGI监控配置信息未发生更新,即不需要更新自身存储的CGI监控配置信息。 [0039] Specifically, when the server receives the CGI request to a CGI service, access to the local proxy, and determines its own stored CGI CGI configuration monitoring agent monitoring information locally stored configuration information is identical, if the difference between the two is considered CGI is stored in the home agent monitoring the configuration information has been updated, i.e. to update the CGI monitor their own configuration information stored; if they are the same, then the home agent monitoring CGI that stores configuration information update does not occur, i.e., does not need to update their storage the CGI monitor configuration information.

[0040] 为了在一定程度上提高CGI监控的效率,并降低系统负担,可以在CGI服务器中预先设置CGI监控配置信息更新周期,当CGI服务器接收到CGI业务请求时,可以先判断接收到该CGI业务请求的时间(即当前时间)与CGI监控配置信息的上一次更新时间的时间差是否大于预设的更新周期,当判断为大于时,则表明当前距离上次CGI监控配置信息更新操作已经有较长一段时间,有可能本地代理中的CGI监控配置信息在此期间进行了更新,此种情况下认为需要更新自身存储的CGI监控配置信息,进而通过访问本地代理更新自身存储的CGI监控配置信息;当判断为不大于时,则认为不需要更新自身存储的CGI监控配置信息,直接根据自身存储的CGI监控配置信息进行后续流程。 [0040] In order to improve to some extent the efficiency of CGI monitor and reduce burden on the system may be preset CGI monitor configuration information update cycle CGI servers, when the CGI server receives CGI service request can first determines whether the received the CGI if the last update time of the time difference in time (i.e. current time) the service request to the CGI configuration information update period greater than a preset monitoring, when the judgment is yes, it indicates that the current configuration information is updated from the last CGI monitoring operations have been more for a long time, there are likely to monitor local CGI proxy configuration information updated during this time that this case needs to update their configuration information stored CGI monitor, then monitor their own CGI proxy update configuration information stored by visiting local; when it is determined not, the saw no need to update their configuration information stored in the monitor CGI, CGI directly according to the configuration information stored in itself for subsequent monitoring process. 其中,CGI服务器更新自身存储的CGI监控配置信息的同时,还可以更新时间戳,以记录CGI监控配置信息更新的时间。 Wherein Meanwhile, the server updates its own stored CGI CGI monitor configuration information may also be updated time stamp to record the time configuration monitoring CGI updated information. [0041 ] 步骤103、CGI服务器更新自身存储的CGI监控配置信息。 [0041] Step 103, CGI server updates its own configuration information stored in the monitor CGI.

[0042] 步骤104、CGI服务器根据存储的CGI监控配置信息对CGI执行业务逻辑的运行情况进行监控。 [0042] Step 104, CGI server CGI configuration information stored in the monitoring of the operation of CGI execution of business logic to monitor.

[0043] 具体的,当CGI服务器接收到CGI业务请求时,CGI服务器通过CGI执行相应的业务逻辑,并根据自身存储的CGI监控配置信息对CGI执行业务逻辑的运行情况进行监控。 [0043] Specifically, when the CGI server receives a service request to a CGI, CGI servers execute business logic corresponding CGI, and configured to run business logic implementation of CGI information monitor according to CGI monitor their storage. 其中,可以通过在业务逻辑中插入监控点或在CGI执行相应业务逻辑所调用的API中插入监控点的方式实现对CGI执行业务逻辑的运行情况的监控。 Wherein, by inserting monitoring point in the business logic or the monitoring point insertion API corresponding service logic in the manner called for monitoring the operation of CGI execution of business logic in CGI. 其中,CGI服务器可根据CGI监控配置信息中指示出的监控对象,如CGI服务器对CGI执行业务逻辑的业务返回值、CGI执行业务逻辑的执行时间或CGI执行业务逻辑的业务失败率等,对CGI执行业务逻辑的运行情况进行监控。 Wherein, CGI servers can be configured according CGI monitoring monitoring target information indicating, as CGI servers execute business logic for CGI business return value, CGI execution service logic execution time or CGI execution of business logic service failure rate, for CGI operation to monitor the implementation of business logic.

[0044] 步骤105、CGI服务器判断是否满足监控动作触发条件,是则转至步骤106 ;否则,转至步骤104。 [0044] Step 105, CGI server judges whether the trigger condition monitoring operation is then go to step 106; otherwise, go to step 104.

[0045] 具体的,CGI监控配置信息中可以针对不同的监控对象设置不同的监控动作触发条件。 [0045] Specifically, CGI configuration information may be provided to monitor different monitoring operation trigger condition for a different monitoring objects. 例如,当CGI监控配置信息指示CGI服务器对CGI执行业务逻辑的返回值进行监控时,监控规则可以是当CGI执行业务逻辑的返回值不合法时,将CGI执行业务逻辑的运行情况记录在本地日志中(本地日志可以记录CGI执行相应业务逻辑的详细步骤,当开发人员发现CGI执行该业务逻辑的业务失败率较高时,可以查询本地日志,了解CGI执行该业务逻辑的具体情况,并查询出具体哪个步骤出错,进行统计分析);当CGI监控配置信息执行CGI服务器对CGI执行业务逻辑的失败率进行监控时,监控规则可以是当CGI执行业务逻辑的失败率超过30%时,将CGI执行业务逻辑的运行情况上报给服务器。 For example, when a CGI monitor configuration information indicates CGI server for CGI execution of business logic of the return value is monitored, the monitoring rule may be when the CGI execution of business logic return value is not valid, the CGI execution of business logic operation recorded in the local log the (local log may be recorded CGI detailed steps corresponding service logic, when executed CGI developers find higher failure rate of the service business logic, can query the local log for the specific implementation of the CGI business logic, and the query which specific steps the error, statistical analysis); when the CGI monitor configuration information to execute CGI server performs the failure rate of business logic to monitor the CGI, monitoring rules can be when CGI execution of business logic failure rate of over 30%, will execute CGI the operation of the business logic of the report to the server.

[0046] CGI监控配置信息中还可以针对相同的监控对象设置不同的监控动作触发条件。 [0046] CGI monitoring arrangement may also be provided to monitor different conditions for the same operation trigger information of the monitored object. 例如,当CGI监控配置信息执行CGI服务器对CGI执行业务逻辑的失败率进行监控时,监控规则可以是当CGI执行业务逻辑的失败率超过30%时,将CGI执行业务逻辑的运行情况记录在本地日志中;当CGI执行业务逻辑的失败率超过50%时,将CGI执行业务逻辑的运行情况上报给服务器。 For example, when a CGI monitor configuration information performed when CGI server CGI failure rate execute business logic to monitor, the monitoring rule may be when the failure rate CGI execution of business logic of more than 30%, the operation of CGI execution business logic recorded in the local log; CGI execution when the business logic of the failure rate exceeds 50%, the operation of CGI execution reported to the business logic server.

[0047] 以步骤104中的CGI监控配置信息为指示CGI服务器对CGI执行业务逻辑的失败率进行监控为例。 [0047] The configuration information in step 104 to indicate the CGI monitor monitoring server CGI execution failure rate business logic for CGI for example. 对应于该CGI监控配置信息的监控规则可以是当CGI执行相应业务逻辑的业务失败率超过30%时,将CGI执行该业务逻辑的运行情况记录在本地日志中。 Monitoring configuration corresponding to the CGI information monitoring rules may be performed when CGI corresponding service logic service failure rate exceeds 30%, the CGI execution of the service logic operation log recorded in the local. CGI服务器统计CGI执行相应业务逻辑的业务失败率后,判断该业务失败率是否超过30%(若业务失败率超过30%,则认为满足监控动作触发条件),若判断为是,则将CGI执行该业务逻辑的运行情况记录在本地日志中。 After statistical CGI CGI server business failure rate of implementation of the corresponding business logic to determine whether the business failure rate of over 30% (if the business failure rate of over 30% is considered to meet the monitoring action trigger conditions) If a decision is yes, the CGI execution the service logic operation recorded in the local log.

[0048] 为了对CGI执行业务逻辑的运行情况进行更加全面的监控,CGI监控配置信息中可以同时配置对CGI执行业务逻辑的返回值、执行时间、失败率等进行监控,相应的,对应的监控规则可以是CGI执行业务逻辑的返回值不合法时将CGI执行业务逻辑的运行情况上报给统计/分析服务器或记录在本地日志中,CGI执行业务逻辑的业务执行时间超过预设阈值时将CGI执行业务逻辑的运行情况上报给统计/分析服务器或记录在本地日志中,CGI执行业务逻辑的业务失败率超过预设阈值时将CGI执行业务逻辑的运行情况上报给统计/分析服务器或记录在本地日志。 [0048] In order to CGI more comprehensive monitoring the implementation of the operation of the business logic, CGI monitor configuration information may be configured to execute business logic for CGI return value while monitoring the execution time, failure rate, etc. Accordingly, the corresponding monitoring rules can be CGI execute business logic of the return value is not lawful to report the CGI execute business logic operation to the statistical / analytics server or recorded in the local log, CGI execute business logic of business execution time exceeds a preset threshold will execute CGI the operation of the business logic reported to the statistical / analytics server or recorded in the local log, CGI execute business logic of business failure rate exceeds a preset threshold operation of CGI execution of business logic reporting local logs to the statistics / analysis server or record .

[0049] 步骤106、CGI服务器执行相应的监控动作。 [0049] Step 106, CGI server performs the corresponding control operation.

[0050] 通过以上流程,本地代理中存储的CGI监控信息可以根据配置信息服务器中的CGI监控配置信息进行同步更新;CGI服务器接收到CGI业务请求后,可以判断自身存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同,并当判断为不同时,根据本地代理中的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息对CGI业务请求的处理情况进行CGI监控,维护了CGI监控配置信息的一致性和时效性,且提高了CGI监控的灵活性。 [0050] Through the above process, CGI monitoring information home agent stored may configuration information according to the configuration information of the server CGI monitor synchronization update; the CGI server receives CGI service request, based on CGI monitor their own configuration information stored locally CGI monitoring agent stored configuration information is the same, and when it is determined as not the same, the configuration information update CGI server according to the home agent in CGI monitor CGI monitor their own stored configuration information and configuration information CGI service according CGI monitoring updated CGI handling of requests were monitoring, maintenance, monitoring the CGI configuration consistency and timeliness of information, and improve the flexibility of CGI monitored.

[0051] 基于上述CGI监控方法相同的发明构思,本发明实施例还提供了一种CGI服务器,应用于WEB系统中。 [0051] Based on the same inventive concept CGI monitoring method, embodiments of the present invention further provides a CGI server, WEB system applied. 该WEB系统中对应CGI服务器设置有本地代理,所述本地代理中存储有从配置信息服务器同步更新得到的CGI监控配置信息。 The WEB server CGI system is provided with a corresponding home agent, the home agent stores a CGI synchronization update configuration information obtained from the monitoring server configuration information.

[0052] 如图2所示,为本发明实施例提供的CGI服务器的结构示意图,可以包括: CGI structural diagram of embodiment of the server according to the [0052] 2, the present invention may comprise:

[0053] 存储模块21,用于存储CGI监控配置信息; [0053] The storage module 21, configured to store configuration information CGI monitor;

[0054] 接收模块22,用于接收CGI业务请求; [0054] The receiving module 22 for receiving a service request CGI;

[0055] 判断模块23,用于当接收模块22接收到CGI业务请求后,判断存储模块21中存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同; [0055] The determining module 23, configured to, when the receiving module 22 receives the service request to a CGI, CGI monitoring module 21 determines the memory configuration information stored in the home agent monitoring CGI stored configuration information is identical;

[0056] 更新模块24,用于当判断模块23判断为不相同时,根据本地代理中存储的CGI监控配置信息更新存储模块21中存储的CGI监控配置信息; [0056] updating module 24, configured to, when the determining module 23 determines that not the same, updating the stored configuration information CGI monitoring module 21 stores the configuration information in the home agent monitoring CGI stored;

[0057] 监控模块25,用于根据更新后的CGI监控配置信息对CGI业务请求的处理过程进行监控。 [0057] The monitoring module 25 for monitoring CGI configuration information after the update processing of the service request to monitor CGI.

[0058] 为了在一定程度上提高CGI监控的效率,并降低系统负担,接收模块22接收到CGI业务请求时,判断模块23可以先判断接收模块22接收到CGI业务请求的时间与上一次更新模块24更新CGI监控配置信息的时间的时间差是否大于预设更新周期,并当判断为是时,获取本地代理中存储的CGI监控配置信息,并判断存储模块21中存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同,当二者不同时,则认为需要更新CGI监控配置信息,当二者相同时,则认为不需要更新CGI监控配置信息。 [0058] In order to improve to some extent the efficiency of CGI monitor and reduce burden on the system, the receiving module 22 receives the CGI service request determination module 23 may first determine the receiving module 22 receives the time of CGI service request and the last update module if the time difference 24 updates CGI monitor configuration information of time greater than a predetermined update period, and when the determination is YES, obtaining the home agent stored CGI monitor configuration information, and determines the storage module stored CGI monitor 21 the configuration information of the local proxy CGI monitoring configuration information stored is the same, if not both, is considered to need to update the configuration information for monitoring CGI, when both are the same, it is considered necessary to update the configuration information to monitor CGI.

[0059] 其中,当接收模块22接收到CGI业务请求的时间与更新模块24上一次更新CGI监控配置信息的时间的时间差不大于预设更新周期时,判断模块23可以直接判断为不需要更新自身存储的CGI监控配置信息,监控模块25直接根据存储模块21中存储的CGI监控配置信息进行CGI监控。 When [0059] wherein, when the receiving module 22 receives the CGI module update time of the service request time update configuration information on the CGI monitor 24 is not greater than a preset time difference update period determination module 23 may be directly determined that no update itself CGI configuration information stored monitoring, the monitoring module 25 directly from the CGI configuration information stored in the storage monitoring module 21 for monitoring CGI.

[0060] 其中,CGI监控配置信息中针对监控对象设置有第一监控动作触发条件和第二监控动作触发条件,第一监控动作触发条件对应的监控动作为将CGI执行业务逻辑的运行情况记录在本地日志中,第二监控动作触发条件对应的监控动作为将CGI执行业务逻辑的运行情况上报给服务器;监控模块25可以具体用于,根据监控配置信息监控CGI执行业务逻辑的运行情况,当CGI执行业务逻辑的运行情况满足第一监控动作触发条件时,将CGI执行业务逻辑的运行情况记录在本地日志中;当CGI执行业务逻辑的运行情况满足第二监控动作触发条件时,将CGI执行业务逻辑的运行情况上报给服务器。 [0060] wherein, CGI configuration information for monitoring the monitored object is provided with a first and a second monitoring operation of the monitoring operation triggers the trigger condition, monitoring the operation of a first operating condition corresponding to the trigger to monitor the operation of CGI to execute business logic recorded local log, a second monitoring operation of the monitoring operation trigger condition corresponding to the CGI execution reporting business logic operation to the server; monitoring module 25 may be specifically configured to monitor the running status of the CGI execution information according to the monitoring service logic, when CGI performing service logic operation to monitor the operation of the trigger satisfies a first condition, the operation of the business logic of the CGI execution recorded in the local log; CGI execution when the operating conditions satisfy the business logic to monitor the operation of the second trigger condition, the CGI execution business the operation of the logic of the report to the server.

[0061] 通过本发明实施例提供的技术方案,CGI服务器可以灵活调整监控策略,并及时更新监控配置信息,维护了监控配置信息的一致性和时效性,并提高了CGI监控的灵活性。 [0061] The technical solution provided by the embodiment of the present invention, can be flexibly adjusted CGI server monitoring policy, monitor and update the configuration information, the maintenance monitoring configuration consistency and timeliness of the information, and improve the flexibility of CGI monitored.

[0062] 本发明实施例还提供一种WEB系统,如图3所示,包括配置信息服务器31,本地代理32以及CGI服务器33 ;其中, [0062] Embodiments of the present invention further provides a WEB system, shown in Figure 3, includes configuration information server 31, the home agent 32 and the server CGI 33; wherein,

[0063] 配置信息服务器31,用于将CGI监控配置信息发送给所述本地代理; [0063] configuration information server 31, CGI is used to monitor the configuration information to the home agent;

[0064] 本地代理32,用于根据接收到的CGI监控配置信息更新本地代理自身存储的CGI监控配置信息; [0064] 32 home agent, the home agent to update its own configuration information stored CGI monitor configuration information received CGI monitor;

[0065] CGI服务器33,用于在接收到CGI业务请求后,判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同;若所述CGI服务器判断为不相同,则根据所述本地代理中存储的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息,对所述CGI业务请求的处理过程进行监控。 [0065] CGI server 33, after receiving a service request to a CGI, CGI monitor determines its own configuration information stored in the corresponding home agent to monitor the configuration stored CGI information is identical; determines if the server CGI not identical, the CGI is configured to monitor the home agent information stored in the server CGI CGI updating configuration information stored by the monitoring, and configuration information updated monitoring CGI, CGI for processing the service request to monitor.

[0066] 其中,配置信息服务器31可以具体用于,当配置信息服务器数据库中CGI监控配置信息发生更新时,获取更新后的CGI监控配置信息,并将获取到的CGI监控配置信息发送给本地代理。 [0066] wherein the configuration server 31 can be configured, when the configuration information in the server database is updated configuration information to monitor CGI, CGI obtain updated monitor the configuration information and configuration information to the home agent of the acquired monitor CGI .

[0067] 其中,配置信息服务器31可以具体用于,以预设周期向本地代理发送CGI监控配置信息; [0067] wherein the configuration server 31 can be configured to monitor a preset period CGI configuration information sent to the local agent;

[0068] 本地代理32则可以具体用于,比较接收到的CGI监控配置信息与本地代理自身存储的CGI监控配置信息是否相同,并当二者不同时,根据接收到的CGI监控配置信息更新本地代理中存储的CGI监控配置信息。 [0068] The home agent 32 may be configured to compare the received CGI monitor configuration information stored by the home agent monitoring CGI configuration information is the same, and if not both, according to the received configuration information to update the local monitoring CGI CGI monitoring agent stored in the configuration information.

[0069] 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。 [0069] By the above described embodiments, those skilled in the art may clearly understand that the present invention may be implemented by software plus a necessary universal hardware platform, also be implemented by hardware, but the former is in many cases more good embodiments. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Based on such understanding, the technical solutions of the present invention in essence or the part contributing to the prior art may be embodied in a software product, which computer software product is stored in a storage medium and includes several instructions to enable a a computer device (may be a personal computer, a server, or network device) to execute the methods according to embodiments of the present invention.

[0070] 本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。 [0070] Those skilled in the art will be appreciated the drawings are merely schematic diagram of a preferred embodiment, the modules or processes in the accompanying drawings are not necessarily embodiments of the present invention it is necessary.

[0071] 本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。 [0071] Those skilled in the art will be appreciated apparatus embodiment that the modules can be distributed to the embodiment of the device according to the embodiment may be performed according to the present embodiment which are different from one case or more devices. 上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。 Modules of the embodiments may be combined into one module, or split into multiple submodules.

[0072] 以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。 Only a few [0072] The above disclosed specific embodiments of the present invention, however, the present invention is not limited thereto, anyone skilled in the art can think of variations shall fall within the scope of the present invention.

Claims (9)

  1. 1.一种通用网关接口CGI监控方法,其特征在于,对应CGI服务器设置有本地代理,所述本地代理中存储有从配置信息服务器同步更新得到的CGI监控配置信息,该方法包括: CGI服务器接收到CGI业务请求后,判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同; 若所述CGI服务器判断为不相同,则根据所述本地代理中存储的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息,对所述CGI业务请求的处理过程进行监控; 其中,所述CGI监控配置信息中针对监控对象设置有第一监控动作触发条件和第二监控动作触发条件,所述第一监控动作触发条件对应的监控动作为将CGI执行业务逻辑的运行情况记录在本地日志中,所述第二监控动作触发条件对应的监控动作为将CGI执行业务逻辑的运行情况上报 CGI Common Gateway Interface A monitoring method, wherein there are provided corresponding to the server CGI home agent, the home agent stores a CGI synchronization update configuration information obtained from the monitoring server configuration information, the method comprising: receiving the server CGI service request to the CGI, CGI monitor determines its own monitoring information stored in the configuration CGI corresponding home agent information stored in the configuration are the same; determining if the server is not the same as CGI, CGI is monitored according to the stored home agent updating the configuration information stored by the server CGI CGI monitor configuration information, configuration information and the updated monitoring CGI, CGI for processing said monitored request traffic; wherein the CGI is provided for monitoring the monitoring target information with a first configuration monitoring the operation of a second monitoring operation triggers and trigger condition, monitoring the first monitoring operation of the operation trigger condition corresponding to the CGI execution of business logic operation log recorded in the local, the second monitoring operation corresponding to the trigger condition monitoring the operation of the CGI action to execute business logic reporting 服务器;所述CGI服务器对所述CGI业务请求的处理过程进行监控,具体为: 所述CGI服务器根据CGI监控配置信息监控CGI执行业务逻辑的运行情况; 当所述CGI服务器判断所述CGI执行业务逻辑的运行情况满足第一监控动作触发条件时,将所述CGI执行业务逻辑的运行情况记录在本地日志中; 当所述CGI服务器判断所述CGI执行业务逻辑的运行情况满足第二监控动作触发条件时,将所述CGI执行业务逻辑的运行情况上报给服务器。 Server; the CGI server CGI process the service request to monitor, specifically: the CGI server is configured to monitor the operation of information service logic in accordance with CGI execution monitor CGI; CGI server determines if the service of the CGI execution satisfies a first logical operation to monitor the operation of the trigger condition, the operation of the business logic of the CGI execution recorded in the local log; CGI server when determining the operating conditions of the CGI execution satisfies a second monitoring service logic operation trigger the condition, the operation of the service logic execution CGI reported to the server.
  2. 2.如权利要求1所述的方法,其特征在于,所述CGI服务器判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同,具体为: 所述CGI服务器判断接收到所述CGI业务请求的时间与上一次CGI监控配置信息更新的时间的时间差是否大于预设更新周期,并当判断为是时,获取本地代理中存储的CGI监控配置信息,并判断自身存储的CGI监控配置信息与所述本地代理中存储的CGI监控配置十目息是否相同。 The CGI server determines: 2. The method as claimed in claim 1, wherein said determination CGI server CGI CGI monitor their own monitoring information stored in the configuration corresponding to the configuration of the home agent information is stored in the same, specifically receives the CGI request service time and the last time the configuration is CGI monitor the updated time difference information is greater than a predetermined update period, and when the determination is YES, obtaining the home agent monitoring CGI stored configuration information, and determines that it stores the CGI monitor configuration information stored in the home agent monitoring CGI 10 head configuration information is the same.
  3. 3.如权利要求1所述的方法,其特征在于,本地代理从配置信息服务器同步更新得到CGI监控配置信息的过程,具体为: 当配置信息服务器数据库中CGI监控配置信息发生更新时,所述配置信息服务器获取更新后的CGI监控配置信息,并将获取到的CGI监控配置信息发送给本地代理; 所述本地代理根据接收到的CGI监控配置信息更新本地代理自身存储的CGI监控配置ί目息O 3. The method according to claim 1, wherein the configuration information from the home agent server CGI synchronization update process of obtaining configuration information to monitor, in particular: when the configuration information in the database server CGI information is updated when the monitor configuration, the acquiring the configuration information of the server CGI CGI monitor monitoring the updated configuration information and the acquired configuration information to the home agent; the home agent home agent updates its own configuration information stored CGI mesh monitoring configuration ί information based on the received monitor CGI O
  4. 4.如权利要求1所述的方法,其特征在于,本地代理从配置信息服务器同步更新得到CGI监控配置信息的过程,具体为: 所述配置信息服务器以预设周期向本地代理发送CGI监控配置信息,所述本地代理比较接收到的CGI监控配置信息与本地代理自身存储的CGI监控配置信息是否相同,并当二者不同时,根据接收到的CGI监控配置信息更新本地代理中存储的CGI监控配置信息。 4. The method according to claim 1, wherein the home agent to obtain CGI process monitoring configuration information from the configuration information synchronization update server, specifically: the configuration information server to transmit a preset period CGI arranged to monitor the local proxy information, the home agent compares the received CGI monitor configuration information stored by the home agent monitoring CGI configuration information is the same, and if not both, CGI monitor configuration information update stored in the home agent based on the received monitor CGI configuration information.
  5. 5.一种CGI服务器,应用于WEB系统,其特征在于,所述WEB系统中对应CGI服务器设置有本地代理,所述本地代理中存储有从配置信息服务器同步更新得到的CGI监控配置信息,该CGI服务器包括: 存储模块,用于存储CGI监控配置信息; 接收模块,用于接收CGI业务请求; 判断模块,用于当所述接收模块接收到CGI业务请求后,判断所述存储模块存储的CGI监控配置信息与本地代理中存储的CGI监控配置信息是否相同; 更新模块,用于当所述判断模块判断为不相同时,根据所述本地代理中存储的CGI监控配置信息更新所述存储模块存储的CGI监控配置信息; 监控模块,用于根据更新后的CGI监控配置信息对所述CGI业务请求的处理过程进行监控; 其中,所述CGI监控配置信息中针对监控对象设置有第一监控动作触发条件和第二监控动作触发条件,所述第一监控动作触发条件对 A CGI servers, WEB system is applied, characterized in that the WEB server CGI system is provided with a corresponding home agent, the home agent stores a CGI synchronization update configuration information obtained from the monitoring server configuration information, the CGI servers comprising: a storage module for storing configuration information monitor CGI; receiving means for receiving a service request CGI; determining module, configured to, when receiving the service request to a CGI, determining the storage module stored CGI said receiving module monitoring configuration information stored in the home agent to monitor the configuration information is the same CGI; updating module, configured to, when the determination means determines at the same time, updating the configuration information stored in the storage module according to the home agent monitoring CGI is stored not in CGI's monitor configuration information; monitoring module configured to process the service request to the CGI CGI is monitored according to the monitoring updated configuration information; wherein, the CGI configuration information is provided to monitor the monitoring operation for monitoring a first object triggers monitoring the operation condition and the second triggering condition, the first monitoring operation of the trigger condition 的监控动作为将CGI执行业务逻辑的运行情况记录在本地日志中,所述第二监控动作触发条件对应的监控动作为将CGI执行业务逻辑的运行情况上报给服务器;所述监控模块具体用于,根据CGI监控配置信息监控CGI执行业务逻辑的运行情况,当所述CGI执行业务逻辑的运行情况满足第一监控动作触发条件时,将所述CGI执行业务逻辑的运行情况记录在本地日志中;当所述CGI执行业务逻辑的运行情况满足第二监控动作触发条件时,将所述CGI执行业务逻辑的运行情况上报给服务器。 Monitoring the operation of the business logic of the CGI execution operation log recorded in the local, the second monitoring operation of the monitoring operation trigger condition corresponding to the CGI execution reporting business logic operation to the server; the monitoring module is configured to the CGI monitor the operation of monitoring the configuration information of the execution of business logic CGI, CGI execution when the operating conditions satisfy the business logic to monitor the operation of a first trigger condition, the operation of the business logic of the CGI execution recorded in the local log; when the operating conditions satisfy the CGI execution business logic to monitor the operation of the second trigger condition, the operation of the service logic execution CGI reported to the server.
  6. 6.如权利要求5所述的CGI服务器,其特征在于,所述判断模块具体用于,判断所述接收模块接收到所述CGI业务请求的时间与上一次CGI监控配置信息更新的时间的时间差是否大于预设更新周期,并当判断为是时,获取本地代理中存储的CGI监控配置信息,并判断自身存储的CGI监控配置信息与所述本地代理中存储的CGI监控配置信息是否相同。 CGI server as claimed in claim 5 to monitor the configuration information update time of the time difference, characterized in that, the determining module for determining whether the receiving module receives the CGI request service time of the last CGI It is greater than a predetermined update period, and when the determination is YES, obtaining the home agent monitoring CGI stored configuration information stored by the monitoring and determining CGI CGI configuration monitoring information stored in the home agent is the same configuration information.
  7. 7.一种WEB系统,其特征在于,包括本地代理、配置信息服务器以及如权利要求5-6任一项所述的CGI服务器;其中, 所述配置信息服务器用于,将CGI监控配置信息发送给所述本地代理; 所述本地代理用于,根据接收到的CGI监控配置信息更新本地代理自身存储的CGI监控配置信息; 所述CGI服务器用于,在接收到CGI业务请求后,判断自身存储的CGI监控配置信息与对应的本地代理中存储的CGI监控配置信息是否相同;若所述CGI服务器判断为不相同,则根据所述本地代理中存储的CGI监控配置信息更新CGI服务器自身存储的CGI监控配置信息,并根据更新后的CGI监控配置信息,对所述CGI业务请求的处理过程进行监控; 其中,所述CGI监控配置信息中针对监控对象设置有第一监控动作触发条件和第二监控动作触发条件,所述第一监控动作触发条件对应的监控动作为将CGI执行 A WEB system comprising a home agent and the configuration server CGI server as claimed in claim any one of claims 5-6; wherein the configuration information for the server, the configuration information monitor CGI to the home agent; the home agent for monitoring according to the received CGI updated configuration information stored by the home agent monitoring CGI configuration information; for the CGI servers, CGI after receiving the service request, determines that it stores monitoring configuration of CGI CGI monitoring information corresponding home agent information is stored in the same configuration; if the server CGI is determined not identical, updating the configuration information stored by the server CGI CGI CGI monitor according to the stored home agent monitoring configuration information, configuration information and the updated monitoring CGI, CGI for processing said monitored request traffic; wherein said second monitor to monitor CGI configuration information for monitoring target is provided with a first monitoring operation triggers and operation of the trigger condition, monitoring the first monitoring operation of the operation trigger condition corresponding to the CGI execution 务逻辑的运行情况记录在本地日志中,所述第二监控动作触发条件对应的监控动作为将CGI执行业务逻辑的运行情况上报给服务器;所述CGI服务器具体用于,根据CGI监控配置信息监控CGI执行业务逻辑的运行情况,当所述CGI执行业务逻辑的运行情况满足第一监控动作触发条件时,将所述CGI执行业务逻辑的运行情况记录在本地日志中;当所述CGI执行业务逻辑的运行情况满足第二监控动作触发条件时,将所述CGI执行业务逻辑的运行情况上报给服务器。 Service logic operation log recorded in the local, the second monitoring operation of the monitoring operation of the trigger condition corresponding to the CGI execution reporting business logic operation to the server; specifically for the CGI servers, configuration information monitoring according to the monitoring CGI CGI execution of business logic operation, when the operating conditions satisfy the CGI execution business logic to monitor the operation of the first trigger condition, the operation of the business logic of the CGI execution recorded in the local log; CGI execution when the business logic monitoring the operation of a second operation when satisfying the trigger condition will be reported to the operation of the business logic to execute CGI server.
  8. 8.如权利要求7所述的WEB系统,其特征在于, 所述配置信息服务器具体用于,当配置信息服务器数据库中CGI监控配置信息发生更新时,获取更新后的CGI监控配置信息,并将获取到的CGI监控配置信息发送给本地代理。 8. The WEB system according to claim 7, wherein the configuration information for the particular server, the configuration information when the server CGI database information is updated when the monitor configuration, the monitor CGI obtain the updated configuration information, and CGI acquired monitor configuration information to a local agent.
  9. 9.如权利要求7所述的WEB系统,其特征在于, 所述配置信息服务器具体用于,以预设周期向本地代理发送CGI监控配置信息; 所述本地代理具体用于,比较接收到的CGI监控配置信息与本地代理自身存储的CGI监控配置信息是否相同,并当二者不同时,根据接收到的CGI监控配置信息更新本地代理中存储的CGI监控配置信息。 9. The WEB system according to claim 7, wherein the configuration information server configured to transmit a preset period CGI configuration information to the home agent monitoring; the home agent specific for comparing the received CGI monitor configuration information stored by the home agent monitoring CGI configuration information is the same, and if not both, according to the received configuration information update monitor CGI CGI monitor local agent stored configuration information.
CN 201110110847 2011-04-29 2011-04-29 Cgi monitoring method and apparatus and systems CN102761432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110110847 CN102761432B (en) 2011-04-29 2011-04-29 Cgi monitoring method and apparatus and systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110110847 CN102761432B (en) 2011-04-29 2011-04-29 Cgi monitoring method and apparatus and systems

Publications (2)

Publication Number Publication Date
CN102761432A true CN102761432A (en) 2012-10-31
CN102761432B true CN102761432B (en) 2016-03-30

Family

ID=47055759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110110847 CN102761432B (en) 2011-04-29 2011-04-29 Cgi monitoring method and apparatus and systems

Country Status (1)

Country Link
CN (1) CN102761432B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7289967B1 (en) * 2000-04-13 2007-10-30 Siebel Systems, Inc. Methods of updating information maintained at an intermediary web site
CN101340444A (en) * 2008-08-26 2009-01-07 华为技术有限公司 Fireproof wall and server policy synchronization method, system and apparatus
CN102006182A (en) * 2010-10-15 2011-04-06 广东九博电子科技有限公司 Equipment WEB network management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7289967B1 (en) * 2000-04-13 2007-10-30 Siebel Systems, Inc. Methods of updating information maintained at an intermediary web site
CN101340444A (en) * 2008-08-26 2009-01-07 华为技术有限公司 Fireproof wall and server policy synchronization method, system and apparatus
CN102006182A (en) * 2010-10-15 2011-04-06 广东九博电子科技有限公司 Equipment WEB network management system

Also Published As

Publication number Publication date Type
CN102761432A (en) 2012-10-31 application

Similar Documents

Publication Publication Date Title
US20070130324A1 (en) Method for detecting non-responsive applications in a TCP-based network
US20070124437A1 (en) Method and system for real-time collection of log data from distributed network components
US6397359B1 (en) Methods, systems and computer program products for scheduled network performance testing
US20050256935A1 (en) System and method for managing a network
US20050021736A1 (en) Method and system for monitoring performance of distributed applications
Gainaru et al. Fault prediction under the microscope: A closer look into hpc systems
US7925856B1 (en) Method and apparatus for maintaining an amount of reserve space using virtual placeholders
US20060277295A1 (en) Monitoring system and monitoring method
US20120311562A1 (en) Extendable event processing
CN102624570A (en) Monitoring system and method for detecting availability of web server
CN102739802A (en) Service application-oriented IT contralized operation and maintenance analyzing system
CN101854270A (en) Multisystem running state monitoring method and system
JP2007334536A (en) Behavior analysis system for malware
Koskinen et al. Borderpatrol: isolating events for black-box tracing
CN102750324A (en) File storage system, file storage device and file access method
US20140068040A1 (en) System for Enabling Server Maintenance Using Snapshots
CN103812699A (en) Monitoring management system based on cloud computing
CN101877618A (en) Monitoring method, server and system based on proxy-free mode
CN104618343A (en) Method and system for detecting website threat based on real-time log
CN102368718A (en) Monitoring program method and system thereof
Meng et al. Reliable state monitoring in cloud datacenters
CN102761454A (en) Method and system for monitoring internet of things
CN103414579A (en) Cross-platform monitoring system applicable to cloud computing and monitoring method thereof
CN101778105A (en) Method, system and equipment for obtaining real-time performance monitoring indicated numbers based on WEB
US7480651B1 (en) System and method for notification of group membership changes in a directory service

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model