Summary of the invention
The object of the invention is to solve the problem, it provides a kind of distributed monitoring system based on domestic server and collecting method thereof. By the distributed form of monitor service end and monitoring agent end, and take the collecting method of self-adaptation, reach the object of domestic server platform construction supervisory system, and there is good extendability and reliability.
The technical scheme of the present invention is: a kind of distributed monitoring system, comprise for realizing gathering and the monitor client uploaded of monitor data, the monitoring agent end of the monitor data uploaded for buffer memory and for realizing the Organization And Management uploading monitor data, and the monitor service end of visual presentation, described monitor client, monitoring agent end and monitor service end communicate to connect all mutually, described monitor client comprises monitoring data collection module, and for the entity monitoring information of this locality is uploaded to monitor service end, described monitoring agent end comprises data collection module, and for the timing of the monitor data of buffer memory is uploaded to monitor service end.
Described a kind of distributed monitoring system, described monitoring agent end is the distributed framework comprising multiple distributed agent terminal, and the monitor data that monitoring agent end is collected from server, is temporarily stored in monitoring agent end, and timing is synchronized to monitor service end.
Described a kind of distributed monitoring system, described monitor service end comprises monitor service end main frame and monitor service end for machine, monitor service end main frame and monitor service end for machine hot standby part each other.
Described a kind of distributed monitoring system, described monitoring agent end comprises major joint with from node two integral parts, monitoring agent end major joint is used for carrying out data syn-chronization communication and management acquisition mode with monitor service end, is then data collector from node, collection monitoring data.
Described a kind of distributed monitoring system, described monitor client, monitoring agent end and monitor service end all adopt homemade software and hardware system.
A collecting method for distributed monitoring system, adopt as arbitrary in claim 1-4 as described in system, comprise following acquisition mode:
Mode one, wheel inquiry pattern, adopts the mode acquisition monitoring data of local agent, is uploaded to monitor service end, the passive reception monitor data of monitor service end at monitor client;
Mode two, catches pattern, adopts the agreement acquisition monitoring client datas such as integrated IPMI, SNMP, JMX, HTTP at monitor service end, and monitor service end initiatively receives monitor data;
Mode three, acts on behalf of pattern, adopts distributed agent pattern between monitor service end and monitor client transfer, is buffered on distributed proxy server group by the monitor data of collection, and timing is uploaded to monitor service end.
The collecting method of described a kind of distributed monitoring system, monitor service end is violent according to the detected index dynamic change of monitor client, adopt when exceeding default secure threshold scope and catch mode, when Testing index change is mild, when not exceeding default secure threshold scope, adopt wheel inquiry mode.
The collecting method of described a kind of distributed monitoring system, described detected index dynamic change degree is acutely or gently the severity judging its data variation of the maximum by data variation in preset time period and Schwellenwert, then be judged to violent when maximum and Schwellenwert differ by more than default secure threshold, do not exceed namely be judged as mild.
The collecting method of described a kind of distributed monitoring system, when monitor service end cannot normal processing large-scale monitoring data collection time, adopt agent way, the data of collection be put into the Buffer Pool of monitoring agent end, and set the timed interval uploaded, it is synchronized to monitor service end.
The present invention takes such scheme, and contrast current programme has useful effect and is:
Adopt distributed architecture design not only the domestic server of successful Application as monitoring server, also solve the not enough problem of the performance based on domestic server construction supervisory system, particularly adapt to the needs of following large-scale server cluster application. And the scale of monitoring can carry out cutting according to different application demand, access way simple and fast has good extendability and reliability. Again for the self-adapting data collection method of domestic server platform design, can from reducing supervisory system to the full extent to the resource occupation of monitored object, there is lightweight, usury feature, make the agency of supervisory system no longer by the restriction of single computer performance bottleneck.
High reliability, provides rationally reliable redundancy amount from collection, process, storage, it is possible to effectively evade the deficiency of domestic server initial stage reliability design.
High security, this supervisory system designs based on the computer platform of domestic independent research, is completely independently controlled supervisory system in safety.
Embodiment
Now by reference to the accompanying drawings 1,2 and specific embodiment the present invention is further illustrated.
The present embodiment device comprises for realizing gathering and the monitor client uploaded of monitor data, the monitoring agent end of the monitor data uploaded for buffer memory and for realizing the Organization And Management uploading monitor data, and the monitor service end of visual presentation, monitor client, monitoring agent end and monitor service end communicate to connect all mutually, monitor client comprises monitoring data collection module, and for the entity monitoring information of this locality is uploaded to monitor service end, described monitoring agent end comprises data collection module, and for the timing of the monitor data of buffer memory is uploaded to monitor service end.
Monitoring agent end is the distributed framework comprising multiple distributed agent terminal, and the monitor data that monitoring agent end is collected from server, is temporarily stored in monitoring agent end, and timing is synchronized to monitor service end.
Monitor service end comprises monitor service end main frame and monitor service end for machine, monitor service end main frame and monitor service end for machine hot standby part each other.
Monitoring agent end comprises major joint with from node two integral parts, monitoring agent end major joint is used for carrying out data syn-chronization communication and management acquisition mode with monitor service end, is then data collector from node, collection monitoring data.
Monitor client, monitoring agent end and monitor service end all adopt homemade software and hardware system.
A collecting method for distributed monitoring system, adopts above-mentioned system, comprises following acquisition mode:
Mode one, wheel inquiry pattern, adopts the mode acquisition monitoring data of local agent, is uploaded to monitor service end, the passive reception monitor data of monitor service end at monitor client;
Mode two, catches pattern, adopts the agreement acquisition monitoring client datas such as integrated IPMI, SNMP, JMX, HTTP at monitor service end, and monitor service end initiatively receives monitor data;
Mode three, acts on behalf of pattern, adopts distributed agent pattern between monitor service end and monitor client transfer, is buffered on distributed proxy server group by the monitor data of collection, and timing is uploaded to monitor service end.
Monitor service end is violent according to the detected index dynamic change of monitor client, adopts and catch mode when exceeding default secure threshold scope, when Testing index change is mild, adopts wheel inquiry mode when not exceeding default secure threshold scope.
Detected index dynamic change degree is acutely or gently the severity judging its data variation of the maximum by data variation in preset time period and Schwellenwert, then be judged to violent when maximum and Schwellenwert differ by more than default secure threshold, do not exceed namely be judged as mild.
When monitor service end cannot normal processing large-scale monitoring data collection time, adopt agent way, the data of collection be put into the Buffer Pool of monitoring agent end, and set the timed interval uploaded, be synchronized to monitor service end.
Fig. 1 illustrates the distributed monitoring system based on domestic server of the present invention, comprises monitor service end, 2 monitoring agent ends, 3 monitor clients formations, and three is connected by local area network, wherein:
Monitor service end 1 comprises that wheel is ask w1, caught w2, acts on behalf of w3 data acquisition module, configuration 11, database guard 12, warning 13, database 14, WEB service 15 module composition. Wherein wheel askes w1 is that the main frame passive transmission monitoring information of timing monitored is to monitor service end. Catch the main frame that w2 is monitoring and initiatively send monitoring information to monitor service end. Act on behalf of w3 and it is sent to monitor service end by the mode of local agent. Wherein sample frequency, wheel ask host number, act on behalf of cache size, the configuration such as database synchronization time by configuration 11 setting, the monitor data of collection is guarded 12 modules by database and is stored in database 14. And by WEB service 15 module, data are processed, analyze and show monitoring host computer state. If the state of monitoring host computer exceedes certain secure threshold, then alerts triggered 13 module, warning message is issued by message, mail, bullet window form. Monitor service end is monitored by heartbeat and is realized main frame with hot standby each other for machine, it is to increase the reliability of monitor service end.
Monitoring agent end 2 comprises that wheel is ask, caught, proxy data acquisition module, the pre-processing module 22 of monitor data. Monitoring agent end is the monitoring scale being carried out expanding monitoring system by distributed mode, namely expands the monitoring scale of supervisory system by increasing the number of servers of monitoring agent end. Monitor Daemon Server interpolation is configured by the configuration module of monitor service end, access server is installed monitoring agent program, can simply access supervisory system network, convenient and swift. Monitoring agent end keeps communicating by network with monitor client, and collection monitoring data, are temporarily stored to the database of monitoring agent end. Monitor data equilibrium assignment is uploaded by this end to each time period timing, not only avoids data conflict, and ensure that the stability of transfer, and decreases the load pressure of monitor service end collection monitoring data.
Monitor client 3 is made up of server and data gathering external member 31, this cluster is connected and composed by local area network, main hardware information, the software information gathering the machine, and need the crucial application message of monitoring, it is not limited to the information such as CPU, hard disk, fan, database, key procedure. This acquisition module is ask w1 by taking turns, catches w2, is acted on behalf of w3 and form, integrated multiple acquisition protocols, and each acquisition module needs to pre-install on monitoring host computer.
Monitor service end, monitoring agent end, monitor client three end all installation data collection guard module, three modules are communicated by network. Monitor service end timing acquiring monitoring host computer state, configures the parameters such as monitor data importance information, monitoring entity quantity, data acquiring frequency, wheel inquiry object in advance. When utilization of resources situation and the load pressure of monitoring host computer exceedes default secure threshold, according to following logic rules selection collecting method:
Monitored object performance, not by limited time, is defaulted as the inquiry of this land wheel and uploads;
When monitor service end judges that general being subject in limited time occurs in monitored unit performance, data gathering scale is carried out cutting by local agent, only uploads local critical data;
When degree in appearance is by limited time, catch and upload local critical data and frequency acquisition reduction;
When there is critical constraints, monitor client is with the form early warning of mail, message, bullet window, and stops data upload.
Corresponding limited degree is determined according to concrete system situation, is judged to corresponding limited degree and enables limited thick collecting method when namely the performance threshold on monitor client reaches user preset value.
This distributed monitoring system is deployed in domestic computer system, and the environment of supervisory control system running mainly comprises the domestic crucial software and hardware such as computer equipment, operating system, database, middleware.
The number of servers of monitor client, service end, monitoring agent end can dynamically increase and decrease.
Although specifically showing in conjunction with preferred embodiment and describing the present invention; but affiliated technician will be appreciated that; not departing from the spirit and scope of the present invention that appended claims limits, in form and details the present invention is made a variety of changes, it is the scope of protection of the invention.