A kind of magnetic battle array performance monitoring method for early warning based on HTTP and systemTechnical field
The present invention relates to computer realm, the monitoring of the storage magnetic battle array that is specifically related in computer realm data and early warning.
Background technology
Along with developing rapidly of mobile communications network, the amount of storage of data is also increasing, magnetic battle array is adopted to store at present, in current numerous magnetic battle arrays, each magnetic battle array or every class magnetic battle array provides a set of graphic monitoring interface based on WEB, carry out logging in for user and check or monitoring, for ensureing the properly functioning of magnetic battle array, user must carry out logging in detection every day, owing to magnetic battle array data bulk is many, kind is many, the graphic monitoring interface provided is inconsistent, all detection one times, waste time and energy, and there is discovery fault not in time, can not accomplish to prevent trouble before it happens, can arrive time serious and cause major accident, cause significant data certain, systemic breakdown.
How magnetic battle array is monitored effectively and timely, monitor in real time magnetic battle array operating index, accomplish to find in time fault, notify related personnel, solve problem, be a difficult problem faced.In general current check, user can only check on time, discovery for fault, problem needs the time one many, sometimes even can not find fault, various fault then occur, has influence on the operation of important system, complete to malfunction elimination, generally require several hours, or tens hours, bring very important impact.Therefore, monitoring timely and effectively and the early warning to magnetic battle array, the monitoring of magnetic battle array is had great importance.
Summary of the invention
Present invention aim to overcome that now methodical deficiency, it is proposed to the method and system of a kind of magnetic battle array performance monitoring early warning based on HTTP.
Technical scheme provides a kind of magnetic battle array performance monitoring method for early warning based on HTTP, based on the WEB monitoring interface that each magnetic battle array provides, performs below scheme,
Step 1, analog subscriber logs in the WEB monitoring interface that magnetic battle array provides, if can not normally log in, produces alarm, notifies, waits entering and detects next time, if can, enter step 2;
Step 2, resolves WEB monitoring interface, obtains every magnetic battle array performance indications on interface;
The magnetic battle array performance indications obtained are carried out trend analysis, and carry out alarm threshold contrast, it may be judged whether exceed threshold value, be by step 3, produce alarm, notify, detect next time, if otherwise entering step 4;
Step 4, current state is judged as magnetic battle array normal operation, waits entering and detects next time.
And, when producing alarm and notifying, adopt the mode of WEB interface alarm prompting, APP notice or note.
And, the implementation of step 1 is as follows,
According to the magnetic battle array IP address configured and port information, construct URL address;
According to sending message length, reference address and reception language, construct POST request packet;
Send POST request packet;
According to the message information returned, it may be judged whether login successfully, then access index interface such as success, as unsuccessful, then generate warning information.
And, during step 2 resolution interface, carry out according to the dynamically configuration of data parsing rule, including configuring each magnetic battle array performance indications positional information on interface, when carrying out index collection, according to the positional information of configuration, can directly resolve and obtain this desired value.
And, when the magnetic battle array performance indications obtained are carried out trend analysis by step 3, according to the magnetic battle array performance indications average rate of increase of nearest some days gathered or slip, estimate the tendency situation of following this index of a period of time, by the relative analysis of discreet value Yu alarm threshold value, represent this index and can reach to limit index sometime, carry out index trending early warning, produce alarm, notify, remind user's advanced processing.
The present invention also provides for a kind of magnetic battle array performance monitoring early warning system based on HTTP, including with lower module,
Login module, logs in, for analog subscriber, the WEB monitoring interface that magnetic battle array provides, if can not normally log in, produces alarm, notifies, waits entering and detects next time, if can, command analysis module works;
Parsing module, is used for resolving WEB monitoring interface, obtains every magnetic battle array performance indications on interface;
Analysis module, for the magnetic battle array performance indications obtained are carried out trend analysis, and carries out alarm threshold contrast, it may be judged whether exceed threshold value, be, produce alarm, notify, detect next time, if otherwise order confirms module work;
Confirm module, be judged as magnetic battle array normal operation for current state, wait entering and detect next time.
And, when producing alarm and notifying, adopt the mode of WEB interface alarm prompting, APP notice or note.
And, the working method of login module is as follows,
According to the magnetic battle array IP address configured and port information, construct URL address;
According to sending message length, reference address and reception language, construct POST request packet;
Send POST request packet;
According to the message information returned, it may be judged whether login successfully, then access index interface such as success, as unsuccessful, then generate warning information.
And, during parsing module resolution interface, carry out according to the dynamically configuration of data parsing rule, including configuring each magnetic battle array performance indications positional information on interface, when carrying out index collection, according to the positional information of configuration, can directly resolve and obtain this desired value.
And, when the magnetic battle array performance indications obtained are carried out trend analysis by analysis module, according to the magnetic battle array performance indications average rate of increase of nearest some days gathered or slip, estimate the tendency situation of following this index of a period of time, by the relative analysis of discreet value Yu alarm threshold value, represent this index and can reach to limit index sometime, carry out index trending early warning, produce alarm, notify, remind user's advanced processing.
The method of the magnetic battle array performance monitoring based on HTTP that the present invention relates to and early warning, it is mainly monitoring and the early warning automatically that realize magnetic battle array performance indications, replace the mode of current manual detection, the HTTP access interface interface that each magnetic battle array provides is logged in by analog subscriber, resolve and obtain property indices on interface, the performance indications of acquisition are carried out trend analysis, and contrast with threshold values, for exceeding the index of threshold values, system alerts automatically, and by modes such as WEB interface alarm prompting, APP notice, notes, remind user to process.Utilize magnetic battle array performance monitoring and the method for early warning that the method described in the present invention realizes out, have several advantages that
1) adopt http protocol, utilize the manual monitoring interface that each magnetic battle array provides to carry out intensive data collection, it is not necessary to Ci Zhen producer provides new support scheme.
2) realize automatically analyzing of the collection automatically of data target, automatic parsing and data, improve monitoring efficiency, there is important market value.
3) magnetic battle array performance, warning information push to mobile phone terminal automatically, and user can grasp magnetic battle array operation conditions whenever and wherever possible.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention flow chart.
Fig. 2 is embodiment of the present invention schematic diagram.
Detailed description of the invention
Technical solution of the present invention is described in detail below in conjunction with drawings and Examples.
The present invention is based in the magnetic battle array performance monitoring of HTTP and the research of early warning, it is proposed that a kind of method.The method timely and effective can monitor the magnetic battle array providing graphical monitoring interface, the memory capacity of magnetic battle array, active volume, configuration information, read/write speed, cpu load, running status etc. are timed Supervisory Surveillance Program, user can also configure the early warning threshold values of index of correlation, whether system automatic decision indices exceedes threshold values, after exceeding threshold values, system, in the way of note, notifies that responsible person concerned processes this fault in time, accomplish that fault finds in time, process in time.Referring to Fig. 2, basic process includes HTTP automated log on, analysis feature index, performance alarm, alarm pushing.
Referring to Fig. 1, embodiment of the present invention method specifically includes below scheme:
Step 1, simulation HTTP logs in, if can not normally log in, produces alarm, carries out SMS notification, waits entering and detects next time, if can, enter step 2;
Step 2, resolution interface, obtain property indices on interface;
The performance indications of acquisition are carried out trend analysis by step 3, carry out alarm threshold contrast, it may be judged whether exceed threshold value, are, produce alarm, carry out SMS notification, detect next time, if otherwise entering step 4;
Step 4, current state is judged as magnetic battle array normal operation, waits entering and detects next time.
When being embodied as, it is possible to setting timing and detect, detection is to each magnetic battle array interface above flow process of executed in parallel every time.
Further, specific design is as follows:
1, HTTP simulation logs in: HTTP logs in monitoring technology, utilizes the WEB monitoring interface that magnetic battle array itself provides to carry out data acquisition, and process simulation user HTTP logs in monitoring interface, obtains important performance indications
Embodiment utilizes below scheme analog subscriber to log in monitoring interface, and by user configured user name and encrypted message, system passes through http protocol, and analog subscriber logs in:
Step 1: according to information such as the magnetic battle array IP address of configuration, ports, constructs URL address
Step 2: according to sending the parameters such as message length, reference address, reception language, construct POST request packet
Step 3: send POST request packet
Step 4: according to the message information returned, it may be judged whether login successfully, then accesses index interface, as unsuccessful, then generates warning information such as success
2, data parsing
After login, according to the data message returned, carry out data parsing, obtain the performance index information of magnetic battle array
3, data parsing rule dynamically configuration
When carrying out data acquisition for concrete performance indications, due in the WEB interface that different magnetic battle arrays provide, index is shown in diverse location, collection for adaptive magnetic battle array achievement data, the method adopting the dynamically configuration of data parsing rule, in configuration location, magnetic position, during the parameters such as monitor control index, configure the column locations information that this index presents at interface simultaneously, when carrying out index collection, can according to the positional information of configuration, directly resolve and obtain this desired value, avoid because magnetic battle array is upgraded, the situations such as interface location change need change program when occurring, only need to change configuration can be adaptive, reach the dynamically configuration of data parsing rule.
4, magnetic battle array index trending early warning
After hit the target collection and index storage, magnetic battle array monitoring performance early warning, adopt magnetic battle array index trending early warning, according to the magnetic battle array index gathered, including memory capacity, active volume, cpu load etc., index carries out trend analysis, by these index average rate of increase of nearest ten days or slip, estimate the tendency situation of following this index of a period of time, relative analysis by discreet value Yu early warning threshold values, represent this index can reach to limit index sometime, carry out index trending early warning, remind user's advanced processing.
5, alarm notification
The magnetic battle array performance alarm that system generates, can remind in the WEB interface of system, simultaneously by APP function, push with the form of notice and send the mobile phone terminal to user, allow user can understand the ruuning situation of current magnetic battle array in real time, or adopt the mode of note to notify.The alarm produced when failing normally to log in, can also adopt the mode of WEB interface alarm prompting, APP notice or note equally.
When being embodied as, method provided by the present invention can realize automatic operational process based on software engineering, it is possible to adopts modular mode to realize corresponding system.The embodiment of the present invention also provides for a kind of magnetic battle array performance monitoring early warning system based on HTTP, including with lower module,
Login module, logs in, for analog subscriber, the WEB monitoring interface that magnetic battle array provides, if can not normally log in, produces alarm, notifies, waits entering and detects next time, if can, command analysis module works;
Parsing module, is used for resolving WEB monitoring interface, obtains every magnetic battle array performance indications on interface;
Analysis module, for the magnetic battle array performance indications obtained are carried out trend analysis, and carries out alarm threshold contrast, it may be judged whether exceed threshold value, be, produce alarm, notify, detect next time, if otherwise order confirms module work;
Confirm module, be judged as magnetic battle array normal operation for current state, wait entering and detect next time.
Each module implements can referring to corresponding steps, and it will not go into details for the present invention.
Above-described embodiment flow process describes the basic scheme only for knowing the explanation present invention, but the present invention is not limited in above-described embodiment;Any simple modification, equivalent variations and the modification that in every technical spirit according to the present invention, embodiment is made, each falls within the protection domain of technical scheme.