CN109257256A - Apparatus monitoring method, device, computer equipment and storage medium - Google Patents

Apparatus monitoring method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109257256A
CN109257256A CN201811205174.6A CN201811205174A CN109257256A CN 109257256 A CN109257256 A CN 109257256A CN 201811205174 A CN201811205174 A CN 201811205174A CN 109257256 A CN109257256 A CN 109257256A
Authority
CN
China
Prior art keywords
monitoring
script
sequence
information
monitoring script
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.)
Granted
Application number
CN201811205174.6A
Other languages
Chinese (zh)
Other versions
CN109257256B (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.)
Beijing Xinyan Huizhi Information Technology Co Ltd
Original Assignee
Beijing Xinyan Huizhi Information Technology 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 Beijing Xinyan Huizhi Information Technology Co Ltd filed Critical Beijing Xinyan Huizhi Information Technology Co Ltd
Priority to CN201811205174.6A priority Critical patent/CN109257256B/en
Publication of CN109257256A publication Critical patent/CN109257256A/en
Application granted granted Critical
Publication of CN109257256B publication Critical patent/CN109257256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/067Generation of reports using time frame reporting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of apparatus monitoring method, device, computer equipment and storage mediums, wherein method includes: to obtain the monitoring information and monitoring script set of monitored device, wherein, monitoring information is that required information is monitored to monitored device, and monitoring script set includes the monitoring script of multiple execution for realizing monitor task;Supervisory sequence is generated according to monitoring information and monitoring script set, definition has the execution generic sequence of monitoring script in supervisory sequence;Monitoring script is successively executed by sequence defined in supervisory sequence using serial manner, to be monitored to monitored device.By generating supervisory sequence, its define have a monitoring script execute sequence, when being monitored to monitored device, monitoring script is successively sequentially executed using serial manner, in this way the instant bandwidth pressure to monitored device can be reduced to avoid the larger problem of occupied bandwidth when once being monitored to monitored device in the prior art.

Description

Apparatus monitoring method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology, and in particular to a kind of apparatus monitoring method, device, computer equipment and deposits Storage media.
Background technique
For equipment O&M monitoring technology, generally require to be monitored thousands of a equipment, meanwhile, each equipment The index to be monitored is hundreds and thousands of.O&M monitoring will solve the problems, such as to be how from this thousands of equipment itself Acquire the data of hundreds and thousands of classes.
Currently, some equipment can not provide extra high load to monitoring request for single monitored device Ability is supported.For example IBM X3250 server, management interface cannot support frequently calling and concurrent calling, once There is such case, which will stop responding for some time, and during this period of time, monitoring system can not will obtain completely Take device status information.
For another example certain operation systems are singly the operations for ensureing its own business, have just nearly exhausted clothes where business The computing resource and bandwidth resources of business device have very much at this time if be monitored again by a large amount of concurrent modes to the business It may cause resource exhaustion, business delay machine.
On the other hand, for entire IT environment, all monitoring datas need the network interface card by monitored device, via number The grade network equipment (including interchanger, gateway, firewall etc.) is transferred on monitoring server.May to single monitored device and Speech monitors shared bandwidth and gives no cause for anxiety, and by thousands of heavy superpositions of equipment, network flow can not just despise ?.
Inventor has found in the course of the research, often concurrent type frog is used to supervise the monitoring of monitored device in the prior art Control, this makes bandwidth occupancy larger, and specifically bandwidth occupancy calculates as follows:
If the average byte number of single monitor control index acquisition monitoring data is P, total monitor control index number is O, total monitoring device Number is D, Ta is divided between average monitoring period, every execute once time-consuming of monitoring script is Tp, then average bandwidth occupies B are as follows:
B=(O*D)/(Ta/Tp) * P/Tp
For concrete example: assuming that number of devices is 1000, monitor control index number is about 100, and each monitoring collection is averaged Byte number is 10K, i.e. 10KB, each time time-consuming 1 second of monitoring, is divided into 5 minutes (300 seconds) between average monitoring period, then bandwidth It occupies are as follows:
100*1000/ (300/1) * 10/1=3333.333 (KB/s)
It is computed, it is very big once to monitor obtained monitoring data occupied bandwidth in the prior art, is easy to cause monitored The problems such as device resource is exhausted, business delay machine.
Summary of the invention
The invention solves the big problem of monitoring data transmission occupied bandwidth when carrying out monitoring of tools in the prior art, from And provide a kind of apparatus monitoring method, device, computer equipment and storage medium.
An aspect of of the present present invention provides a kind of apparatus monitoring method, comprising: obtain monitored device monitoring information and Monitoring script set, wherein the monitoring information is that required information, the monitoring foot are monitored to the monitored device This set includes the monitoring script of multiple execution for realizing monitor task;According to the monitoring information and the monitoring script Set generates supervisory sequence, and definition has the execution generic sequence of the monitoring script in the supervisory sequence;Using serial side Formula successively executes the monitoring script by sequence defined in the supervisory sequence, to be monitored to the monitored device.
Optionally, the monitoring script packet is successively executed by sequence defined in the supervisory sequence using serial manner It includes: monitor task being deposited into monitor task table according to the first interval time, wherein be arranged in the monitor task table The execution time of each sequence in supervisory sequence is stated, the execution time interval of two neighboring sequence is first interval time; The execution time in the monitor task table is read, and obtains current time;If the current time and the execution read Time consistency, the then execution time corresponding monitor task read described in starting, executes corresponding monitoring script.
Optionally, if the current time and the time difference of the execution time read were more than the second interval time, The execution time corresponding monitor task read described in starting, executes corresponding monitoring script.
Optionally, the execution time corresponding monitor task read described in starting, executing corresponding monitoring script includes: The monitoring information is transferred to the corresponding monitoring script;The corresponding monitoring script is executed, is acquired described monitored The data of equipment.
Optionally, generating supervisory sequence according to the monitoring information and the monitoring script set includes: monitoring and scheduling journey Sequence creates monitor task;The monitor scheduler sends the monitoring information to the monitor task;The monitor task Supervisory sequence generator is loaded, and the monitoring information is sent to the supervisory sequence generator;The supervisory sequence generates Device is by the monitoring information and the monitoring script collective combinations at the supervisory sequence.
Optionally, the sequence of the supervisory sequence are as follows: performance monitoring script, process monitoring script, port monitoring script, magnetic Disk health degree monitoring script, SQL Server database monitoring script, oracle database monitoring script, MySQL database prison Control script, Tomcat middleware monitoring script, WebLogic middleware monitoring script, WebSphere middleware monitoring script, IIS monitoring script, network interface card monitoring script.
Optionally, the monitoring information includes: facility information, subnet information, equipment alarm ignores information, global alarm is neglected Slightly information, monitoring data collection port and authorization message.
Another aspect of the present invention provides a kind of equipment monitoring apparatus, comprising: acquiring unit, it is monitored for obtaining The monitoring information and monitoring script set of equipment, wherein the monitoring information is needed for being monitored to the monitored device Information, the monitoring script set includes the monitoring script of multiple execution for realizing monitor task;Synthesis unit is used for Supervisory sequence is generated according to the monitoring information and the monitoring script set, definition has the monitoring foot in the supervisory sequence This execution generic sequence;Execution unit, for successively being held using serial manner by sequence defined in the supervisory sequence The row monitoring script, to be monitored to the monitored device.
Optionally, the step of execution unit is specifically for executing includes: to be stored in monitor task according to the first interval time Into monitor task table, wherein be provided with the execution time of each sequence in the supervisory sequence, phase in the monitor task table The execution time interval of adjacent two sequences is first interval time;It reads the execution time in the monitor task table, and Obtain current time;If the current time and the execution time consistency read, when the execution read described in starting Between corresponding monitor task, execute corresponding monitoring script.
Optionally, if the current time and the time difference of the execution time read were more than the second interval time, The execution time corresponding monitor task read described in starting, executes corresponding monitoring script.
Optionally, the execution unit is also used to for the monitoring information to be transferred to the corresponding monitoring script;It executes The corresponding monitoring script, acquires the data of the monitored device.
Optionally, the step of synthesis unit is specifically for executing includes: monitor scheduler creation monitor task;Institute It states monitor scheduler and sends the monitoring information to the monitor task;The monitor task load supervisory sequence generates Device, and the monitoring information is sent to the supervisory sequence generator;The supervisory sequence generator is by the monitoring information With the monitoring script collective combinations at the supervisory sequence.
Another aspect of the present invention, additionally provides a kind of computer equipment, including memory, processor and is stored in On reservoir and the computer program that can run on a processor, realized when the processor executes the computer program described in set The step of standby monitoring method.
Another aspect of the present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer program, The step of computer program realizes the apparatus monitoring method when being executed by processor.
According to embodiments of the present invention, by generating supervisory sequence, what definition had a monitoring script executes sequence, to being supervised Control equipment successively sequentially executes monitoring script when being monitored, using serial manner, in this way can be to avoid existing in the prior art Occupied bandwidth larger problem when once being monitored to monitored device reduces the instant bandwidth pressure to monitored device.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of apparatus monitoring method in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the program structure of apparatus monitoring method in the embodiment of the present invention;
Fig. 3 is the schematic diagram of equipment monitoring apparatus in the embodiment of the present invention;
Fig. 4 is the hardware structural diagram of computer equipment of the embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that term " first ", " second ", " third " are used for description purposes only, It is not understood to indicate or imply relative importance.
As long as in addition, the non-structure each other of technical characteristic involved in invention described below different embodiments It can be combined with each other at conflict.
The embodiment of the invention provides a kind of apparatus monitoring methods, as shown in Figure 1, method includes:
Step S101 obtains the monitoring information and monitoring script set of monitored device, wherein monitoring information is to being supervised Control equipment is monitored required information, and monitoring script set includes the monitoring foot of multiple execution for realizing monitor task This.
Monitoring information may include: facility information, subnet information, equipment alarm ignore information, information is ignored in global alarm, Monitoring data collection port and authorization message.
Monitoring script can be divided according to monitor task, for example, performance monitoring script, port monitoring script, process Monitoring script etc..
Step S102 generates supervisory sequence according to monitoring information and monitoring script set, and definition has monitoring in supervisory sequence The execution generic sequence of script.
Specifically, monitoring data collection port and authorization message can be read according to facility information, and by facility information, set Information is ignored in standby alarm, global alarm ignores information, monitoring script collective combinations into supervisory sequence.
Step S103 successively executes monitoring script by sequence defined in supervisory sequence using serial manner, to quilt Monitoring device is monitored.
According to embodiments of the present invention, by generating supervisory sequence, what definition had a monitoring script executes sequence, to being supervised Control equipment successively sequentially executes monitoring script when being monitored, using serial manner, in this way can be to avoid existing in the prior art Occupied bandwidth larger problem when once being monitored to monitored device reduces the instant bandwidth pressure to monitored device.
As a comparison, inventive embodiments the method is when being monitored, bandwidth occupancy calculation formula are as follows:
B '=D '/(Ta '/Tp ') * P '/Tp '
Wherein, the average byte number of single monitor control index acquisition monitoring data is P ', and total number of devices that monitors is D ', monitors sequence The scheduling time inter of column, the meaning of Tp are the execution time of supervisory sequence, and B ' is average bandwidth occupancy.
It further illustrates, number of devices remains as 1000, and monitor control index number is 100, each monitor control index is 1 second time-consuming Clock, in one sequence, 100 monitor control index sequences execute time-consuming 100 seconds, are divided into 5 minutes (300 between average monitoring period Second), then occupied bandwidth are as follows:
1000/ (300/100) * 10/100=33 (KB/s)
It is obvious that being compared in the case where meeting identical monitoring conditions of demand using the equipment of the embodiment of the present invention monitoring method In the prior art on bandwidth occupancy advantageously.
In the embodiment of the present invention, the sequence of supervisory sequence, setting are as follows: performance that is to say for the execution sequence of monitoring script Monitoring script, process monitoring script, port monitoring script, disk health degree monitoring script, SQL Server database monitoring foot Sheet, oracle database monitoring script, MySQL database monitoring script, Tomcat middleware monitoring script, among WebLogic Part monitoring script, WebSphere middleware monitoring script, IIS monitoring script, network interface card monitoring script.To monitored device into During row monitoring, successively perform script from front to back in the order described above.
As a kind of optional embodiment, above-mentioned steps S102 generates monitoring according to monitoring information and monitoring script set Sequence includes:
Step S1021, monitor scheduler create monitor task.
Step S1022, monitor scheduler send monitoring information to monitor task.Monitoring information include facility information, Equipment alarm ignores information, information is ignored in global alarm;Facility information includes asset number, IP address, device type of equipment etc..
Step S1023, monitor task loads supervisory sequence generator, and monitoring information is sent to supervisory sequence and is generated Device.The monitoring information for being sent to supervisory sequence generator is identical as above-mentioned monitoring information.
Step S1024, supervisory sequence generator is by monitoring information and monitoring script collective combinations at supervisory sequence.Specifically Ground, supervisory sequence generator read monitoring data collection port and authorization message according to facility information, and by facility information, equipment Information is ignored in alarm, global alarm ignores information, monitoring script collective combinations into supervisory sequence.
As an alternative embodiment, above-mentioned steps S103, using serial manner by defined in supervisory sequence Sequence successively executes monitoring script
Monitor task is deposited into monitor task table, wherein monitor task by step S1031 according to the first interval time The execution time of each sequence in supervisory sequence is provided in table, when the execution time interval of two neighboring sequence is the first interval Between.First interval time indicated the time interval that two monitoring scripts execute when being monitored, such as 30s.Monitor task table When the execution time of middle setting can be starting monitor task, with the setting of count down time interval, such as first sequence is held The row time is 12:29:30;The execution time of second sequence is 12:29:00.It is of course also possible to directly according to natural time into Row setting, principle is identical, and which is not described herein again.
Step S1032 reads the execution time in monitor task table, and obtains current time.
Step S1033, if current time and the execution time consistency read, start the execution time pair read The monitor task answered executes corresponding monitoring script.
In the embodiment of the present invention, by comparing the execution time being arranged in current time and monitor task table, when reaching phase When the execution time answered, start corresponding monitor task, executes corresponding monitoring script.
As another optional embodiment, if the time difference of current time and the execution time read are more than the Two interval times then started the execution time corresponding monitor task read, and executed corresponding monitoring script.When the second interval Between be monitoring period interval, such as 10 minutes, reached for the second interval time when the time difference, show apart from last time monitoring period More than the second interval time, needs to start monitor task and monitored again.
Further, the execution time corresponding monitor task that above-mentioned starting is read, executes corresponding monitoring script packet It includes: monitoring information is transferred to corresponding monitoring script;Corresponding monitoring script is executed, the data of monitored device are acquired.
Specifically, monitor task executes monitoring data collection device.Monitoring data collection device executes monitoring foot one by one in order Facility information, data collection terminal mouth and authorization message, equipment alarm are ignored information, global alarm is neglected in the process of implementation by this Slightly information is transmitted to monitoring script as parameter.Monitoring script carries out verifying login to the data collection terminal mouth of monitored device, steps on Data acquisition is monitored by different agreements after recording successfully.
The embodiment of the present invention is described below with reference to Fig. 2.Fig. 2 show the equipment of the embodiment of the present invention monitoring The program object relational graph of method.Wherein items respectively indicate are as follows:
Server_pool: monitor scheduler.
Sub_net: subnet information, including subnet address and subnet mask.Only subnet where monitored device IP address It is present in subnet information, which can just be monitored.
Net_device: facility information, asset number, IP address, device type including equipment etc..
Server_task: monitor task (executive process of supervisory sequence).
Task_loader: supervisory sequence generator or monitoring data collection device.
Monitor: monitoring script.
Cfg_hosts: monitoring data collection port and authorization message.
Cfg_warn: strategy is ignored in the alarm of single device.
Cfg_warn_global: strategy is ignored in overall situation alarm.
Steps are as follows for specific method execution:
Step 1: load monitoring script.
Specially supervisory sequence generator (task_loader) reads all monitoring script files under particular category, and It is saved in monitoring script monitors attribute.
Step 2: load monitored device.It specifically includes:
1, monitor scheduler (server_pool) reads all devices information (net_device).
2, monitor scheduler (server_pool) reads all subnet informations (sub_net).
3, monitor scheduler (server_pool) traverses all devices, and checks the IP address (net_ of equipment Whether subnet where device.ip_addr_str) defines in subnet (sub_net).If defined, it is put into In accepted_ips variable.
4, it reads equipment alarm and ignores information (cfg_warn).
5, it reads global alarm and ignores information (cfg_warn_global).
Step 3: composition supervisory sequence.It specifically includes:
1, monitor scheduler (server_pool) creation monitor task (server_task).
2, facility information (net_device), equipment alarm are ignored information by monitor scheduler (server_pool) (cfg_warn), global alarm ignores information (cfg_warn_global) and sends monitor task (server_task) to.
3, monitor task (server_task) load supervisory sequence generator (task_loader), and by facility information (net_device), equipment alarm ignores information (cfg_warn), information (cfg_warn_global) transmission is ignored in global alarm Give supervisory sequence generator (task_loader).
4, supervisory sequence generator (task_loader) reads monitoring data collection port according to facility information and authorization is believed Cease (cfg_hosts), and facility information (net_device), equipment alarm are ignored into information (cfg_warn), global alarm is neglected Slightly information (cfg_warn_global), monitoring script set (task_loader.monitors) are combined into supervisory sequence.Its In, supervisory sequence generator (task_loader) is ranked up monitoring script, ordering rule are as follows: performance monitoring script, process Monitoring script, port monitoring script, disk health degree monitoring script, SQL Server database monitoring script, Oracle data Library monitoring script, MySQL database monitoring script, Tomcat middleware monitoring script, WebLogic middleware monitoring script, WebSphere middleware monitoring script, IIS monitoring script, network interface card monitoring script (more more preferential forward).
Step 4: dispatching and monitoring sequence at timed intervals, specifically includes:
1, monitor task (server_task) was interval according to 30 second time by monitor scheduler (server_pool) Setting executes the time, is put into monitor task table (server_pool.task_mapping).
Start the set-up mode of time are as follows: if current time is 12:30:00, the execution time of first sequence is 12:29:30;The execution time of second sequence is 12:29:00.
2, monitor scheduler (server_pool) checked continually on monitor task table (server_ with 30 seconds for time interval Pool.task_mapping it), and by current time with the time is executed is compared, if the time difference is more than ten minutes, starts This in monitor task table records corresponding monitor task (server_task).
3, monitor task executes monitoring data collection device (task_loader).
4, monitoring data collection device executes monitoring script (monitor) one by one in order and in the process of implementation believes equipment Breath (net_device), acquisition port and authorization message (cfg_hosts), equipment alarm ignore information (cfg_warn), the overall situation Alarm ignores information (cfg_warn_global) as parameter and is transmitted to monitoring script.
5, monitoring script (monitor) carries out verifying login to the data collection terminal mouth of monitored server, logins successfully Data acquisition is carried out by different agreements afterwards.
The embodiment of the invention also provides a kind of equipment monitoring apparatus, which can be used for executing institute of the embodiment of the present invention The apparatus monitoring method stated.As shown in figure 3, the device includes:
Acquiring unit 301, for obtaining the monitoring information and monitoring script set of monitored device, wherein monitoring information To be monitored required information to monitored device, monitoring script set includes multiple execution for realizing monitor task Monitoring script.
Synthesis unit 302 defines in supervisory sequence for generating supervisory sequence according to monitoring information and monitoring script set There is the execution generic sequence of monitoring script.
Execution unit 303, for successively executing monitoring script by sequence defined in supervisory sequence using serial manner, To be monitored to monitored device.
According to embodiments of the present invention, by generating supervisory sequence, what definition had a monitoring script executes sequence, to being supervised Control equipment successively sequentially executes monitoring script when being monitored, using serial manner, in this way can be to avoid existing in the prior art Occupied bandwidth larger problem when once being monitored to monitored device reduces the instant bandwidth pressure to monitored device.
Optionally, the step of execution unit is specifically for executing includes: to be stored in monitor task according to the first interval time Into monitor task table, wherein be provided with the execution time of each sequence in supervisory sequence, two neighboring sequence in monitor task table The execution time interval of column was the first interval time;The execution time in monitor task table is read, and obtains current time;If Current time and the execution time consistency read, then start the execution time corresponding monitor task read, execute correspondence Monitoring script.
Optionally, if current time and the time difference of the execution time read were more than the second interval time, start The execution time corresponding monitor task read, executes corresponding monitoring script.
Optionally, execution unit is also used to for monitoring information to be transferred to corresponding monitoring script;Execute corresponding monitoring foot This, acquires the data of monitored device.
Optionally, the step of synthesis unit is specifically for executing includes: monitor scheduler creation monitor task;Monitoring is adjusted It spends program and sends monitoring information to monitor task;Monitor task loads supervisory sequence generator, and monitoring information is sent to Supervisory sequence generator;Supervisory sequence generator is by monitoring information and monitoring script collective combinations at supervisory sequence.
It specifically describes referring to above method embodiment, which is not described herein again.
The present embodiment also provides a kind of computer equipment, can such as execute the desktop computer of program, rack-mount server, Blade server, tower server or Cabinet-type server are (including composed by independent server or multiple servers Server cluster) etc..The computer equipment 20 of the present embodiment includes, but is not limited to: that company can be in communication with each other by system bus Memory 21, the processor 22 connect, as shown in Figure 4.It should be pointed out that Fig. 4 illustrates only the computer with component 21-22 Equipment 20, it should be understood that being not required for implementing all components shown, the implementation that can be substituted is more or less Component.
In the present embodiment, memory 21 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD etc..In some embodiments, memory 21 can be the internal storage unit of computer equipment 20, such as the calculating The hard disk or memory of machine equipment 20.In further embodiments, memory 21 is also possible to the external storage of computer equipment 20 The plug-in type hard disk being equipped in equipment, such as the computer equipment 20, intelligent memory card (Smart Media Card, SMC), peace Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, memory 21 can also both include meter The internal storage unit for calculating machine equipment 20 also includes its External memory equipment.In the present embodiment, memory 21 is commonly used in storage It is installed on the operating system and types of applications software of computer equipment 20, such as the program of equipment monitoring apparatus described in embodiment Code etc..In addition, memory 21 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 22 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in control computer equipment 20 overall operation.In the present embodiment, program code or processing data of the processor 22 for being stored in run memory 21, Such as running equipment monitoring device, to realize the apparatus monitoring method of embodiment.
The present embodiment also provides a kind of computer readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD, server, App are stored thereon with computer program, phase are realized when program is executed by processor using store etc. Answer function.The computer readable storage medium of the present embodiment is realized real for storing equipment monitoring apparatus, when being executed by processor Apply the apparatus monitoring method of example.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or It changes among still in the protection scope of the application.

Claims (10)

1. a kind of apparatus monitoring method characterized by comprising
Obtain the monitoring information and monitoring script set of monitored device, wherein the monitoring information is to set to described be monitored Standby to be monitored required information, the monitoring script set includes the monitoring foot of multiple execution for realizing monitor task This;
Supervisory sequence is generated according to the monitoring information and the monitoring script set, definition has the prison in the supervisory sequence Control the execution generic sequence of script;
The monitoring script is successively executed by sequence defined in the supervisory sequence using serial manner, to be supervised to described Control equipment is monitored.
2. apparatus monitoring method according to claim 1, which is characterized in that press the supervisory sequence using serial manner Defined sequence successively executes the monitoring script
Monitor task is deposited into monitor task table according to the first interval time, wherein be provided in the monitor task table The execution time of each sequence in the supervisory sequence, when the execution time interval of two neighboring sequence is the described first interval Between;
The execution time in the monitor task table is read, and obtains current time;
If the current time and the execution time consistency read, the execution time corresponding prison that is read described in starting Control task executes corresponding monitoring script.
3. apparatus monitoring method according to claim 2, which is characterized in that
If the current time and the time difference of the execution time read were more than the second interval time, start the reading The execution time corresponding monitor task arrived, executes corresponding monitoring script.
4. apparatus monitoring method according to claim 2 or 3, which is characterized in that the execution time read described in starting Corresponding monitor task, executing corresponding monitoring script includes:
The monitoring information is transferred to the corresponding monitoring script;
The corresponding monitoring script is executed, the data of the monitored device are acquired.
5. apparatus monitoring method according to claim 1, which is characterized in that according to the monitoring information and the monitoring foot This set generates supervisory sequence
Monitor scheduler creates monitor task;
The monitor scheduler sends the monitoring information to the monitor task;
The monitor task loads supervisory sequence generator, and the monitoring information is sent to the supervisory sequence generator;
The supervisory sequence generator is by the monitoring information and the monitoring script collective combinations at the supervisory sequence.
6. apparatus monitoring method according to claim 1, which is characterized in that the sequence of the supervisory sequence are as follows: performance prison Control script, process monitoring script, port monitoring script, disk health degree monitoring script, SQL Server database monitoring script, Oracle database monitoring script, MySQL database monitoring script, Tomcat middleware monitoring script, WebLogic middleware Monitoring script, WebSphere middleware monitoring script, IIS monitoring script, network interface card monitoring script.
7. apparatus monitoring method according to claim 1, which is characterized in that the monitoring information includes: facility information, son Net information, equipment alarm ignore information, information, monitoring data collection port and authorization message are ignored in global alarm.
8. a kind of equipment monitoring apparatus characterized by comprising
Acquiring unit, for obtaining the monitoring information and monitoring script set of monitored device, wherein the monitoring information is pair The monitored device is monitored required information, and the monitoring script set includes multiple holding for realizing monitor task Capable monitoring script;
Synthesis unit, for generating supervisory sequence, the supervisory sequence according to the monitoring information and the monitoring script set It is middle to define the execution generic sequence for having the monitoring script;
Execution unit, for successively executing the monitoring foot by sequence defined in the supervisory sequence using serial manner This, to be monitored to the monitored device.
9. a kind of computer equipment, which is characterized in that including memory, processor and store on a memory and can handle The computer program run on device, the processor are realized described in any one of claim 1 to 7 when executing the computer program The step of method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program The step of any one of claim 1 to 7 the method is realized when being executed by processor.
CN201811205174.6A 2018-10-16 2018-10-16 Equipment monitoring method and device, computer equipment and storage medium Active CN109257256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811205174.6A CN109257256B (en) 2018-10-16 2018-10-16 Equipment monitoring method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811205174.6A CN109257256B (en) 2018-10-16 2018-10-16 Equipment monitoring method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109257256A true CN109257256A (en) 2019-01-22
CN109257256B CN109257256B (en) 2021-04-27

Family

ID=65045266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811205174.6A Active CN109257256B (en) 2018-10-16 2018-10-16 Equipment monitoring method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109257256B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045893A (en) * 2019-12-12 2020-04-21 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN112395158A (en) * 2020-11-17 2021-02-23 北京乐我无限科技有限责任公司 Information processing method and device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754608A (en) * 2013-12-25 2015-07-01 腾讯科技(深圳)有限公司 Method and system for monitoring performances of mobile terminal
CN105005527A (en) * 2015-05-26 2015-10-28 北京中亦安图科技股份有限公司 Server-side product monitoring method and device
CN105446850A (en) * 2014-08-22 2016-03-30 阿里巴巴集团控股有限公司 Monitoring method and apparatus
CN107844399A (en) * 2017-10-10 2018-03-27 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of automatic monitoring data storehouse service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754608A (en) * 2013-12-25 2015-07-01 腾讯科技(深圳)有限公司 Method and system for monitoring performances of mobile terminal
CN105446850A (en) * 2014-08-22 2016-03-30 阿里巴巴集团控股有限公司 Monitoring method and apparatus
CN105005527A (en) * 2015-05-26 2015-10-28 北京中亦安图科技股份有限公司 Server-side product monitoring method and device
CN107844399A (en) * 2017-10-10 2018-03-27 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of automatic monitoring data storehouse service

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045893A (en) * 2019-12-12 2020-04-21 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN111045893B (en) * 2019-12-12 2023-09-22 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN112395158A (en) * 2020-11-17 2021-02-23 北京乐我无限科技有限责任公司 Information processing method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN109257256B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
JP6490913B2 (en) Task execution by idle resources of grid computing system
CN105357296B (en) Elastic caching system under a kind of Docker cloud platforms
CN111880936B (en) Resource scheduling method, device, container cluster, computer equipment and storage medium
CN108205541B (en) Method and device for scheduling distributed web crawler tasks
CN105049268A (en) Distributed computing resource allocation system and task processing method
US9535754B1 (en) Dynamic provisioning of computing resources
CN111930525B (en) GPU resource use method, electronic device and computer readable medium
CN109614227A (en) Task resource concocting method, device, electronic equipment and computer-readable medium
CN112698952A (en) Unified management method and device for computing resources, computer equipment and storage medium
CN111400041A (en) Server configuration file management method and device and computer readable storage medium
CN111930493A (en) NodeManager state management method and device in cluster and computing equipment
CN109873714A (en) Cloud computing node configures update method and terminal device
CN109902028A (en) Automated testing method, device, equipment and the storage medium of ACL characteristic
CN113391901A (en) RPA robot management method, device, equipment and storage medium
CN114706690B (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
CN114327881A (en) Task scheduling method and device
CN109858817A (en) A kind of Workflow Management System and method
CN109597764A (en) A kind of test method and relevant apparatus of catalogue quota
CN112416888A (en) Dynamic load balancing method and system for distributed file system
CN115269193A (en) Method and device for realizing distributed load balance in automatic test
CN109257256A (en) Apparatus monitoring method, device, computer equipment and storage medium
CN107193749B (en) Test method, device and equipment
CN108696559B (en) Stream processing method and device
CN112463305A (en) Management method, system and related device of cloud virtualization GPU
CN110188258B (en) Method and device for acquiring external data by using crawler

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant