Summary of the invention
For the defective that exists in the prior art, the purpose of this invention is to provide a kind of system and method for by mobile device service being monitored and being operated easily and efficiently.
To achieve these goals, the technical solution used in the present invention is as follows:
A kind of system that service is monitored and operated by mobile device comprises server end and client, and the mobile communications network of connection server end and client (2); Described server end comprises one or more server that is used to provide service (1), and described client comprises one or more mobile device (3); Described server end also comprises the service monitoring module (5) of monitoring for the running status that server is provided service, the protocol conversion module (4) of the order that is used for calling order that the corresponding interface carries out that mobile device triggers inquires about the service operation state and service is operated, and the short message service module (6) of communicating by letter between charge server end and the client; Described mobile device (3) comprises the information receiving module (31) that sends information for the reception server end, and the service-seeking and the operational module (32) that are used for the inquiry service running status and service is operated.
Aforesaid a kind of system that service is monitored and operated by mobile device, when one of Server Side Include provided the server (1) of service, described service monitoring module (5), protocol conversion module (4) and short message service module (6) were arranged in the server that service is provided; Perhaps at server end a monitoring server (7) that links to each other with mobile communications network (2) with the server that service is provided (1) is set, described service monitoring module (5), protocol conversion module (4) and short message service module (6) are arranged in the monitoring server (7).
When Server Side Include is two or more when the server of service (1) is provided, server end arrange one with all monitoring servers (7) that provides the server (1) of service to link to each other with mobile communications network (2), described service monitoring module (5), protocol conversion module (4) and short message service module (6) are arranged in the monitoring server (7).
Aforesaid a kind of system that service is monitored and operated by mobile device, described protocol conversion module (4) comprises query interface (41) and operation-interface (42), described query interface (41) is used for the inquiry service running state data, and described operation-interface (42) is used for and will operates service.
Aforesaid a kind of system that service is monitored and operated by mobile device, wherein, communicating by letter between mobile device (3) and the server end adopted cipher mode.
A kind of method of service being monitored and being operated by mobile device may further comprise the steps:
The running status of the service that (1) server end is provided is monitored;
(2) mobile device triggers the inquiry service running status order of server end by mobile communications network, and server end calls corresponding interface and obtains the service operation status data, again the service operation status data is returned to mobile device;
(3) judge by the service operation status data whether service is unusual, if unusual, then mobile device triggers server end to the operational order of service by mobile communications network, and server end calls corresponding interface the service that provides in the server is operated.
Aforesaid a kind of method of service being monitored and being operated by mobile device, step (1) if in the service operation abnormal state, then server end sends to mobile device by mobile communications network with short message mode with warning message.The form of described warning message is " server ip address: error code ".
If mobile device is a plurality of, then at server end configuration file is set, be used for recording the address of the mobile device that links to each other with every station server; When service was unusual, server end was inquired about this configuration file, warning message was sent to all mobile devices that link to each other with this unusual service place server.
Aforesaid a kind of method of service being monitored and being operated by mobile device is in the step (1), if when server end comprised the service that multiple servers provides, the service that then circulating provides Servers-all detected successively.
Aforesaid a kind of method of service being monitored and being operated by mobile device, wherein, in step (2) and the step (3), mobile device triggers inquiry service running status order and the operational order to serving by note or network access.Mobile device triggers inquiry service running status order by note and to the method that the operational order of service adopts is: at server end command code and corresponding relation between ordering are stored in the XML file, mobile device sends command code with short message mode to server end, server end finds the order corresponding with this command code according to this command code Query XML file.Mobile device triggers inquiry service running status order by network access and to the method that the operational order of service adopts is: at server end command code and corresponding relation between ordering are stored in the XML file, the mobile device logon web page, select corresponding command code at webpage, then clicking trigger, after the triggering, server end finds the order corresponding with this command code according to this command code Query XML file.
Aforesaid a kind of method of service being monitored and being operated by mobile device comprises the operation of service described in the step (3) beginning service, stop service and restarting service.
Aforesaid a kind of method of service being monitored and being operated by mobile device, in the step (3), if many mobile devices to a plurality of operational orders of same service trigger, then repetitive operation can not occur twice within a period of time; If it is unusual to have occurred twice identical service in the period at this section, then allow to carry out twice same operation in the period at this section.
System and method of the present invention when server provides the service appearance unusual, can pass through the instant reporting system attendant of mobile device, and can operate server by mobile device, deals with problems easily and efficiently.
Embodiment
Describe the present invention below in conjunction with embodiment and accompanying drawing.
Core concept of the present invention is: when monitored service occurs when unusual, warning message can be sent to mobile device, the system maintenance personnel can pass through mobile device inquiry service running state data, can also be by mobile device to operations such as service stop, beginning and restarts, thereby so that the system maintenance personnel free from original place limitation and equipment limitation, all can monitor and operate service at any time and any place.Service of the present invention should be made broad understanding, namely can be concrete a certain service, can be again server or other computer equipments etc.; Described mobile device general reference has all mobile devices of functionality mobile communication.
The system that service is monitored and operated by mobile device of the present invention comprises server end and client, and the mobile communications network 2 of connection server end and client.
Server end comprises one or more server 1, service monitoring module 5, protocol conversion module 4 and short message service module 6.Wherein, server 1 is used for providing service, can be WWW service, FTP service or MAIL service etc.Service monitoring module 5 is used for providing the running status of service to monitor to server, and whether normally main monitor data comprises whether the webpage of www server can normally access, whether return state is normal, whether ftp server can normally log in, MAIL server receiving and dispatching mail etc.Protocol conversion module 4 is used for calling the order that the corresponding interface carries out that mobile device triggers inquires about the service operation state and the order that service is operated, and obtains the service operation status data or service is operated.Described interface comprises query interface 41 and operation-interface 42, and query interface 41 is inquired about the service operation status data of respective server according to input parameter, and returns Query Result; Service to respective server operates operation-interface 42 according to input parameter.Set up in the interface procedure, fully take into account the restriction of mobile device and the restriction of Internet Transmission, reduce the transmission of data as far as possible, the information of returning is to be advisable less than 70 characters.Communicate by letter between short message service module 6 charge server ends and the client.
Client comprises one or more mobile device 3, comprises information receiving module 31 and service-seeking and operational module 32 in every mobile device 3.Information receiving module 31 is used for the information that the reception server end sends, and service-seeking and operational module 32 are used for the inquiry service running status and service is operated.Mobile device 3 can be mobile phone, the PDA with equipment for surfing the net, portable electronic device or other similar devices.
When one of Server Side Include provides the server 1 of service, service monitoring module 5, protocol conversion module 4 and short message service module 6 can be arranged in this server 1, also can be arranged on the server 1 that service is provided and monitoring server 7 that mobile communications network 2 links to each other in.
When Server Side Include is two or more when the server 1 of service is provided, preferably service monitoring module 5, protocol conversion module 4 and short message service module 6 are arranged on all servers 1 that service is provided and monitoring server 7 that mobile communications network 2 links to each other in.
Certainly, the setting of service monitoring module 5, protocol conversion module 4 and short message service module 6 is not limited to aforesaid way, for example three modules are arranged separately, as long as any set-up mode that can realize three functions of modules all can, the present invention is not restricted it.
Mobile device carries out with the mode that the employing of communicating by letter between the server end is encrypted, the fully fail safe of guarantee information.
Embodiment 1
Fig. 1 has shown a kind of execution mode of system of the present invention.This system server terminal comprises a server 1 that is used for providing service, and client comprises a mobile device 3.Service monitoring module 5, protocol conversion module 4 and short message service module 6 are arranged in the server 1 that service is provided.
Fig. 3 has shown the method flow that utilizes system shown in Figure 1 that service is monitored and operated.Service monitoring module 5 Real Time Monitoring servers provide the running status of service, and when the service appearance was unusual, service monitoring module 5 immediately sent warning message to mobile device 3 with short message mode by short message service module 6.The form of warning message can be for " server ip address: error code ", such as 192.168.0.100:001.After mobile device 3 receives warning message, can will send to according to the inquiry service running status order of making an appointment the short message service module 6 of server end with short message mode by service-seeking and operational module 32, short message service module 6 is transmitted to it protocol conversion module 4 again.Protocol conversion module 4 calls query interface 41 and carries out this order, and the service operation status data that query interface returns is sent to service monitoring module 5.Service monitoring module 5 sends to the service operation state information of request service-seeking and the operational module 32 of mobile device 3 again by short message service module 6.
The system maintenance personnel determine according to the service operation status data which kind of operation unusual service is carried out, utilize service-seeking and operational module 32 to send to server end with short message mode to the operational order of service, same first by short message service module 6 responsible receptions, then be transmitted to protocol conversion module 4.Protocol conversion module 4 call operation interfaces 42 are carried out this order.Wherein, the operation of service is comprised begin service, stop service and restart service etc.
In addition, the system maintenance personnel are not in the situation that receive warning message, also can obtain the service operation status data in the mode of active inquiry by mobile device 3, whether determine that according to the service operation status data needs operate service and carry out which kind of operation.
In the present embodiment, mobile device 3 is command code to the order that server end sends.At server end, corresponding relation between command code and the order is stored in the XML file, and protocol conversion module 4 is inquired about this XML file after receiving the command code of mobile device transmission, find the order corresponding with this command code, then call corresponding interface and carry out this order.If mobile device directly sends to server end with order, the mobile device editing short message is complicated on the one hand, and there is dangerous risk in transmission course on the other hand.Therefore, the present embodiment adopts mobile device to send command code, and server end mate mode with its corresponding order according to this command code in the XML file, with the raising Security of the system.Wherein, order, command code and corresponding relation between the two can change by the mode of revising the XML file.
Embodiment 2
Fig. 2 has shown the another kind of execution mode of system of the present invention.This system server terminal comprises 3 servers 1 that service is provided, and client comprises 3 mobile devices 3.Protocol conversion module 4, service monitoring module 5 and short message service module 6 are arranged in the monitoring server 7.
Service monitoring module 5 is responsible for 3 station servers are monitored, and concrete monitor procedure can adopt the successively mode of poll that circulates, and the Servers-all that this module is responsible for monitoring that namely circulates detects successively.For example, in the present embodiment, can detect first server 1, again detect server 2, detect server 3 again, and then restart to detect successively server 1, server 2, server 3, the detection that so moves in circles.The address information that comprises this service place server in the service operation status data is such as the IP address.
Owing to comprising 3 mobile devices 3 in the present embodiment, when the service appearance is unusual, may need warning message is sent to many mobile devices.Need to configuration file be set at server end for this reason, be used for recording the address of the mobile device that links to each other with every station server, such as phone number.Serve when unusual, service monitoring module 5 these configuration files of inquiry send to warning message all mobile devices 3 that link to each other with this unusual service place server by short message service module 6.
In the present embodiment, mobile device 3 is selected corresponding command code, then clicking trigger by network access (GPRS or cdma network) at webpage.After the triggering, protocol conversion module 4 goes to mate the order corresponding with this command code in the XML file described in the embodiment 1, calls corresponding interface after finding and carries out this order.
When a plurality of mobile devices 3 receive warning message, 3 pairs of same services of a plurality of mobile devices may occur and unusually carry out the situation of repetitive operation, thereby cause operating collision.At this moment, can be arranged on that repetitive operation can not occur twice in a period of time (at this section twice service not occuring in the period unusual).If it is unusual to have occurred twice identical service in the period at this section, then allow to carry out twice same operation in the period at this section.Certainly, also can adopt other modes, unusually not carry out twice repetitive operation as long as guarantee same service.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technology thereof, then the present invention also is intended to comprise these changes and modification interior.