A kind of embedded agent supervising device and method of supporting that real-time running state obtains
Technical field
The present invention relates to computer realm, particularly a kind of embedded agent supervising device and method of supporting that real-time running state obtains.
Background technology
Intelligent grid is as the development model of electrical network of future generation, obtained extensive concern in the world, China power industry tight tracking world developed country intelligent grid development trend, the promotion energy-saving and emission-reduction that active response government proposes, the call that develops low-carbon economy, improves service level, formulate intelligent grid and built three-step development strategy, proposed to carry out intelligent grid more reliable, energy-conservation, that optimize in China.
In six big links of intelligent grid, " intelligent power " promotes energy-saving and emission-reduction by optimizing the user power utilization mode in the electricity consumption side, be directly connected to energy use efficiency and the economical operation of electrical network, be various circles of society's perception and the main path of experiencing strong intelligent grid construction achievement, in the construction of strong intelligent grid, have very consequence and effect.
Preposition main station system is the important component part of intelligent power side, contain application system, preposition communication, communication channel, collecting device, polytype equipment such as measuring equipment, its effect is that the power information of power consumer is gathered, and manage based on the energy data of gathering, analyze, decision-making, for formulating the ordered electric scheme, estimate client's power supply quality, monitoring and evaluation user efficiency provides basic data to support, be to improve user power utilization efficient and optimize power mode, implementing the important handgrip of China's energy-saving and emission-reduction and ladder electrovalence policy, is the important content that intelligent power is built.
The preposition main station system of different scales has all been had in China various places electric companies at different levels at present, further propelling along with intelligent power " all standing, full collection, full control " construction object, the on-the-spot scope of the electric power that covers constantly enlarges, terminal inserts scale also to be increased thereupon, make and have preposition main station system complex structure now, incipient fault point is many, and existing preposition main station system is lacked necessary online real-time monitoring capacity.Mainly be to preposition communications platform overall operation index such as cpu busy percentage, EMS memory occupation amount, table space operating position, user's linking number, whether communication channel ruuning situation such as channel be available, the terminal linking number of channel (being the channel loading rate), communication number and the communication of a channel period are successfully counted, and the presence of terminal operating situation such as terminal, off-line time, off-line number of times, communication success rate, terminal are gathered success rate, data integrity rate, last successful acquisition time, acquisition tasks configuration etc. and lacked necessary monitoring recently.Current the real time execution situation of platform and integrally operating index, communication channel, collecting device and the monitoring degree of communication efficiency still are in reduced levels, operational application is mainly realized by all kinds of query statistics, this kind mode is neither directly perceived, also lack real-time, the integrated communication situation can not get effective monitoring, cause fault discovery slow, had a strong impact on the operation of magnanimity information collection and processing platform.
Summary of the invention
The present invention provides a kind of embedded agent supervising device and method of supporting that real-time running state obtains in order to address the above problem,
For achieving the above object, the present invention adopts following technical scheme:
A kind of embedded agent supervising device of supporting that real-time running state obtains comprises monitoring server, at least one node server and client browser,
Described monitoring server is used for the monitor message of node server is handled, and result is deposited in the database, and carry out real-time communication with client browser monitor message is submitted to client browser;
Described node server, be used for providing the various performance parameters of server, the relevant information of platform application and the state information of terminal archives table, channel and terminal operating, and carry out real-time communication with monitoring server the situation of change of various performance parameters is pushed to monitoring server;
Described client browser is used for hardware monitoring information, platform application monitor message, real-time renewal and the demonstration of business monitoring information.
Described node server comprises hardware monitoring proxy module, platform application monitoring agent module and business monitoring proxy module;
The hardware monitoring proxy module obtains the various performance parameters of node server based on the JMX framework, uses the JMX standard to push to the hardware monitoring processing module of monitoring server by the RMI interface;
Platform application monitoring agent module is obtained the relevant information of platform application and is packaged into the XML form by reading the bundle state based on the OSGi framework, pushes to the platform application monitor processing module of monitoring server by the Socket real time communication;
The business monitoring proxy module, by reading the state information that terminal archives table, channel Running Status Table in the node server database obtains channel operation, terminal operating, be packaged into the XML form, push to the business monitoring processing module of monitoring server by the Socket real time communication.
Described monitoring server comprises hardware monitoring processing module, platform application monitor processing module and business monitoring processing module;
The hardware monitoring processing module is handled by the index processing rule for the various performance parameters of the node server that will obtain, and is deposited result in database;
The platform application monitor processing module is used for the platform application monitor message of obtaining is handled by the index processing rule, and deposits result in database;
The business monitoring processing module is handled by the index processing rule for business monitoring information such as the channel running status that will obtain or terminal running states, and is deposited result in database.
A kind of method for supervising of supporting the embedded agent supervising device that real-time running state obtains may further comprise the steps:
Step 1 hardware monitoring proxy module obtains the various performance parameters of node server, pushes to the hardware monitoring processing module of monitoring server;
After platform application monitoring agent module is obtained the relevant information of platform application and encapsulated, push to the platform application monitor processing module of monitoring server;
The business monitoring proxy module is by reading the state information that terminal archives table, channel Running Status Table in the node server database obtains channel operation, terminal operating, and after being packaged into, real time communication pushes to the business monitoring processing module of monitoring server;
The hardware monitoring processing module of step 2 monitoring server, platform application monitor processing module, business monitoring processing module are handled the monitor message of node server, and result deposited in the database, database is set up list structure and is stored all kinds of monitor messages;
Step 3 monitoring server is with the monitor message handled and the warning message real time information push function to client browser;
Step 4 client browser is with hardware monitoring information, platform application monitor message, real-time renewal and the demonstration of business monitoring information.
The described hardware monitoring proxy module of described step 1 is to use the JMX framework to obtain every performance index such as cpu performance, internal memory performance, hard disk performance, task implementation status, network interface card performance of node server, relate to mechanical floor, server layer, Distributed Services layer, the specific implementation step is as follows:
(1-1) at mechanical floor, every performance index of server are packaged into the Mbean object, and one group of interface that meets standard externally is provided, and when the performance state of server changed, the Mbean object used notification model to send the notice of resource status modification;
(1-2) at server layer, the Mbean server carries out class loading, instantiation, registration with the Mbean object, for each Mbean object is registered corresponding monitor, monitor the resource status situation of change of Mbean object, and interface and the method for visiting these Mbean objects externally is provided;
(1-3) at the Distributed Services layer, when the monitor of Mbean object listens to resource status when changing, the management application program uses Mbean object accesses interface that server layer provides with the RMI mechanism of its state change message by the RMI adapter, and the RMI interface by monitoring server is sent to the hardware monitoring processing module.
The platform application monitoring agent module of described step 1 is based on the OSGi architectural framework, bundle (assembly) with information is packaged into a plurality of loose couplings such as communication channel, communication protocol, service profile data, business datum persistence, application system be mutual, heat is deployed in the extensive information gathering of intelligent power and the processing platform container, obtains relevant platform application information by the state that reads bundle.
The channel Running Status Table memory channel situation of the business monitoring proxy module of described step 1, terminal linking number, the communication number of a channel period and the communication of channel such as successfully count at information; What store in the terminal archives table is that terminal communication situation, terminal are gathered information such as situation, terminal operating situation; Wherein, terminal communication situation comprises the presence of each terminal, nearest off-line time, off-line number of times, communication success rate; Terminal collection situation comprises gathers success rate, data integrity rate, last successful acquisition time, acquisition tasks configuration; The terminal operating situation comprises communication parameter configuration, control parameter configuration, alarm item content.
The hardware monitoring processing module of described step 2 is handled the server various performance parameters of hardware monitoring module, if index transfinites, then enable the index processing rule that transfinites and handle achievement data, and produce warning information by the warning message generator and submit to client browser; If index changes in normal range (NR), then enable index change process rule process achievement data, and the achievement data that changes is pushed to client browser by index change information generator.
The business monitoring processing module of described step 2 comprises channel operation processing rule and terminal operating processing rule; Channel operation processing rule carries out channel overall operation status analysis from channel type and corresponding interface equal angles, and the operation conditions of further checking each passage, the terminal operating processing rule carries out terminal overall operation status analysis from terminal type, if channel running status or terminal running state are unusual, then produce warning information by the warning message generator and submit to client browser by Socket communication, if normal variation, the indication information after then will changing by index change information generator pushes client browser and shows in real time.
In the described step 3, monitoring server pushes a TCP connection request to client browser earlier, client browser responds to connect to TCP socket connection request, after connecting, monitoring server passes through Web socket communication realization to the real time information push function of client browser with monitor message and the warning message of handling with the XML service manner.
The monitor message of described step 4 shows based on the HTML5 standard by loading a plurality of HTML5canvas painting canvas realizations, the corresponding canvas painting canvas of every monitor message and warning information, client browser calls the relevant API of Canvas by browser script Java Script data is rendered on the HTML5 canvas element, and hardware monitoring information, platform application monitor message, business monitoring information are shown in real time.
Beneficial effect of the present invention is:
(1) the present invention is embedded into the embedded agent module in each node server, each embedded agent module is obtained the various performance parameters of node server based on JMX (Java administration extensions) framework, thereby high efficiency and reliability that monitor message is obtained have been realized, reduce offered load, reduced the influence to magnanimity information collection and processing platform operation.
(2) the present invention has realized that monitor message and warning message that monitoring server is handled pass through Web socket communication to the real time information push function of client browser with the XML service manner, improve the performance of real-time service greatly, thereby guaranteed stability of data transmission and promptness.
(3) the present invention draws various figure display monitoring information in client by using Java script technology to load a plurality of HTML5canvas painting canvas, and under the situation that does not refresh full page the real-time update monitor message, drawing speed is fast, save the space, and support convergent-divergent to show, strengthened user's experience.
Description of drawings
Fig. 1 is a kind of embedded agent supervising device general frame figure that supports that real-time running state obtains;
Fig. 2 is that the monitor message painting canvas tissue of client browser shows figure;
Embodiment
To be elaborated to embodiments of the present invention below:
The present invention can monitor and guarantee real-time, integrality, the reliability of monitor message to information such as the every performance index of the node server that is distributed in different physical locations, channel ruuning situation, terminal operating situations, reduce monitoring magnanimity information collection and processing platform are normally moved the influence that causes, and monitor message pushed to client browser automatically, client browser is base unit real-time update relevant information with Html5 canvas painting canvas and it is showed the user.
Supervising device of the present invention comprises monitoring server, at least one node server and client browser,
Described monitoring server is used for the monitor message of node server is handled, and result is deposited in the database, and carry out real-time communication with client browser monitor message is submitted to client browser;
Described node server, be used for offering the various performance parameters of node server, the relevant information of platform application and the state information of terminal archives table, channel and terminal operating, and carry out real-time communication with monitoring server the situation of change of various performance parameters is pushed to monitoring server;
Described client browser is used for hardware monitoring information, platform application monitor message, real-time renewal and the demonstration of business monitoring information.
Described node server comprises hardware monitoring proxy module, platform application monitoring agent module and business monitoring proxy module;
The hardware monitoring proxy module obtains the various performance parameters of node server based on the JMX framework, uses the JMX standard to push to the hardware monitoring processing module of monitoring server by the RMI interface;
Platform application monitoring agent module is obtained the relevant information of platform application and is packaged into the XML form by reading the bundle state based on the OSGi framework, pushes to the platform application monitor processing module of monitoring server by the Socket real time communication;
The business monitoring proxy module, by reading the state information that terminal archives table, channel Running Status Table in the node server database obtains channel operation, terminal operating, be packaged into the XML form, push to the business monitoring processing module of monitoring server by the Socket real time communication.
Described monitoring server comprises hardware monitoring processing module, platform application monitor processing module and business monitoring processing module; The hardware monitoring processing module is handled by the index processing rule for the various performance parameters of the node server that will obtain, and is deposited result in database;
Described index processing rule, the i.e. transformation rule of monitoring server recognition data " but the node server various performance parameters is transformed to "
The platform application monitor processing module is used for the platform application monitor message of obtaining is handled by the index processing rule, and deposits result in database;
The business monitoring processing module is handled by the index processing rule for business monitoring information such as the channel running status that will obtain or terminal running states, and is deposited result in database.
Support the method for supervising of the embedded agent supervising device that real-time running state obtains, it is characterized in that, may further comprise the steps:
The described hardware monitoring proxy module of step 1 obtains the various performance parameters of node server based on JMX (Java administration extensions) framework, uses the JMX standard to push to the hardware monitoring processing module of monitoring server by RMI (RMI) interface; Platform application monitoring agent module is based on the dynamic modeling system of OSGi(towards Java) framework obtains the relevant information of platform application and is packaged into XML (extend markup language) form by reading bundle (assembly) state, pushes to the platform application monitor processing module of monitoring server by Socket (socket) real time communication; The business monitoring proxy module is by reading the state information that terminal archives table, channel Running Status Table in the node server database obtains channel operation, terminal operating, be packaged into the XML form, push to the business monitoring processing module of monitoring server by the Socket real time communication.
The hardware monitoring processing module of the described monitoring server of step 2, platform application monitor processing module, business monitoring processing module are handled the monitor message of node server, and result deposited in the database, database is set up list structure and is stored all kinds of monitor messages;
The described monitoring server of step 3 passes through Web socket communication realization to the real time information push function of client browser with monitor message and the warning message of handling with the XML service manner;
Step 4 client browser uses Java script by loading a plurality of HTML5canvas painting canvas with hardware monitoring information, platform application monitor message, real-time renewal and the demonstration of business monitoring information.
The method for supervising of supervising device, the hardware monitoring proxy module of described step 1 uses the JMX framework to obtain every performance index such as cpu performance, internal memory performance, hard disk performance, task implementation status, network interface card performance of node server, relate to mechanical floor, server layer, Distributed Services layer, the specific implementation step is as follows:
(1-1) at mechanical floor, every performance index of server are packaged into the Mbean object, and one group of interface that meets standard externally is provided, and when the performance state of server changed, the Mbean object used notification model to send the notice of resource status modification;
(1-2) at server layer, the Mbean server carries out class loading, instantiation, registration with the Mbean object, for each Mbean object is registered corresponding monitor, monitor the resource status situation of change of Mbean object, and interface and the method for visiting these Mbean objects externally is provided;
(1-3) at the Distributed Services layer, when the monitor of Mbean object listens to resource status when changing, the management application program uses Mbean object accesses interface that server layer provides with the RMI mechanism of its state change message by the RMI adapter, and the RMI interface by monitoring server is sent to the hardware monitoring processing module.
The method for supervising of supervising device, the platform application monitoring agent module of described step 1 is based on the OSGi architectural framework, bundle (assembly) with information is packaged into a plurality of loose couplings such as communication channel, communication protocol, service profile data, business datum persistence, application system be mutual, heat is deployed in the extensive information gathering of intelligent power and the processing platform container, obtains relevant platform application information by the state that reads bundle.
The method for supervising of described supervising device, the channel Running Status Table memory channel situation of the business monitoring proxy module of described step 1, terminal linking number, the communication number of a channel period and the communication of channel such as successfully count at information; What store in the terminal archives table is that terminal communication situation, terminal are gathered information such as situation, terminal operating situation; Wherein, terminal communication situation comprises the presence of each terminal, nearest off-line time, off-line number of times, communication success rate; Terminal collection situation comprises gathers success rate, data integrity rate, last successful acquisition time, acquisition tasks configuration; The terminal operating situation comprises communication parameter configuration, control parameter configuration, alarm item content.
The method for supervising of described supervising device, the hardware monitoring processing module of described step 2 realizes with Java (programming language), server various performance parameters to the hardware monitoring module is handled, if index transfinites, then enable the index processing rule that transfinites and handle achievement data, and produce warning information by the warning message generator and submit to client browser; If index changes in normal range (NR), then enable index change process rule process achievement data, and the achievement data that changes is pushed to client browser by index change information generator.
The method for supervising of described supervising device, the business monitoring processing module of described step 2 comprise channel operation processing rule and terminal operating processing rule; Channel operation processing rule carries out channel overall operation status analysis from channel type and corresponding interface equal angles, and the operation conditions of further checking each passage, the terminal operating processing rule carries out terminal overall operation status analysis from terminal type, if channel running status or terminal running state are unusual, then produce warning information by the warning message generator and submit to client browser by Socket communication, if normal variation, the indication information after then will changing by index change information generator pushes client browser and shows in real time.
Described channel operation processing rule and terminal operating processing rule refer to two early warning rules, and namely certain index thinks namely that above the regular scope that I set its running status is unusual, can produce warning.
The method for supervising of described supervising device, in the described step 3, monitoring server pushes a TCP connection request to client browser earlier, and client browser responds to connect to TCP socket connection request.After connecting, monitoring server can be given client browser with the monitor message real time propelling movement.
The method for supervising of described supervising device, the monitor message of described step 4 shows based on the HTML5 standard by loading a plurality of HTML5 canvas painting canvas realizations, the corresponding canvas painting canvas of every monitor message and warning information, client browser calls the relevant API of Canvas by browser script Java Script data is rendered on the HTML5 canvas element, and hardware monitoring information, platform application monitor message, business monitoring information are shown in real time.