CN107566212B - Resource monitoring management method and device - Google Patents

Resource monitoring management method and device Download PDF

Info

Publication number
CN107566212B
CN107566212B CN201710744479.3A CN201710744479A CN107566212B CN 107566212 B CN107566212 B CN 107566212B CN 201710744479 A CN201710744479 A CN 201710744479A CN 107566212 B CN107566212 B CN 107566212B
Authority
CN
China
Prior art keywords
resource
monitored
monitoring
resources
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710744479.3A
Other languages
Chinese (zh)
Other versions
CN107566212A (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.)
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 CN201710744479.3A priority Critical patent/CN107566212B/en
Publication of CN107566212A publication Critical patent/CN107566212A/en
Application granted granted Critical
Publication of CN107566212B publication Critical patent/CN107566212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a resource monitoring and managing method and device. To network resource management techniques; the problems of large workload and low efficiency when a plurality of different resource monitoring tasks are added in the conventional resource adding mode are solved. The method comprises the following steps: receiving a batch resource import file, wherein the batch resource monitoring unit comprises at least one monitored resource; analyzing the batch resource import file to obtain resource type information of each monitored resource; starting a corresponding scanning script to scan the monitored resources according to the information of the data types, and acquiring the information of each monitored resource; and adding the monitored resources into a system, and monitoring the monitored resources. The technical scheme provided by the invention is suitable for resource management of the cloud platform, and realizes automatic import of batch monitoring tasks of different types of resources.

Description

Resource monitoring management method and device
Technical Field
The present invention relates to network resource management technologies, and in particular, to a method and an apparatus for resource monitoring and management.
Background
With the wide application of cloud platform resource management systems such as a wave cloud OS and the like, the types of resources monitored by the system are more and more, and the business processing capacity of the cloud monitoring system is higher and higher, because the monitoring modes, user names, passwords and other configuration information of each resource small type are different, when monitoring resources are added, a user needs to perform one adding operation on the first resource to be added, generally, in a resource adding module, the user selects the resource small type of the resources, the system displays the configuration information of the resource small type to the user, the user needs to input the IP or IP section, the resource name and the configuration information of the resources, the system scans the IP and the configuration information input by the user, and after the scanning is successful, the resources are added into the cloud monitoring system.
When a user needs to monitor a large amount of resources, especially needs to add a plurality of small types of services with resources, the adding operation forms a huge workload. The existing adding mode is not suitable for monitoring batch business resources, and limits are caused to complex business management of a cloud platform resource management system.
Disclosure of Invention
In order to solve the technical problems, the invention provides a resource monitoring management access and device, which starts scanning and adding of monitored resources of corresponding resource types by identifying resource type information of each monitored resource in a batch resource import file, realizes batch management of multiple resource monitoring tasks of different types, and solves the problems of large workload and low efficiency when multiple different resource monitoring tasks are added in the existing resource adding mode.
In order to achieve the purpose of the invention, the invention provides a resource monitoring and management method, which comprises the following steps:
receiving a batch resource import file, wherein the batch resource monitoring unit comprises at least one monitored resource;
analyzing the batch resource import file to obtain resource type information of each monitored resource;
starting a corresponding scanning script to scan the monitored resources according to the information of the data types, and acquiring the information of each monitored resource;
and adding the monitored resources into a system, and monitoring the monitored resources.
Preferably, the method further comprises:
when a monitored resource adding request is received, generating a template file containing monitored resource information of at least one resource type according to at least one resource type related to the monitored resource which is requested to be added and carried in the monitored resource request;
and returning the template file, and indicating to generate a batch resource import file containing the monitored resource requested to be added according to the template file.
Preferably, the information of the monitored resource specifically includes at least any one or any plurality of the following data:
resource IP, resource name and resource corresponding configuration information.
Preferably, after the step of starting a corresponding scanning script to scan the monitored resources according to the material type information and acquiring information of each monitored resource, the method further includes:
outputting the obtained at least one monitored resource;
receiving an acknowledgement message indicating to monitor some or all of the at least one monitored resource.
Preferably, the step of adding the monitored resource to the system and monitoring the monitored resource specifically includes:
and adding part or all of at least one monitored resource indicated in the confirmation message into the system for monitoring.
The invention also provides a resource monitoring and managing device, which comprises:
the batch resource monitoring unit comprises a batch file receiving module, a batch resource monitoring module and a batch resource monitoring module, wherein the batch file receiving module is used for receiving a batch resource import file;
the type determining module is used for analyzing the batch resource import file to obtain resource type information of each monitored resource;
the scanning module is used for starting a corresponding scanning script to scan the monitored resources according to the information of the material types and acquiring the information of each monitored resource;
and the monitoring object management module is used for adding the monitored resources into the system and monitoring the monitored resources.
Preferably, the apparatus further comprises:
a template providing module, configured to generate, when a request for adding a monitored resource is received, a template file containing monitored resource information of at least one resource type according to at least one resource type related to the monitored resource requested to be added, where the resource type is carried in the monitored resource request,
and returning the template file, and indicating to generate a batch resource import file containing the monitored resource requested to be added according to the template file.
Preferably, the information of the monitored resource specifically includes at least any one or any plurality of the following data:
resource IP, resource name and resource corresponding configuration information.
Preferably, the apparatus further comprises:
a scanning result output module, configured to output the obtained at least one monitored resource;
and the result screening module is used for receiving a confirmation message, and the confirmation message indicates that part or all of the at least one monitored resource is monitored.
Preferably, the monitored object management module is specifically configured to add part or all of at least one monitored resource indicated in the confirmation message to the system for monitoring.
The invention provides a resource monitoring management method and a resource monitoring management device, wherein when a batch resource import file containing monitored resources of different resource types is received, the batch resource import file is firstly analyzed to obtain resource type information of each monitored resource, then a corresponding scanning script is started according to the resource type information to scan the monitored resources to obtain the information of each monitored resource, and then the monitored resources are added, and monitoring of newly added monitored resources can be carried out on the basis. The method and the device realize automatic import of batch monitoring tasks of different types of resources and solve the problems of large workload and low efficiency when a plurality of different resource monitoring tasks are added in the conventional resource adding mode.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic flowchart of a resource monitoring management method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a resource monitoring and managing apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an implementation principle of a resource monitoring and managing apparatus according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
When a user needs to monitor a large amount of resources, especially needs to add a plurality of small types of services with resources, the adding operation forms a huge workload. The existing adding mode is not suitable for monitoring batch business resources, and limits are caused to complex business management of a cloud platform resource management system.
Based on the above problems, embodiments of the present invention provide a resource monitoring management method and apparatus, when a user needs to add multiple different types of monitored resources, a template supporting all related resource types is generated, and the user is instructed to generate a corresponding batch resource import file according to the template, and the system scans and adds the monitored resources to the system according to resource type information of each monitored resource in the batch resource configuration file. The method can rapidly realize the batch import of the small types of resources of different resources, save the resource adding time of a user, and improve the usability of the resource addition, thereby realizing the business of the cloud resource management system.
First, a first embodiment of the present invention will be described with reference to the drawings.
The embodiment of the invention provides a resource monitoring management method, and the flow of completing the monitoring task adding of different types of resources by using the method is shown in figure 1, and comprises the following steps:
step 101, when a request for adding monitored resources is received, generating a template file containing monitored resource information of at least one resource type according to at least one resource type related to the monitored resources requested to be added and carried in the monitored resource request;
in this step, when a user needs to add monitored resources of different resource types, a request for adding the monitored resources is sent to the system, and the monitored resource request carries at least one resource type related to the monitored resources requested to be added. Specifically, the user can click the type of the resource to be added through the operation interface to realize the sending of the request for adding the monitored resource.
102, returning the template file, and indicating to generate a batch resource import file containing the monitored resource requested to be added according to the template file;
in this step, the system outputs the generated template file, and in the template file, the data format included in the information of the monitored resource under each resource type is determined, and the user is instructed to edit and generate a batch resource import file including the information of the monitored resource according to the template file.
Step 103, receiving a batch resource import file, where the batch resource monitoring unit includes at least one monitored resource.
Step 104, analyzing the batch resource import file to obtain resource type information of each monitored resource;
in this step, the batch resource import file is analyzed according to each resource type.
105, starting a corresponding scanning script to scan the monitored resources according to the information of the data types, and acquiring the information of each monitored resource;
the information of the monitored resource specifically at least comprises any one or more of the following data:
resource IP, resource name and resource corresponding configuration information.
In this step, a corresponding scanning script is called to scan the monitored resource, and information of the monitored resource of different resource types is obtained.
Step 106, outputting the obtained at least one monitored resource;
in this step, the scanning result is output and can be presented through a user interface for further selection and confirmation by the user.
Step 107, receiving a confirmation message, wherein the confirmation message indicates to monitor part or all of the at least one monitored resource;
in this step, a confirmation message returned by the user is received, where the confirmation message indicates to monitor all or part of the at least one monitored resource output in step 106.
Step 108, adding the monitored resources into a system, and monitoring the monitored resources;
in this step, a part or all of at least one monitored resource indicated in the acknowledgement message is specifically added to the system for monitoring.
The second embodiment of the present invention will be described below with reference to the drawings.
An embodiment of the present invention provides a resource monitoring and management apparatus, whose structure is shown in fig. 2, including:
a batch file receiving module 201, configured to receive a batch resource import file, where a batch resource monitoring unit includes at least one monitored resource;
a type determining module 202, configured to parse the batch resource import file to obtain resource type information of each monitored resource;
the scanning module 203 is configured to start a corresponding scanning script to scan the monitored resources according to the information of the material type, and obtain information of each monitored resource;
and the monitored object management module 204 is configured to add the monitored resource to the system, and monitor the monitored resource.
Preferably, the apparatus further comprises:
a template providing module 205, configured to, when receiving a request for adding a monitored resource, generate a template file containing monitored resource information of at least one resource type according to at least one resource type related to a monitored resource requested to be added and carried in the monitored resource request,
and returning the template file, and indicating to generate a batch resource import file containing the monitored resource requested to be added according to the template file.
Preferably, the information of the monitored resource specifically includes at least any one or any plurality of the following data:
resource IP, resource name and resource corresponding configuration information.
Preferably, the apparatus further comprises:
a scanning result output module 206, configured to output the acquired at least one monitored resource;
a result screening module 207, configured to receive an acknowledgement message indicating that part or all of the at least one monitored resource is monitored.
Preferably, the monitored object management module 204 is specifically configured to add part or all of the at least one monitored resource indicated in the confirmation message to the system for monitoring.
The third embodiment of the present invention will be described below with reference to the accompanying drawings.
An embodiment of the present invention provides a resource monitoring and managing apparatus, as shown in fig. 3, including: the system comprises a template downloading module, a template uploading module, a resource scanning module and a resource adding module.
1) A template import module: if the user needs to add monitored resources of different resource types in batch, different resource types can be selected, the system can generate a template according to the resource types selected by the user and provide the generated template for the user to download to the local, and the user can add various data format contents of different resource types in the template, such as adding of resource IP, resource names and corresponding resource configurations.
2) And uploading the filled template serving as a batch resource import file to a system by a user for resource scanning.
3) The system analyzes the batch resource import file uploaded by the user. Firstly, calling a scanning script of the resource type according to the resource type information in the template, scanning the monitored resources under the resource type one by one until all the monitored resources under all the resource types are completely scanned, and displaying the information of the monitored resources obtained by scanning to a user for the user to add.
4) And finally selecting the monitored resource to be added by the user aiming at the scanned monitored resource, adding the corresponding monitored resource into the system by the system according to the selection of the user, and displaying the information of successful or failed addition to the user.
The embodiment of the invention provides a resource monitoring management method and a resource monitoring management device, when a batch resource import file containing monitored resources of different resource types is received, the batch resource import file is firstly analyzed to obtain resource type information of each monitored resource, then a corresponding scanning script is started to scan the monitored resources according to the resource type information to obtain the information of each monitored resource, the monitored resources are further added, and monitoring on the newly added monitored resources can be carried out on the basis. The method and the device realize batch monitoring task import of different types of resources and solve the problems of large workload and low efficiency when a plurality of different resource monitoring tasks are added in the conventional resource adding mode.
In a cloud monitoring system, the embodiment of the invention provides templates of monitored resources of different resource types for batch import, a user only needs to select the type of the resource to be added, the system automatically generates the template of the resource type selected by the user, the user downloads the template to the local, fills information of the monitored resource into the template according to the content of the template to obtain a batch resource import file and uploads the batch resource import file to the system, the system scans each monitored resource input by the user according to the content of the batch resource import file, displays the scanned information such as IP (Internet protocol) of the monitored resource, the resource type, the resource name and the like to the user, the user further selects whether to add the scanned monitored resource into the system for monitoring according to the content of the batch resource import file, finally, the system adds the monitored resource finally selected and confirmed by the user into the system, and displays the detailed information of the resource which is successfully and unsuccessfully added to the user, the mode of adding resources in batches in the form of the template enables a user to quickly add the resources to be monitored into the cloud monitoring system, avoids the user from inputting, scanning and adding the configuration information of tracking each resource, saves a large amount of time and energy, and has high technical value in the large-scale resource monitoring and adding process.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A resource monitoring and management method is characterized by comprising the following steps:
when a monitored resource adding request is received, generating a template file containing monitored resource information of a plurality of resource types according to the plurality of resource types related to the monitored resource which is requested to be added and carried in the monitored resource request;
returning the template file, and indicating to generate a batch resource import file containing the information of the monitored resource requested to be added according to the template file;
receiving a batch resource import file;
analyzing the batch resource import file to obtain resource type information of each monitored resource;
starting a corresponding scanning script to scan the monitored resources according to the resource type information to acquire information of each monitored resource;
and adding the monitored resources into a system, and monitoring the monitored resources.
2. The resource monitoring and management method according to claim 1, wherein the information of the monitored resource specifically includes at least any one or more of the following data:
resource IP, resource name and resource corresponding configuration information.
3. The method for resource monitoring management according to claim 1, wherein, after the step of starting a corresponding scanning script to scan the monitored resources and obtain the information of each monitored resource according to the resource type information, the method further comprises:
outputting the obtained plurality of monitored resources;
receiving an acknowledgement message indicating to monitor some or all of the plurality of monitored resources.
4. The resource monitoring and management method according to claim 3, wherein the step of adding the monitored resource to a system and monitoring the monitored resource specifically comprises:
and adding part or all of the plurality of monitored resources indicated in the confirmation message into the system for monitoring.
5. A resource monitoring management apparatus, comprising:
the template providing module is used for generating a template file containing monitored resource information of a plurality of resource types according to at least a plurality of resource types related to the monitored resource requested to be added and carried in the monitored resource request when the monitored resource adding request is received;
returning the template file, and indicating to generate a batch resource import file containing the information of the monitored resource requested to be added according to the template file;
the batch file receiving module is used for receiving batch resource import files;
the type determining module is used for analyzing the batch resource import file to obtain resource type information of each monitored resource;
the scanning module is used for starting a corresponding scanning script to scan the monitored resources according to the resource type information to acquire the information of each monitored resource;
and the monitoring object management module is used for adding the monitored resources into the system and monitoring the monitored resources.
6. The resource monitoring management device according to claim 5, wherein the information of the monitored resource specifically includes at least any one or more of the following data:
resource IP, resource name and resource corresponding configuration information.
7. The apparatus for monitoring and managing resources according to claim 5, further comprising:
a scanning result output module for outputting the obtained plurality of monitored resources;
and the result screening module is used for receiving a confirmation message, and the confirmation message indicates that part or all of the plurality of monitored resources are monitored.
8. The resource monitoring management apparatus according to claim 7,
the monitoring object management module is specifically configured to add part or all of the plurality of monitored resources indicated in the confirmation message to the system for monitoring.
CN201710744479.3A 2017-08-25 2017-08-25 Resource monitoring management method and device Active CN107566212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710744479.3A CN107566212B (en) 2017-08-25 2017-08-25 Resource monitoring management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710744479.3A CN107566212B (en) 2017-08-25 2017-08-25 Resource monitoring management method and device

Publications (2)

Publication Number Publication Date
CN107566212A CN107566212A (en) 2018-01-09
CN107566212B true CN107566212B (en) 2021-07-02

Family

ID=60977121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710744479.3A Active CN107566212B (en) 2017-08-25 2017-08-25 Resource monitoring management method and device

Country Status (1)

Country Link
CN (1) CN107566212B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448495B (en) * 2022-03-31 2023-06-13 四川安迪科技实业有限公司 Equipment batch adding method and device based on TDMA satellite network management

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7020645B2 (en) * 2001-04-19 2006-03-28 Eoriginal, Inc. Systems and methods for state-less authentication
US7516442B2 (en) * 2003-10-23 2009-04-07 Microsoft Corporation Resource manifest
CN101867494B (en) * 2010-06-18 2012-01-11 北京神州泰岳软件股份有限公司 Soft hardware performance monitoring method based on monitoring template, and system thereof
CN103490941B (en) * 2013-03-07 2016-08-03 中标软件有限公司 A kind of cloud computing environment monitors Configuration Online method in real time
CN104102480B (en) * 2013-04-11 2018-09-04 腾讯科技(深圳)有限公司 The method and apparatus for generating configuration file
CN105592122A (en) * 2014-11-03 2016-05-18 中国银联股份有限公司 Cloud platform monitoring method and cloud platform monitoring system
CN106406951B (en) * 2016-09-20 2020-02-11 新华三信息技术有限公司 Installation method and device of operating system

Also Published As

Publication number Publication date
CN107566212A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN110442524B (en) Method and device for testing web service interface with authentication authorization
CN105718540B (en) Data loading method and device
CN104461703A (en) Information processing system and information processing method
US20230025186A1 (en) Special effect synchronization method, device, and storage medium
CN113014681A (en) Network card binding method and device of multi-network card server, electronic equipment and storage medium
CN112015654A (en) Method and apparatus for testing
CN113190152A (en) Method and device for switching application program theme
CN111767229A (en) Performance test method, device and equipment
CN107368407B (en) Information processing method and device
CN107566212B (en) Resource monitoring management method and device
CN114327712A (en) Cloud application system, window management method and device
CN111435380A (en) Page cross-domain interaction method, system, device and storage device
CN111147585B (en) Equipment upgrading method, device, storage medium and system
CN113923208A (en) Processing method for downloading mass drive test data
CN113220427A (en) Task scheduling method and device, computer equipment and storage medium
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN112395204B (en) Method, system, related device and medium for obtaining test coverage rate
CN110278265B (en) Processing method and device for file uploaded by user, storage medium and electronic equipment
CN112230891A (en) Interface document integration method and device, server and computer storage medium
CN110351105B (en) Sampling configuration method and device
CN116319837B (en) File synchronization method, device and equipment supporting multiple protocols and storage medium
CN115167848A (en) Form management method and platform for mobile application
CN110022244B (en) Method and apparatus for transmitting information
CN114116049A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN115809176A (en) Log management method, log management device, electronic device, log management medium, and program product

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