CN109213658A - A kind of method for inspecting and device - Google Patents

A kind of method for inspecting and device Download PDF

Info

Publication number
CN109213658A
CN109213658A CN201811102735.XA CN201811102735A CN109213658A CN 109213658 A CN109213658 A CN 109213658A CN 201811102735 A CN201811102735 A CN 201811102735A CN 109213658 A CN109213658 A CN 109213658A
Authority
CN
China
Prior art keywords
inspection
patrol
plan
patrol plan
parameter
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.)
Pending
Application number
CN201811102735.XA
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811102735.XA priority Critical patent/CN109213658A/en
Publication of CN109213658A publication Critical patent/CN109213658A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting

Abstract

The invention discloses a kind of method for inspecting and devices, this method comprises: according to the patrol task, associated patrol plan acquires the parameter information of corresponding resource in advance when patrol task starting;Wherein, a patrol task is associated with one or more patrol plans;For the patrol task, associated each patrol plan is handled as follows respectively in advance: after completing the corresponding parameter information acquisition of the patrol plan, the template reported according to inspection corresponding to the patrol plan, parameter information collected is handled, the corresponding inspection report of the patrol plan is generated.The method for inspecting of the embodiment of the present invention can customize patrol plan according to actual needs, be timed to calculator room equipment or random inspection, greatly simplifie the maintenance of calculator room equipment, save room management cost.

Description

A kind of method for inspecting and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of method for inspecting and device.
Background technique
Large-scale cloud data center needs the physical equipments such as large number of server, storage, provides physics money for cloud computing Source.In the maintenance of computer room, need periodically to detect numerous equipment, to ensure the normal operation of equipment.By computer room Administrative staff go each parameter that every equipment is examined successively, and not only expend huge manpower, time, but also are also unrealistic 's.Therefore, it realizes the automation inspection management to computer room, and patrol plan can be customized according to actual business demand, it appears It is particularly important.
Summary of the invention
The main purpose of the present invention is to provide a kind of method for inspecting and devices, and automatic detecting may be implemented, and simplify machine Room management cost is saved in the maintenance of room equipment.
In order to solve the above-mentioned technical problems, the present invention provides a kind of method for inspecting, comprising:
When patrol task starting, according to the patrol task, associated patrol plan acquires the ginseng of corresponding resource in advance Number information;Wherein, a patrol task is associated with one or more patrol plans;
For the patrol task, associated each patrol plan is handled as follows respectively in advance: completing the inspection meter After drawing corresponding parameter information acquisition, according to the template that inspection corresponding to the patrol plan is reported, parameter collected is believed Breath is handled, and the corresponding inspection report of the patrol plan is generated.
Optionally, the patrol plan includes resource to be inspected, the corresponding parameter to be inspected of resource to be inspected, inspection Type;
Wherein, the type of the inspection includes single inspection and periodical inspection;
If the type of the inspection of the patrol plan is periodical inspection, the patrol plan further includes the week of inspection Phase.
Optionally, the parameter information of the acquisition includes parameter name and parameter value;The template of inspection report includes The position of multiple parameter values to be inserted, the corresponding parameter name in each position;
According to the template that inspection corresponding to the patrol plan is reported, parameter information collected is handled, is generated The corresponding inspection of the patrol plan, which is reported, includes:
It is matched using the corresponding parameter name in each position in the template of the report of inspection corresponding to the patrol plan The corresponding parameter value of matched parameter name is inserted the inspection report by the parameter name in the parameter information of the acquisition Corresponding position in template generates inspection report.
Optionally, when the type of the inspection of the patrol plan is single inspection, described completion patrol plan is corresponding Parameter information acquisition include:
The acquisition for the corresponding parameter information to be inspected of all resources to be inspected for completing that the patrol plan includes;
When the type of the inspection of the patrol plan is periodical inspection, the corresponding parameter of described completion patrol plan Information collection includes:
Complete the corresponding ginseng to be inspected of all resources to be inspected that the patrol plan described in current polling period includes The acquisition of number information.
Optionally, the method also includes:
When patrol task pause, provide for choosing whether to generate inspection report when patrol task is suspended for user The interface of announcement.
To solve the above-mentioned problems, the present invention also provides a kind of inspection devices, comprising: memory and processor;Wherein:
The memory, for storing the program for being used for inspection;
The processor executes the program for being used for inspection for reading, performs the following operations:
When patrol task starting, according to the patrol task, associated patrol plan acquires the ginseng of corresponding resource in advance Number information;Wherein, a patrol task is associated with one or more patrol plans;
For the patrol task, associated each patrol plan is handled as follows respectively in advance: completing the inspection meter After drawing corresponding parameter information acquisition, according to the template that inspection corresponding to the patrol plan is reported, parameter collected is believed Breath is handled, and the corresponding inspection report of the patrol plan is generated.
Optionally, the patrol plan includes resource to be inspected, the corresponding parameter to be inspected of resource to be inspected, inspection Type;
Wherein, the type of the inspection includes single inspection and periodical inspection;
If the type of the inspection of the patrol plan is periodical inspection, the patrol plan further includes the week of inspection Phase.
Optionally, the parameter information of the acquisition includes parameter name and parameter value;The template of inspection report includes The position of multiple parameter values to be inserted, the corresponding parameter name in each position;
According to the template that inspection corresponding to the patrol plan is reported, parameter information collected is handled, is generated The corresponding inspection of the patrol plan, which is reported, includes:
It is matched using the corresponding parameter name in each position in the template of the report of inspection corresponding to the patrol plan The corresponding parameter value of matched parameter name is inserted the inspection report by the parameter name in the parameter information of the acquisition Corresponding position in template generates inspection report.
Optionally, when the type of the inspection of the patrol plan is single inspection, described completion patrol plan is corresponding Parameter information acquisition include:
The acquisition for the corresponding parameter information to be inspected of all resources to be inspected for completing that the patrol plan includes;
When the type of the inspection of the patrol plan is periodical inspection, the corresponding parameter of described completion patrol plan Information collection includes:
Complete the corresponding ginseng to be inspected of all resources to be inspected that the patrol plan described in current polling period includes The acquisition of number information.
Optionally, the processor, which is read, executes the program for being used for inspection, also performs the following operations:
When patrol task pause, provide for choosing whether to generate inspection report when patrol task is suspended for user The interface of announcement.
To sum up, the method for inspecting and device proposed according to embodiments of the present invention is patrolled when patrol task starting according to described Associated patrol plan acquires the parameter information of corresponding resource to inspection task in advance;Wherein, patrol task be associated with one or Multiple patrol plans;For the patrol task, associated each patrol plan is handled as follows respectively in advance: completing to be somebody's turn to do After the corresponding parameter information acquisition of patrol plan, according to the template that inspection corresponding to the patrol plan is reported, to collected Parameter information is handled, and the corresponding inspection report of the patrol plan is generated.The method for inspecting of the embodiment of the present invention can basis Actual demand customizes patrol plan, is timed to calculator room equipment or random inspection, greatly simplifies the maintenance of calculator room equipment, Save room management cost.
Detailed description of the invention
Fig. 1 is the flow chart of the method for inspecting of the embodiment of the present invention.
Fig. 2 is the structural schematic diagram of the inspection device of the embodiment of the present invention.
Fig. 3 is the schematic diagram of the inspection management framework of the invention using exemplary based on ICOS.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Fig. 1 is the flow chart of the method for inspecting of the embodiment of the present invention.According to the flow chart of Fig. 1, the inspection side of the present embodiment Method the following steps are included:
Step S1: when patrol task starting, according to the patrol task, associated patrol plan is acquired accordingly in advance The parameter information of resource;Wherein, a patrol task is associated with one or more patrol plans.
Step S2: for the patrol task, associated each patrol plan is handled as follows respectively in advance: completing After the patrol plan corresponding parameter information acquisition, according to the template that inspection corresponding to the patrol plan is reported, to being acquired Parameter information handled, generate the patrol plan corresponding inspection report.
In an exemplary embodiment, before patrol task starting, the method for inspecting further include:
Establish the patrol task;Patrol plan is formulated, and generates inspection report corresponding with the patrol plan Template;Wherein, formulate what patrol plan was formulated according to user's actual need.
In another exemplary embodiment, after formulating patrol plan and before patrol task starting, this is patrolled Detecting method further include:
Patrol task and patrol plan are associated, wherein different patrol tasks can be associated with the same inspection meter It draws, patrol task is also to be executed according to user's actual need with being associated with for patrol plan.
In another exemplary embodiment, the interface for starting patrol task for user can be provided, for example, this connects Mouth can be the interface of patrol task start and stop, not only can star patrol task by the interface, can also stop patrol task. The interface for being individually only used for starting patrol task can also be provided, the interface of more functions can also be provided.The present invention couple This is simultaneously not specifically limited.Similarly, the application can be provided for establishing the interface of patrol task, or formulate patrol plan Interface, or generate the interface etc. of inspection report.In order to improve user experience, can be provided on visualization human-computer interaction interface Above-mentioned interface.
In another exemplary embodiment, resource in step sl can be physical resource, can be logic money Source.Optionally, resource can also be the resource of pre-set resource group to be inspected, before carrying out inspection, according to user's The resource name for needing inspection is added in resource group to be inspected by specific requirements.Resource can also be added to one by the present invention Then basic resource layer carries out inspection to the resource of the basic resource layer.The present invention can also be arranged multiple resource groups, and according to Geographical location or manufacturer divide resource group and carry out inspection.It gives one example, in the equipment of certain computer room Zhong You different vendor, first may be used Different resource groups to be respectively set according to different manufacturers, then inspection is carried out to different resource groups.Another example, in data There are many resources, these resource distributions can draw the resource of same computer room or several computer rooms in different computer rooms at center A resource group is assigned to carry out inspection.The application can also set the range of the resource of inspection using other modes It sets, the application is to this and is not specifically limited.
Optionally, the patrol plan includes resource to be inspected, the corresponding parameter to be inspected of resource to be inspected, inspection Type;
Wherein, the type of the inspection includes single inspection and periodical inspection;
If the type of the inspection of the patrol plan is periodical inspection, the patrol plan further includes the week of inspection Phase.
Optionally, the parameter information of the acquisition includes parameter name and parameter value;The template of inspection report includes The position of multiple parameter values to be inserted, the corresponding parameter name in each position;
According to the template that inspection corresponding to the patrol plan is reported, parameter information collected is handled, is generated The corresponding inspection of the patrol plan, which is reported, includes:
It is matched using the corresponding parameter name in each position in the template of the report of inspection corresponding to the patrol plan The corresponding parameter value of matched parameter name is inserted the inspection report by the parameter name in the parameter information of the acquisition Corresponding position in template generates inspection report.
In the embodiment of another exemplary, the template for generating inspection report corresponding with the patrol plan is specific Include:
The resource to be inspected and the corresponding parameter to be inspected of resource to be inspected for including in patrol plan are extracted, is utilized The information of extraction is by the title of resource to be inspected, the corresponding parameter name to be inspected of resource to be inspected, with ginseng to be inspected Several positions for claiming corresponding parameter value to be inserted are added to a null file, generate inspection corresponding with the patrol plan The template of report.
In an exemplary embodiment, inspection report template corresponding with patrol plan can also include: wait fill out Enter the position of the time and date of inspection report generation.
In an exemplary embodiment, inspection report template can also include the type of the inspection of patrol plan.Its In, the type of inspection can be indicated in the form of text, number or letter in inspection report template.For example, in inspection report The type for accusing the inspection for the patrol plan for including in module can be single inspection or periodical inspection.In another example, may be used The type of inspection is indicated to use number 0 or 1, wherein number 0 indicates single inspection, and number 1 indicates periodical inspection.Again Alternatively, letter can be used to indicate the type of inspection, for example, letter A indicates single inspection, letter b indicates periodical inspection. The present invention can also indicate that the type of inspection, the present invention do not do specific restriction to this using other modes.
In another exemplary embodiment, if the type of patrol plan is periodical inspection, with patrol plan phase Corresponding inspection report template can also include: the position of the serial number of inspection number to be inserted.For example, in periodical patrol plan It include: " _ secondary inspection " in corresponding inspection report template.If this inspection is the 2nd inspection of the patrol plan, generate When the corresponding inspection of the patrol plan is reported, " 2 " are filled in position to be inserted.That is, the corresponding inspection of patrol plan generated Include in report " the2Secondary inspection ".
Optionally, when the type of the inspection of the patrol plan is single inspection, described completion patrol plan is corresponding Parameter information acquisition include:
The acquisition for the corresponding parameter information to be inspected of all resources to be inspected for completing that the patrol plan includes;
When the type of the inspection of the patrol plan is periodical inspection, the corresponding parameter of described completion patrol plan Information collection includes:
Complete the corresponding ginseng to be inspected of all resources to be inspected that the patrol plan described in current polling period includes The acquisition of number information.
Wherein, if the type of the inspection of patrol plan is single inspection, one is generated after completing the inspection of patrol plan A inspection report corresponding with the patrol plan;It is every to complete one if the type of the inspection of patrol plan is periodical inspection An inspection report corresponding with the patrol plan can be all generated after the inspection in period.
In an exemplary embodiment, if patrol task is associated with multiple patrol plans, when patrol task starting, The parameter information of corresponding resource is acquired according to patrol plan according to associated sequence.In another exemplary embodiment, If patrol task is associated with multiple patrol plans, can also be acquired accordingly according to patrol plan sequentially or in parallel using other The parameter information of resource.The application is not specifically limited in this embodiment.
In another illustrative implementation, the interface of pause patrol task can also be provided for user.In user because Certain reason needs to stop inspection, but wishes subsequent when can continue to restore inspection, can suspend to patrol task.
Optionally, the method also includes:
When patrol task pause, provide for choosing whether to generate inspection report when patrol task is suspended for user The interface of announcement.
When due to patrol task pause, inspection may be not yet completed, therefore inspection report will not be generated.There may be users to need Check the case where inspection packet is accused, the present invention provides for choosing whether to generate inspection report when patrol task is suspended for user The interface of announcement can be met the needs of users well.
In another exemplary embodiment, method for inspecting of the invention further include:
When patrol task stops, the template of inspection report corresponding to the patrol plan that includes according to the patrol task, The parameter information acquired is handled, the corresponding inspection report of patrol plan that the patrol task includes is generated.
That is, no matter which kind of progress inspection is now in when patrol task stops, inspection report can be all generated.For not having There is the position for the parameter value to be inserted for matching parameter name then directly to retain blank, or the specific symbol of filling or number or text The non-inspection of the expressions such as word.
To sum up, the method for inspecting that the embodiment of the present invention proposes can customize patrol plan according to actual needs, in resource On the basis of intelligent monitoring, calculator room equipment is timed or random inspection, simplifies the maintenance of calculator room equipment, saves computer room dimension Protect cost.
Fig. 2 is the structural schematic diagram of the inspection device of the embodiment of the present invention.Schematic diagram according to Fig.2, the present embodiment Inspection device, including memory 100 and processor 200.Wherein:
The memory 100, for storing the program for being used for inspection;
The processor 200 executes the program for being used for inspection for reading, performs the following operations:
When patrol task starting, according to the patrol task, associated patrol plan acquires the ginseng of corresponding resource in advance Number information;Wherein, a patrol task is associated with one or more patrol plans;
For the patrol task, associated each patrol plan is handled as follows respectively in advance: completing the inspection meter After drawing corresponding parameter information acquisition, according to the template that inspection corresponding to the patrol plan is reported, parameter collected is believed Breath is handled, and the corresponding inspection report of the patrol plan is generated.
In an exemplary embodiment, processor 200, which is read, executes the program for being used for inspection, also executes as follows Operation:
Before patrol task starting,
Establish the patrol task;Patrol plan is formulated, and generates inspection report corresponding with the patrol plan Template;Wherein, formulate what patrol plan was formulated according to user's actual need.
In another exemplary embodiment, processor 200, which is read, executes the program for being used for inspection, also executes such as Lower operation:
After formulating patrol plan and before patrol task starting,
Patrol task and patrol plan are associated, wherein different patrol tasks can be associated with the same inspection meter It draws, patrol task is also to be executed according to user's actual need with being associated with for patrol plan.
In another exemplary embodiment, the interface for starting patrol task for user can be provided, for example, this connects Mouth can be the interface of patrol task start and stop, not only can star patrol task by the interface, can also stop patrol task. The interface for being individually only used for starting patrol task can also be provided, the interface of more functions can also be provided.The application couple This is simultaneously not specifically limited.Similarly, the application can be provided for establishing the interface of patrol task, or formulate patrol plan Interface, or generate the interface etc. of inspection report.In order to improve user experience, can be provided on visualization human-computer interaction interface Above-mentioned interface.
In another exemplary embodiment, physical resource can be by the resource of inspection, can be logical resource.It can Selection of land, resource can also be the resource of pre-set resource group to be inspected, before carrying out inspection, according to the specific need of user It asks, the resource name for needing inspection is added in resource group to be inspected.Resource can also be added to a basis money by the present invention Then active layer carries out inspection to the resource of the basic resource layer.Multiple resource groups can also be arranged in the present invention, and according to geographical position It sets or manufacturer divides resource group and carries out inspection.It gives one example, it, first can basis in the equipment of certain computer room Zhong You different vendor Different resource groups is respectively set in different manufacturers, then carries out inspection to different resource groups.Another example is deposited in data center In many resources, the resource of same computer room or several computer rooms can be divided into one in different computer rooms by these resource distributions A resource group is to carry out inspection.The application can also be configured the range of the resource of inspection using other modes, this Shen Please to this and it is not specifically limited.
Optionally, the patrol plan includes resource to be inspected, the corresponding parameter to be inspected of resource to be inspected, inspection Type;
Wherein, the type of the inspection includes single inspection and periodical inspection;
If the type of the inspection of the patrol plan is periodical inspection, the patrol plan further includes the week of inspection Phase.
Optionally, the parameter information of the acquisition includes parameter name and parameter value;The template of inspection report includes The position of multiple parameter values to be inserted, the corresponding parameter name in each position;
According to the template that inspection corresponding to the patrol plan is reported, parameter information collected is handled, is generated The corresponding inspection of the patrol plan, which is reported, includes:
It is matched using the corresponding parameter name in each position in the template of the report of inspection corresponding to the patrol plan The corresponding parameter value of matched parameter name is inserted the inspection report by the parameter name in the parameter information of the acquisition Corresponding position in template generates inspection report.
In the embodiment of another exemplary, the template for generating inspection report corresponding with the patrol plan is specific Include:
The resource to be inspected and the corresponding parameter to be inspected of resource to be inspected for including in patrol plan are extracted, is utilized The information of extraction is by the title of resource to be inspected, the corresponding parameter name to be inspected of resource to be inspected, with ginseng to be inspected Several positions for claiming corresponding parameter value to be inserted are added to a null file, generate inspection corresponding with the patrol plan The template of report.
In an exemplary embodiment, the template of corresponding with patrol plan inspection report can also include: to Insert the position of the time and date of inspection report generation.
In an exemplary embodiment, the template of inspection report can also include the type of the inspection of patrol plan. Wherein, the type of inspection can be indicated in the form of text, number or letter in the template of inspection report.For example, patrolling The type for examining the inspection for the patrol plan for including in the module of report can be single inspection or periodical inspection.In another example In, number 0 or 1 can be used to indicate the type of inspection, wherein number 0 indicates single inspection, and number 1 indicates periodically to patrol Inspection.Or letter can be used to indicate the type of inspection, for example, letter A indicates single inspection, letter b is indicated periodically Inspection.The present invention can also indicate that the type of inspection, the present invention do not do specific restriction to this using other modes.
In another exemplary embodiment, if the type of patrol plan is periodical inspection, with patrol plan phase The template of corresponding inspection report can also include: the position of the serial number of inspection number to be inserted.For example, in periodical inspection meter It draws in the template of corresponding inspection report and includes: " the _ secondary inspection ".If this inspection is the 2nd inspection of the patrol plan, When generating the patrol plan corresponding inspection report, " 2 " are filled in position to be inserted.That is, the patrol plan generated is corresponding It include " the 2nd inspection " in inspection report.
Optionally, when the type of the inspection of the patrol plan is single inspection, described completion patrol plan is corresponding Parameter information acquisition include:
The acquisition for the corresponding parameter information to be inspected of all resources to be inspected for completing that the patrol plan includes;
When the type of the inspection of the patrol plan is periodical inspection, the corresponding parameter of described completion patrol plan Information collection includes:
Complete the corresponding ginseng to be inspected of all resources to be inspected that the patrol plan described in current polling period includes The acquisition of number information.
Wherein, if the type of the inspection of patrol plan is single inspection, one is generated after completing the inspection of patrol plan A inspection report corresponding with the patrol plan;It is every to complete one if the type of the inspection of patrol plan is periodical inspection An inspection report corresponding with the patrol plan can be all generated after the inspection in period.
In an exemplary embodiment, if patrol task is associated with multiple patrol plans, when patrol task starting, The parameter information of corresponding resource is acquired according to patrol plan according to associated sequence.In another exemplary embodiment, If patrol task is associated with multiple patrol plans, can also be acquired accordingly according to patrol plan sequentially or in parallel using other The parameter information of resource.The application is not specifically limited in this embodiment.
Another it is illustrative implement, processor is read executes the program for being used for inspection, can also be performed as Lower operation: the interface of pause patrol task is provided for user.In user because certain reason needs to stop inspection, but wish it After can continue to restore inspection when, patrol task can be suspended.
Optionally, the processor, which is read, executes the program for being used for inspection, also performs the following operations:
When patrol task pause, provide for choosing whether to generate inspection report when patrol task is suspended for user The interface of announcement.
When due to patrol task pause, inspection may be not yet completed, therefore inspection report will not be generated.There may be users to need Check the case where inspection packet is accused, the present invention provides for choosing whether to generate inspection report when patrol task is suspended for user The interface of announcement can be met the needs of users well.In another exemplary embodiment.
In another exemplary embodiment, the processor, which is read, executes the program for being used for inspection, also executes Following operation:
When patrol task stops, the template of inspection report corresponding to the patrol plan that includes according to the patrol task, The parameter information acquired is handled, the corresponding inspection report of patrol plan that the patrol task includes is generated.
That is, no matter which kind of progress inspection is now in when patrol task stops, inspection report can be all generated.For not having There is the position for the parameter value to be inserted for matching parameter name then directly to retain blank, or the specific symbol of filling or number or text The non-inspection of the expressions such as word.
Above-mentioned method for inspecting is further described with concrete application example below.
In this application example, based on ICOS (Include OpenStack, the operation of tide sea of clouds cloud data center System) inspection management framework (as shown in Figure 3) for method for inspecting is explained.Wherein, as shown in Figure 3 based on ICOS's Inspection management framework includes basic resource layer, monitoring resource layer, data collection layer, bussiness processing layer and application programming interface (Application Programming Interface, API) layer.
Step 1: resource is added to the basic resource layer of ICOS.Wherein, as shown in figure 3, the resource packet of basic resource layer Include building environment, server, host, database server, website web server, the network equipment and other software.Money herein Source can be physical resource, be also possible to logic or software resource, and may include but be not limited to resource as shown in Figure 3.
Step 2: monitoring resource layer based on server monitoring alarm system Shinken framework to the state of resource or other Parameter is monitored, and obtains the parameter value of monitoring.
Step 3: patrol task is established;Patrol plan is formulated, and generates inspection report corresponding with patrol plan Template;Patrol task and patrol plan are associated.
Wherein, step 3 operation can by bussiness processing layer provide patrol plan management, patrol task setting with And inspection function of reporting is realized.What the realization of above-mentioned steps three can provide bussiness processing layer by the api interface of api layer Above-mentioned function is called.Each operation of step 3 can be executed according to the actual demand of user.
Step 4: starting patrol task, according to patrol task, associated patrol plan acquires accordingly data collection layer in advance Resource parameter information, and be forwarded to bussiness processing layer.
Step 5: for patrol task, associated each patrol plan is handled as follows bussiness processing layer respectively in advance: According to the template that inspection corresponding to the patrol plan is reported, parameter information collected is handled, the inspection meter is generated Draw corresponding inspection report.
It should be noted that the method for inspecting that above-mentioned each step provides is only one specifically using example, in practical reality There is no the limitations of stringent sequence for above steps in existing, can also realize method for inspecting using the sequence being different from herein.It lifts A example can first formulate patrol plan, resettle patrol task, be then associated with;The patrol task association executed as needed Patrol plan the resource for needing inspection is added to the basic resource layer of ICOS.The application, which does not do the sequence of each step, to be had Body limits.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The above is only a preferred embodiment of the present invention, and certainly, the invention may also have other embodiments, without departing substantially from this In the case where spirit and its essence, those skilled in the art make various corresponding changes in accordance with the present invention And deformation, but these corresponding changes and modifications all should fall within the scope of protection of the appended claims of the present invention.

Claims (10)

1. a kind of method for inspecting, comprising:
When patrol task starting, believed according to the patrol task parameter that associated patrol plan acquires corresponding resource in advance Breath;Wherein, a patrol task is associated with one or more patrol plans;
For the patrol task, associated each patrol plan is handled as follows respectively in advance: completing the patrol plan pair Answer parameter information acquisition after, according to inspection corresponding to the patrol plan report template, to parameter information collected into Row processing generates the corresponding inspection report of the patrol plan.
2. the method as described in claim 1, which is characterized in that the patrol plan includes resource to be inspected, money to be inspected The corresponding parameter to be inspected in source, the type of inspection;
Wherein, the type of the inspection includes single inspection and periodical inspection;
If the type of the inspection of the patrol plan is periodical inspection, the patrol plan further includes the period of inspection.
3. the method as described in claim 1, which is characterized in that the parameter information of the acquisition includes parameter name and parameter Value;The template of the inspection report includes the position of multiple parameter values to be inserted, the corresponding parameter name in each position;
According to the template that inspection corresponding to the patrol plan is reported, parameter information collected is handled, this is generated and patrols The corresponding inspection of inspection plan, which is reported, includes:
Using described in the corresponding parameter name matching in each position in the template of the report of inspection corresponding to the patrol plan The corresponding parameter value of matched parameter name is inserted the template of the inspection report by the parameter name in the parameter information of acquisition In corresponding position, generate inspection report.
4. method according to claim 2, when the type of the inspection of the patrol plan is single inspection, the completion should The corresponding parameter information of patrol plan, which acquires, includes:
The acquisition for the corresponding parameter information to be inspected of all resources to be inspected for completing that the patrol plan includes;
When the type of the inspection of the patrol plan is periodical inspection, the corresponding parameter information of described completion patrol plan Acquisition includes:
Complete the corresponding parameter letter to be inspected of all resources to be inspected that the patrol plan described in current polling period includes The acquisition of breath.
5. the method as described in claim 1, which is characterized in that the method also includes:
When patrol task pause, provide for choosing whether to generate inspection report when patrol task is suspended for user Interface.
6. a kind of inspection device, comprising: memory and processor;Wherein:
The memory, for storing the program for being used for inspection;
The processor executes the program for being used for inspection for reading, performs the following operations:
When patrol task starting, believed according to the patrol task parameter that associated patrol plan acquires corresponding resource in advance Breath;Wherein, a patrol task is associated with one or more patrol plans;
For the patrol task, associated each patrol plan is handled as follows respectively in advance: completing the patrol plan pair Answer parameter information acquisition after, according to inspection corresponding to the patrol plan report template, to parameter information collected into Row processing generates the corresponding inspection report of the patrol plan.
7. device as claimed in claim 6, which is characterized in that the patrol plan includes resource to be inspected, money to be inspected The corresponding parameter to be inspected in source, the type of inspection;
Wherein, the type of the inspection includes single inspection and periodical inspection;
If the type of the inspection of the patrol plan is periodical inspection, the patrol plan further includes the period of inspection.
8. device as claimed in claim 6, which is characterized in that the parameter information of the acquisition includes parameter name and parameter Value;The template of the inspection report includes the position of multiple parameter values to be inserted, the corresponding parameter name in each position;
According to the template that inspection corresponding to the patrol plan is reported, parameter information collected is handled, this is generated and patrols The corresponding inspection of inspection plan, which is reported, includes:
Using described in the corresponding parameter name matching in each position in the template of the report of inspection corresponding to the patrol plan The corresponding parameter value of matched parameter name is inserted the template of the inspection report by the parameter name in the parameter information of acquisition In corresponding position, generate inspection report.
9. device as claimed in claim 6, which is characterized in that when the type of the inspection of the patrol plan is single inspection When, the corresponding parameter information acquisition of described completion patrol plan includes:
The acquisition for the corresponding parameter information to be inspected of all resources to be inspected for completing that the patrol plan includes;
When the type of the inspection of the patrol plan is periodical inspection, the corresponding parameter information of described completion patrol plan Acquisition includes:
Complete the corresponding parameter letter to be inspected of all resources to be inspected that the patrol plan described in current polling period includes The acquisition of breath.
10. device as claimed in claim 9, which is characterized in that the processor, which is read, executes the program for being used for inspection, Also perform the following operations:
When patrol task pause, provide for choosing whether to generate inspection report when patrol task is suspended for user Interface.
CN201811102735.XA 2018-09-20 2018-09-20 A kind of method for inspecting and device Pending CN109213658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811102735.XA CN109213658A (en) 2018-09-20 2018-09-20 A kind of method for inspecting and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811102735.XA CN109213658A (en) 2018-09-20 2018-09-20 A kind of method for inspecting and device

Publications (1)

Publication Number Publication Date
CN109213658A true CN109213658A (en) 2019-01-15

Family

ID=64984713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811102735.XA Pending CN109213658A (en) 2018-09-20 2018-09-20 A kind of method for inspecting and device

Country Status (1)

Country Link
CN (1) CN109213658A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956408A (en) * 2019-12-09 2020-04-03 浙江浙能嘉华发电有限公司 Patrol inspection all-round duty method based on post
CN111932706A (en) * 2020-08-10 2020-11-13 北京道迩科技有限公司 Informationized inspection method and device, storage medium and electronic equipment
CN112541746A (en) * 2020-12-25 2021-03-23 上海精鲲计算机科技有限公司 Full-stack automatic arrangement method and system
CN113901765A (en) * 2021-12-10 2022-01-07 深圳市明源云链互联网科技有限公司 Patrol report generation method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680612A (en) * 2013-11-27 2015-06-03 贵州电网公司信息通信分公司 Automatic IT equipment inspection method
US20170098181A1 (en) * 2015-10-06 2017-04-06 Numerica Corporation Systems and methods for dynamically generating patrol schedules based on historic demand data
CN107730013A (en) * 2017-10-16 2018-02-23 秦皇岛众迅通科技开发有限公司 The O&M methods, devices and systems of Architectural Equipment
CN108038933A (en) * 2017-12-06 2018-05-15 郑州云海信息技术有限公司 A kind of automatic detecting method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680612A (en) * 2013-11-27 2015-06-03 贵州电网公司信息通信分公司 Automatic IT equipment inspection method
US20170098181A1 (en) * 2015-10-06 2017-04-06 Numerica Corporation Systems and methods for dynamically generating patrol schedules based on historic demand data
CN107730013A (en) * 2017-10-16 2018-02-23 秦皇岛众迅通科技开发有限公司 The O&M methods, devices and systems of Architectural Equipment
CN108038933A (en) * 2017-12-06 2018-05-15 郑州云海信息技术有限公司 A kind of automatic detecting method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956408A (en) * 2019-12-09 2020-04-03 浙江浙能嘉华发电有限公司 Patrol inspection all-round duty method based on post
CN111932706A (en) * 2020-08-10 2020-11-13 北京道迩科技有限公司 Informationized inspection method and device, storage medium and electronic equipment
CN112541746A (en) * 2020-12-25 2021-03-23 上海精鲲计算机科技有限公司 Full-stack automatic arrangement method and system
CN113901765A (en) * 2021-12-10 2022-01-07 深圳市明源云链互联网科技有限公司 Patrol report generation method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109213658A (en) A kind of method for inspecting and device
CN104484273B (en) The method of testing of application program, equipment and system
CN104317618B (en) A kind of firmware partition treating method and apparatus
CN104156296A (en) System and method for intelligently monitoring large-scale data center cluster computing nodes
CN112149329B (en) Method, system, equipment and storage medium for previewing state of key equipment of nuclear power plant
CN108139965A (en) Management server and the management method using the management server
CN107015901B (en) Log analysis method and device
CN108388507A (en) Batch script testing method and device
CN102339253A (en) System and method for use in indicating execution of application code
CN111800450A (en) Multidimensional tag namespaces for cloud resource management
CN107341040A (en) A kind of collecting method and device for virtualizing cloud platform
CN110784377A (en) Method for uniformly managing cloud monitoring data in multi-cloud environment
CN105933154A (en) Management method of cloud calculation resources
CN110489317A (en) Cloud system task run method for diagnosing faults and system based on workflow
CN111181769B (en) Network topological graph drawing method, system, device and computer readable storage medium
US9218205B2 (en) Resource management in ephemeral environments
CN109683917A (en) For the method for being deployed in application server, equipment and medium will to be applied
CN115686280A (en) Deep learning model management system, method, computer device and storage medium
CN109165228A (en) Smart grid Dispatching Control System real-time data base monitoring system and method
CN105897498A (en) Business monitoring method and device
CN115471215B (en) Business process processing method and device
CN111176950A (en) Method and equipment for monitoring network card of server cluster
CN106357466A (en) Monitoring method for internet products and monitoring system
CN114598731B (en) Cluster log acquisition method, device, equipment and storage medium
CN110471730A (en) Methods of exhibiting, system, big screen system and medium based on Echarts

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115

RJ01 Rejection of invention patent application after publication