CN100505647C - Method and system for implementing remote monitoring - Google Patents

Method and system for implementing remote monitoring Download PDF

Info

Publication number
CN100505647C
CN100505647C CNB2005101166679A CN200510116667A CN100505647C CN 100505647 C CN100505647 C CN 100505647C CN B2005101166679 A CNB2005101166679 A CN B2005101166679A CN 200510116667 A CN200510116667 A CN 200510116667A CN 100505647 C CN100505647 C CN 100505647C
Authority
CN
China
Prior art keywords
main frame
controlled
controlled main
monitoring
obtains
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2005101166679A
Other languages
Chinese (zh)
Other versions
CN1956396A (en
Inventor
杨滨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2005101166679A priority Critical patent/CN100505647C/en
Publication of CN1956396A publication Critical patent/CN1956396A/en
Application granted granted Critical
Publication of CN100505647C publication Critical patent/CN100505647C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

This invention discloses a method for realizing remote control used in the system containing monitor host and a monitored host including: A, configuring information of each monitored host on the monitor host, the monitor host gets object of each monitored host from it in terms of the information of the monitored object, C, the monitor host gets the current operation state of the monitored hosts by calling process functions of the objects of the monitored hosts. This invention also discloses a system to reduce the difficulty for developing and maintaining the remote monitor function.

Description

A kind of method and system that realize remote monitoring
Technical field
The present invention relates to computer networking technology, a kind of method and system that realize remote monitoring of particularly using in the computer network.
Background technology
At present, in the application of computer network, exist a kind of demand to be exactly: to come each other main frame of remote control network by the main frame that is used for managing concentratedly, to improve the manageability of computer network.Therefore, occurred by monitoring host computer and controlled main frame constitutes more than one system.Wherein, the main frame of monitoring other main frame is called monitoring host computer, and monitored main frame is called controlled main frame.In the media server system of forming by a plurality of media servers (Media Server), equally also realized technology that each media server running status is carried out remote monitoring.This paper will be that example is set forth problem and solution of the present invention that existing remote control technology occurs with the media server system.
Existing media server long distance control system comprises the two large divisions: one, be arranged at the administration module on the monitoring host computer, this administration module is responsible for concentrating statistics and is handled all information from controlled main frame; Two, be arranged at monitoring module on each controlled main frame, this monitoring module is responsible for the running status of its controlled main frame in place of monitoring in real time, and the information of this controlled main frame that will monitor reports the administration module on the monitoring host computer.Here, controlled main frame is exactly monitored media server.
In the prior art, based on The Component Object Model (COM) technology, monitoring module obtains the running status of controlled main frame to monitoring module by the correlation function that obtains local controlled host object, calls controlled host object to the monitoring of controlled main frame.For media server, the running status of being monitored is often referred to the current service state that media services are provided of each publishing point on the media server, and this service state comprises: publishing point title, type, state, online number or the like.Here, controlled main frame is a media server, and it comprises some publishing point that are used to provide the media program service, the corresponding a kind of media program service of each publishing point.Controlled main frame described herein is often referred to the windows media server that is used to provide streaming media service.
According to above description as seen, in the existing long distance control system, need to be provided with monitoring module separately on each controlled main frame, and will formulate the communication protocol between each monitoring module and the administration module.Therefore, the realization more complicated of whole long distance control system if monitoring function is changed, all will be made amendment to the monitoring module on each controlled main frame, one by one so the maintenance difficulties of long distance control system is also bigger.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and system that realize remote monitoring, can realize computer remote monitoring, and simplify the development process of long distance control system, significantly reduces the system maintenance difficulty.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention discloses a kind of method that realizes remote monitoring, this method is applied to comprise monitoring host computer and the system of controlled main frame more than, it is characterized in that this method comprises:
A. on monitoring host computer, dispose the information of each controlled main frame; The controlled host information of described configuration comprises: editor comprises the configuration file of each controlled host information, and described monitoring host computer is by reading the information that this configuration file obtains each controlled main frame;
B. monitoring host computer obtains each controlled host object by the information of described each controlled main frame from each controlled main frame; Describedly obtain each controlled host object from each controlled main frame, comprise: carry out following steps: B1. at each controlled main frame and call establishment example function, this establishment example function returns controlled host object interface again, and B2. obtains controlled host object by described controlled host object interface interchange query interface function;
C. monitoring host computer obtains the current running status of each controlled main frame by the processing function that calls described each controlled host object.
Wherein, the information of described controlled main frame comprises: address information and authentication information.
Wherein, the system of this method application is a media server system; Described controlled main frame is a media server, and the running status of described controlled main frame is: as the service state of each publishing point on the media server of controlled main frame;
Among the described step C, carry out following steps at each controlled host object:
C1. the publishing point set function that calls controlled host object obtains the publishing point collection object of corresponding controlled main frame;
C2. the publishing point function that obtains that calls this publishing point collection object obtains each publishing point object;
C3. the function that obtains service state that calls described each publishing point object obtains the service state of each publishing point.
Wherein, described service state comprises: publishing point title, type, state, online number.
Wherein, described step C further comprises: monitoring host computer is integrated the running status of each controlled main frame of receiving and is obtained monitored results.
Wherein, described step C further comprises: the monitored results that monitoring host computer obtains according to integration judges whether the running status of controlled main frame is unusual, and sends warning message when judgement is unusual.
Wherein, this method is based on DCOM (DCOM) technology; The Component service of monitoring host computer and each controlled main frame is set to enable DCOM in advance, and installs on monitoring host computer and registration windows media serviced component.
The invention also discloses a kind of system that realizes remote monitoring, the system applies of this realization remote monitoring is in comprising monitoring host computer and the system of controlled main frame more than, the system of this realization remote monitoring is arranged in the described monitoring host computer, comprise: administration module and more than one monitoring module, each monitoring module connects a controlled main frame;
Described administration module is used to dispose the information of each controlled main frame and exports to each monitoring module;
Described monitoring module is used for from the information of administration module receiving slave main frame, obtains controlled host object by the information of this controlled main frame from controlled main frame, and obtains the running status of this controlled main frame from controlled main frame by the processing function that calls controlled host object.
Wherein, described monitoring module is further used for returning the running status of controlled main frame to described administration module; Described administration module is further used for integrating the running status of each the controlled main frame that receives.
Wherein, described controlled main frame is a media server.By such scheme as can be seen, key of the present invention is: monitoring host computer reads the information of each the controlled main frame that is disposed at self, information by this controlled main frame is obtained each controlled host object from each controlled main frame, obtains the running status of each controlled main frame then by the processing function that calls each controlled host object.
Therefore, the method and system of realization remote monitoring provided by the invention can not only realize the computer remote monitoring, can also significantly reduce the workload of exploitation remote monitoring function, and are easy to realize the maintenance of remote monitoring function.
Description of drawings
Fig. 1 forms structural representation for system of the present invention one preferred embodiment;
Fig. 2 is the inventive method one preferred embodiment handling process schematic diagram.
Embodiment
The invention discloses a kind of system that realizes remote monitoring, this system is arranged in the monitoring host computer, comprising: administration module and more than one monitoring module, each monitoring module connects a controlled main frame.
Fig. 1 forms structural representation for system of the present invention one preferred embodiment.As shown in Figure 1, this system comprises: administration module, and n monitoring module and being expressed as respectively: monitoring module 1, monitoring module 2 ..., monitoring module n.Monitoring module 1, monitoring module 2 ..., monitoring module n also connect respectively controlled main frame 1, controlled main frame 2 ..., controlled main frame n.
Wherein, administration module is used to dispose the information of each controlled main frame and exports to each monitoring module.Each monitoring module, be used for from the information of administration module receiving slave main frame, information by this controlled main frame is obtained controlled host object by calling establishment example function from the controlled main frame that self connects, and obtains its running status by the relevant treatment function that calls this controlled host object from this controlled main frame.Here, the information of described controlled main frame comprises: the address information of controlled main frame and authentication information, and described address information comprises IP address etc., described authentication information comprises user name, password etc.
In addition, inquire complete, running state information intuitively for the convenience of the user, each monitoring module also can be further returns to administration module with the running state information of the controlled main frame that receives, and by administration module the running state information of each controlled main frame of receiving is integrated the running state monitoring result who obtains on current each controlled host machine integral.
System of the present invention can be applicable to media server system, be that the controlled main frame that each monitoring module connects is a media server, this moment, the running status of the controlled main frame that monitoring module obtained just was the service state of each publishing point on the controlled main frame usually, as: publishing point title, type, state, online number or the like.System of the present invention also can be applicable to the computer system of other type, and this moment, controlled main frame just was the computer with other function, and the running status that monitoring obtains also may be out of Memory.The present invention is specially the computer with which kind of function and the running status of being monitored to controlled main frame and is specially which kind of information and does not limit, but all in protection scope of the present invention.
Based on the invention described above system, the invention allows for a kind of method that realizes remote monitoring, be that example is handled the inventive method and the operation principle of system of the present invention is elaborated below with Fig. 2.
Fig. 2 is the inventive method one preferred embodiment handling process schematic diagram.Present embodiment is applied to media server system, and then controlled main frame is a media server, and media server of the present invention is often referred to Windows Media Server.
As shown in Figure 2, the concrete processing comprises:
Step 201: the administration module editor configuration file of user by monitoring host computer writes configuration file one by one with the information of all controlled main frames.Here, the information of controlled main frame comprises address information and authentication information, and described address information comprises IP address etc., and described authentication information comprises username and password etc.
Step 202: after monitoring host computer started monitoring function, the configuration file that administration module read step 201 is edited obtained the information such as IP address, username and password of each controlled main frame; And be that each controlled host assignment is handled resource, such as: be monitoring module of each controlled host assignment, and information such as the IP address of each controlled main frame, username and password passed to the monitoring module of each controlled main frame.
Among the present invention, monitoring host computer is wanted the processing function of the controlled host object of far call, can adopt DCOM (DCOM) technology to realize far call between monitoring host computer and the controlled main frame.Wherein, DCOM is the expansion of COM, and it can support on the various computing machine between the component object and CLIENT PROGRAM or the intercommunication mutually between the component object, makes based on the assembly of COM to cooperate being positioned between two processes of different main frames.For CLIENT PROGRAM, the residing position of component programs is transparent, can write network code like this and go to handle the mutual required communication of distributed component across a network.
When adopting the DCOM technology, be in advance the Component service of monitoring host computer and controlled main frame is configured to enable DCOM.For realizing the monitoring function of monitoring host computer to controlled main frame Windows Media Server, need on monitoring host computer, install and register windows media service (Windows MediaServices) assembly, comprise: the WindowsMediaServices.dll of Microsoft, interop_msxml.dll and wmsservertypelib.dll or the like, above assembly all can obtain from the software development kit (Microsoft Platform SDK) of Microsoft's platform, and utilizes registration service instrument (Regsvr32) instrument registration wmsservertypelib.dll module; When carrying out the described processing of above step 202, administration module also comes the COM class libraries of initialization monitoring host computer by invocation component object initialization (CoInitialize) function, thereby loads COM class libraries Management Unit in the program of monitoring host computer operation.And need to be provided with authentication information on each controlled main frame at monitoring host computer, and comprising: user name, password and operating right or the like, also can be according to actual conditions configuration " local security policy " separately.
Step 203: each monitoring module obtains controlled host object with authentication information from the controlled main frame that is connected separately according to the address information of the controlled main frame that receives.
Wherein, each monitoring module can call establishment example function separately respectively, this establishment example function carries the address information and the authentication information of controlled main frame and specifies the current controlled host object interface identifier that will obtain, and this establishment example function will return controlled host object interface; And then obtain controlled host object by this controlled host object interface interchange query interface function.
For ease of understanding the processing of this part, specify as follows below:
At first, invocation component Object Creation example (CoCreateInstanceEx) function.Many interfaces inquiry (MULTI_QI) structures etc. that this function comprises component object server info (COSERVERINFO) structure that is used to carry controlled host address information, be used to carry component object authentication information (COAUTHINFO) structure of authentication information and be used to indicate the controlled host object interface that will obtain.Wherein, interface identifier pointer (pIID) member of MULTI_QI structure can be set to the server interface sign (IID_IWMSServer) of windows media service, and other member all is set to 0, will obtain controlled host object interface with indication; Machine name pointer (pwszName) member of COSERVERINFO structure can be set to the IP address or the title of controlled main frame; Identity data authentication pointer (pAuthIdentityData) member in the COAUTHINFO structure is component object authentication (COAUTHIDENTITY) structure.The authentication informations such as username and password of controlled main frame can be set in this COAUTHIDENTITY structure.In addition, also can specify " rank of authentication " and information such as " simulation ranks " in the above-mentioned COAUTHINFO structure.
To return the function call result who comprises the MULTI_QI structure after the CoCreateInstanceEx function call, interface return pointer (pItf) member in this MULTI_QI structure is controlled host object interface, obtain controlled host object from controlled main frame, i.e. server (IWMSServer) object of windows media service by this controlled host object interface interchange interface inquiry (QueryInterface) function again.
Step 204: each monitoring module is carried out following processing: call the publishing point set function of the controlled host object of being obtained, obtain the publishing point collection object of controlled main frame; The publishing point function that obtains that calls this publishing point collection object then obtains each publishing point object on this controlled main frame.
This part is handled and specifically comprised: the publishing point that obtains of the IWMSServer object that invocation step 203 is obtained is gathered the IWMSPublishingPoints object that (get_PublishingPoints) function obtains controlled main frame.Call the publishing point sum that sum (get_Count) function obtains this controlled main frame that obtains of this IWMSPublishingPoints object then.Index by this distributed points sum and each publishing point calls the project of obtaining (get_Item) function of IWMSPublishingPoints object in the mode of circulation, thereby obtains the IWMSPublishingPoint object of controlled each publishing point of main frame.It is the function that obtains the publishing point object that this get_Item function can be regarded as.
Step 205: each monitoring module is carried out following processing: the function that obtains service state that calls described each publishing point object obtains the service state of each publishing point.
The processing of specifically obtaining the publishing point service state comprises: the function that is used to obtain service state of each IWMSPublishingPoint object that invocation step 204 obtains, obtain the service status information of each publishing point, comprise: publishing point title, type, state, online number or the like, thus realization is to the monitoring of controlled main frame.
The canonical function that various function described herein provides for windows platform SDK, so this paper is not described further the specific implementation of these functions, and the present invention does not limit yet and realizes which function the present invention specifically calls when handling.
For making the user conveniently inquire the running status of current each controlled main frame, in the step 205, each monitoring module also can further return the service state of each publishing point and give administration module when getting access to the service state of each publishing point, and execution in step 206 again:
Administration module is integrated the monitored results that obtains embodying on the whole each controlled main frame running status to the service state of each publishing point of each controlled main frame of receiving.This monitored results can be forms such as chart or figure, as: be plotted in the informant and count statistical chart; Administration module also can further judge according to resulting monitored results whether the service state of publishing point is unusual, and sends warning information automatically when judgement is unusual, thereby is convenient to user's situation of understanding current controlled main frame directly perceived.
When monitoring host computer stops monitoring function, administration module will indicate each monitoring module to call release (Release) function of the controlled host object of obtaining separately, to discharge each controlled host object.Simultaneously, administration module also the anti-initialization of invocation component object (CoUninitialize) function discharge the COM class libraries.
Above-mentioned processing procedure is the processing that monitoring host computer is finished a monitor procedure, after each monitoring module of monitoring host computer gets access to each publishing point object on each controlled main frame, also the processing function that can periodically call each publishing point object regularly obtains the service status information of publishing point, thereby makes monitoring host computer energy self-timing obtain the running status of each controlled main frame.At this moment, can start timer in each monitoring module, execution in step 205 when timer arrives predefined monitoring period.
In sum, use the inventive method and system, be easier to realize the remote monitoring function of monitoring host computer to controlled main frame, the exploitation of whole remote monitoring function is only carried out in monitoring host computer, and need not to develop controlled mainframe code.Because the present invention can adopt the DCOM technology, therefore needn't formulate the communication protocol between monitoring host computer and the controlled main frame, thereby be easy to realize the modification of monitoring function or upgrading etc.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (10)

1, a kind of method that realizes remote monitoring, this method are applied to comprise monitoring host computer and the system of controlled main frame more than, it is characterized in that this method comprises:
A. dispose the information of each controlled main frame on monitoring host computer, the information of described each controlled main frame of configuration comprises: editor comprises the configuration file of each controlled host information, and described monitoring host computer is by reading the information that this configuration file obtains each controlled main frame;
B. monitoring host computer obtains each controlled host object by the information of described each controlled main frame from each controlled main frame; Describedly obtain each controlled host object from each controlled main frame, comprise: carry out following steps: B1. at each controlled main frame and call establishment example function, return controlled host object interface by this establishment example function, B2. obtains controlled host object by described controlled host object interface interchange query interface function;
C. monitoring host computer obtains the current running status of each controlled main frame by the processing function that calls described each controlled host object.
2, method according to claim 1 is characterized in that, the information of described controlled main frame comprises: address information and authentication information.
3, method according to claim 1 is characterized in that, the system that this method is used is a media server system; Described controlled main frame is a media server, and the running status of described controlled main frame is: as the service state of each publishing point on the media server of controlled main frame;
Among the described step C, carry out following steps at each controlled host object:
C1. the publishing point set function that calls controlled host object obtains the publishing point collection object of corresponding controlled main frame;
C2. the publishing point function that obtains that calls this publishing point collection object obtains each publishing point object;
C3. the function that obtains service state that calls described each publishing point object obtains the service state of each publishing point.
4, method according to claim 3 is characterized in that, described service state comprises: publishing point title, type, state, online number.
5, method according to claim 1 is characterized in that, described step C further comprises: monitoring host computer is integrated the running status of each controlled main frame of receiving and is obtained monitored results.
6, method according to claim 5 is characterized in that, described step C further comprises: the monitored results that monitoring host computer obtains according to integration judges whether the running status of controlled main frame is unusual, and sends warning message when judgement is unusual.
According to claim 1,3 or 5 described methods, it is characterized in that 7, this method is based on DCOM DCOM technology; The Component service of monitoring host computer and each controlled main frame is set to enable DCOM in advance, and installs on monitoring host computer and registration windows media serviced component.
8, a kind of system that realizes remote monitoring, it is characterized in that, the system applies of this realization remote monitoring is in comprising monitoring host computer and the system of controlled main frame more than, the system of this realization remote monitoring is arranged in the described monitoring host computer, comprise: administration module and more than one monitoring module, each monitoring module connects a controlled main frame;
Described administration module is used to dispose the information of each controlled main frame and exports to each monitoring module;
Described monitoring module is used for from the information of administration module receiving slave main frame, obtains controlled host object by the information of this controlled main frame from controlled main frame, and obtains the running status of this controlled main frame from controlled main frame by the processing function that calls controlled host object.
9, system according to claim 8 is characterized in that, described monitoring module is further used for returning the running status of controlled main frame to described administration module; Described administration module is further used for integrating the running status of each the controlled main frame that receives.
10, system according to claim 8 is characterized in that, described controlled main frame is a media server.
CNB2005101166679A 2005-10-26 2005-10-26 Method and system for implementing remote monitoring Active CN100505647C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101166679A CN100505647C (en) 2005-10-26 2005-10-26 Method and system for implementing remote monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101166679A CN100505647C (en) 2005-10-26 2005-10-26 Method and system for implementing remote monitoring

Publications (2)

Publication Number Publication Date
CN1956396A CN1956396A (en) 2007-05-02
CN100505647C true CN100505647C (en) 2009-06-24

Family

ID=38063509

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101166679A Active CN100505647C (en) 2005-10-26 2005-10-26 Method and system for implementing remote monitoring

Country Status (1)

Country Link
CN (1) CN100505647C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660953A (en) * 2013-11-18 2015-05-27 台达电子工业股份有限公司 Network image monitoring system and automatic distribution method thereof

Also Published As

Publication number Publication date
CN1956396A (en) 2007-05-02

Similar Documents

Publication Publication Date Title
CN112367246B (en) Message pushing method and device, electronic equipment and storage medium
US6829630B1 (en) Mechanisms for web-object event/state-driven communication between networked devices
JP2002099686A (en) Workflow system, information processor, workflow defining method, storage medium, and program transmission device
CA2829915C (en) Method and system for dynamically tagging metrics data
EP1723521A2 (en) An executable application configuration system
CN102375894B (en) Method for managing different types of file systems
CN110928681A (en) Data processing method and device, storage medium and electronic device
KR20000012194A (en) System for integrating System Management System and Firewall system
CN113673961A (en) Archive scheduling method based on workflow
US20080216093A1 (en) Method, system and computer program for monitoring components in a service framework
CN114650320A (en) Task scheduling method and device, storage medium and electronic equipment
CN101593282B (en) Image forming apparatus performing user authentication using a card
CN100505647C (en) Method and system for implementing remote monitoring
CN100390741C (en) Program processing system, program processing method, and computer program
US7136919B1 (en) Method and system for broadcasting alarm messages to selected users of an IP network
US7779063B2 (en) Automatic benefit analysis of dynamic cluster management solutions
Cisco Working with Log Files
Cisco Working with Log Files
KR20060114517A (en) Framework for building a web application and a web server thereof
van der Meer et al. Ubiquitous Smart Space Management
Santos et al. Integrating infrastructures for manufacturing a comparative analysis
US7634580B2 (en) Unit time synchronization techniques in a manufacturing environment
CN116521296A (en) Multi-system application integration method and platform
CN115776491A (en) Data sharing method and data sharing system
MEYER et al. Software Architecture of Manufacturing Execution Systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant