CN106095641A - A kind of monitoring methods, devices and systems - Google Patents

A kind of monitoring methods, devices and systems Download PDF

Info

Publication number
CN106095641A
CN106095641A CN201610408925.9A CN201610408925A CN106095641A CN 106095641 A CN106095641 A CN 106095641A CN 201610408925 A CN201610408925 A CN 201610408925A CN 106095641 A CN106095641 A CN 106095641A
Authority
CN
China
Prior art keywords
monitoring
index
class
use condition
new
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
CN201610408925.9A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610408925.9A priority Critical patent/CN106095641A/en
Publication of CN106095641A publication Critical patent/CN106095641A/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/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a kind of monitoring methods, devices and systems, this monitoring method is by definition monitor control index template, determine at least one monitored object, according to monitor control index template, build at least one corresponding monitor control index script for each monitored object, run at least one monitor control index script, determine at least one monitor control index of correspondence for each monitored object, according at least one monitor control index, gather state and the service condition of each monitored object.The scheme that the present invention provides achieves the extension to monitor control index.

Description

Monitoring method, device and system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a monitoring method, device, and system.
Background
In the operation process of the server, the cluster or the cloud platform, various services, components and resources are often required to be monitored so as to ensure the normal operation of the various services, components and resources in the server, the cluster or the cloud platform.
At present, monitoring equipment already determines monitoring classifications and monitoring indexes under each monitoring classification in the development process, and monitors services, components or resources by allocating the monitoring classifications, wherein although performance indexes concerned among different services, components or resources are often different, monitoring indexes corresponding to different services, components or resources under the same monitoring classification are the same. Therefore, the existing monitoring mode cannot expand the monitoring index according to the difference of services, components or resources.
Disclosure of Invention
The embodiment of the invention provides a monitoring method, a monitoring device and a monitoring system, which realize the expansion of monitoring indexes.
A monitoring method defines a monitoring index template and further comprises the following steps:
determining at least one monitoring object;
constructing at least one corresponding monitoring index script for each monitoring object according to the monitoring index template;
running the at least one monitoring index script to determine at least one corresponding monitoring index for each monitoring object;
and acquiring the state and the use condition of each monitored object according to the at least one monitoring index.
Preferably, the monitoring method further includes: defining at least one monitoring class;
the constructing at least one corresponding monitoring index script for each monitoring object according to the monitoring index template, running the at least one monitoring index script, and determining at least one corresponding monitoring index for each monitoring object includes:
constructing at least two monitoring index scripts according to the monitoring index templates;
running the at least two monitoring index scripts to define at least two monitoring indexes;
distributing at least one corresponding monitoring index for each monitoring class;
any monitoring object in the at least one monitoring object is allocated to a corresponding monitoring class;
the acquiring the state and the use condition of each monitored object according to the at least one monitoring index comprises the following steps: and acquiring the state and the use condition of each monitored object under the monitoring class according to the monitoring index under the monitoring class.
Preferably, the monitoring method further includes:
when a request for adding a new monitoring object is received, judging whether a target monitoring class matched with the new monitoring object exists according to the attribute of the new monitoring object, if so, distributing the new monitoring object to the target monitoring class, and acquiring the state and the use condition of the new monitoring object according to a monitoring index under the target monitoring class, otherwise, defining the new monitoring class for the new monitoring object and distributing a corresponding monitoring index for the new monitoring class.
Preferably, the monitoring method further includes: defining a monitoring acquisition specification;
receiving and operating a self-defined monitoring agent program according to the monitoring acquisition specification;
the collecting of the state and the use condition of each monitoring object comprises the following steps: and collecting the state and the use condition of each monitoring object by using the self-defined monitoring agent program.
Preferably, the monitoring method is applied to monitoring a cloud platform system;
the monitoring object comprises: any one or more of services, components and resources in the cloud platform system;
further comprising: when a monitoring request sent by equipment except the cloud platform system is received, determining at least one corresponding monitoring index for a monitoring object in the equipment according to the monitoring request, and acquiring the state and the use condition of the monitoring object in the equipment.
Preferably, the monitoring method further includes: setting a message queue;
and encrypting the acquired state and the use condition of the monitoring object, and transmitting the encrypted state and the use condition of the monitoring object through the message queue.
A monitoring device, comprising: a setting unit, a determining and constructing unit and an acquisition unit, wherein,
the setting unit is used for defining a monitoring index template;
the determining and constructing unit is used for determining at least one monitoring object, constructing at least one corresponding monitoring index script for each monitoring object according to the monitoring index template defined by the setting unit, operating the at least one monitoring index script and determining at least one corresponding monitoring index for each monitoring object;
the acquisition unit is used for acquiring the state and the use condition of each monitored object according to the at least one monitoring index determined by the determination and construction unit.
Preferably, the setting unit is further configured to define at least one monitoring class;
the determining and constructing unit is used for constructing at least two monitoring index scripts according to the monitoring index templates defined by the setting unit; running the at least two monitoring index scripts to define at least two monitoring indexes; distributing at least one corresponding monitoring index for each monitoring class defined by the setting unit; any monitoring object in the at least one monitoring object is allocated to a corresponding monitoring class;
the acquisition unit is used for acquiring the state and the use condition of each monitoring object distributed to each monitoring class by the determining and constructing unit according to at least one monitoring index distributed to each monitoring class by the determining and constructing unit.
Preferably, the setting unit is further configured to define a monitoring acquisition specification;
the acquisition unit is further used for receiving and running a self-defined monitoring agent program according to the monitoring acquisition specification set by the setting unit, and acquiring the state and the use condition of each monitored object by utilizing the self-defined monitoring agent program.
Preferably, the determining and constructing unit is further configured to, when a request for adding a new monitoring object is received, allocate, to the new monitoring object, a target monitoring class matching with the new monitoring object attribute.
Preferably, the setting unit is further configured to define a new monitoring class for the new monitoring object;
the determining and constructing unit is further configured to allocate a corresponding monitoring index to the new monitoring class defined by the setting unit.
Preferably, the monitoring device is connected to at least one cloud platform and at least one device of the peripheral device, and is configured to monitor any one or more of services, components, and resources in the at least one cloud platform and the at least one device of the peripheral device.
Preferably, the monitoring device further comprises: an encryption unit and a transmission unit, wherein,
the encryption unit is used for encrypting the state and the use condition of the monitored object acquired by the acquisition unit;
and the transmission unit is used for setting a message queue and transmitting the state and the use condition of the monitoring object encrypted by the encryption unit through the message queue.
A monitoring system, comprising: any of the monitoring apparatus, at least one cloud platform, and at least one device described above, wherein,
the monitoring apparatus is connected to any one or more of the at least one cloud platform and the at least one device, and configured to monitor a monitored object in the at least one cloud platform and the at least one device, where the monitored object includes: any one or more of a service, component, and resource.
The embodiment of the invention provides a monitoring method, a monitoring device and a monitoring system, wherein the monitoring method constructs at least one corresponding monitoring index script for each monitoring object by defining a monitoring index template and according to the monitoring index template, namely a user can set the monitoring index script according to the requirement of the monitoring object and determine at least one corresponding monitoring index for each monitoring object by operating at least one monitoring index script; according to at least one monitoring index, the state and the use condition of each monitoring object are collected, and the monitoring index script can be constructed according to the monitoring index template to form the monitoring index of the monitoring object, so that a user can construct the monitoring index through the monitoring index script according to the requirement of the user, and the expansion of the monitoring index is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a monitoring method provided by an embodiment of the invention;
FIG. 2 is a flow chart of a monitoring method provided by another embodiment of the invention;
FIG. 3 is a flow chart of a monitoring method provided by another embodiment of the invention;
FIG. 4 is a flow chart of a monitoring method provided by another embodiment of the invention;
fig. 5 is a schematic structural diagram of an architecture of a monitoring device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a monitoring device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a monitoring system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a monitoring method, which may include the following steps:
step 101: defining a monitoring index template;
step 102: determining at least one monitoring object;
step 103: constructing at least one corresponding monitoring index script for each monitoring object according to the monitoring index template;
step 104: running at least one monitoring index script, and determining at least one corresponding monitoring index for each monitoring object;
step 105: and acquiring the state and the use condition of each monitored object according to at least one monitoring index.
In the embodiment illustrated in fig. 1, by defining the monitoring index template, according to the monitoring index template, constructing at least one corresponding monitoring index script for each monitoring object, that is, a user may set the monitoring index script according to the requirement of the monitoring object, and by running the at least one monitoring index script, determine at least one corresponding monitoring index for each monitoring object; according to at least one monitoring index, the state and the use condition of each monitoring object are collected, and the monitoring index script can be constructed according to the monitoring index template to form the monitoring index of the monitoring object, so that a user can construct the monitoring index through the monitoring index script according to the requirement of the user, and the expansion of the monitoring index is realized.
In an embodiment of the present invention, in order to make monitoring of a monitored object more standard and prevent repeated setting of a monitoring index, the method further includes: defining at least one monitoring class; the specific implementation of step 103 and step 104 includes: constructing at least two monitoring index scripts according to the monitoring index template; running at least two monitoring index scripts to define at least two monitoring indexes; distributing at least one corresponding monitoring index for each monitoring class; allocating any monitoring object in at least one monitoring object to the corresponding monitoring class; an embodiment of step 105, comprises: and acquiring the state and the use condition of each monitored object under the monitoring class according to the monitoring index under the monitoring class. For example: defining a monitoring class 1 and a monitoring class 2, constructing a monitoring index 1, a monitoring index 2, a monitoring index 3, a monitoring index 4 and a monitoring index 5 through a monitoring index script, distributing the monitoring index 1, the monitoring index 2 and the monitoring index 3 for the monitoring class 1, distributing the monitoring index 1, the monitoring index 2, the monitoring index 4 and the monitoring index 5 for the monitoring class 2, distributing the component 1 to the lower part of the monitoring class 1 and distributing the resource 2 to the lower part of the monitoring class 2 when the monitoring index 1, the monitoring index 2 and the monitoring index 3 of the component 1 are required to be monitored and monitoring the monitoring index 1, the monitoring index 2, the monitoring index 4 and the monitoring index 5 of the resource 2 are required to be monitored, namely realizing the monitoring of the monitored object component 1 and the resource 2.
In an embodiment of the present invention, in order to perform on-demand monitoring on a newly added monitoring object, the method further includes: when a request for adding a new monitoring object is received, judging whether a target monitoring class matched with the new monitoring object exists according to the attribute of the new monitoring object, if so, distributing the new monitoring object to the target monitoring class, and acquiring the state and the use condition of the new monitoring object according to a monitoring index under the target monitoring class, otherwise, defining the new monitoring class for the new monitoring object and distributing a corresponding monitoring index for the new monitoring class, for example: if a monitoring class 1 exists at present, and the monitoring class 1 corresponds to a monitoring index 1, a monitoring index 2 and a monitoring index 3, the monitoring index 1, the monitoring index 2 and the monitoring index 3 of a monitoring object under the monitoring class 1 are acquired, and if a monitoring object is newly added as a service 3, the service 3 can be directly allocated under the monitoring class 1 when the monitoring index 1, the monitoring index 2 and the monitoring index 3 of the service 3 need to be acquired; when monitoring index 1, monitoring index 2 and monitoring index 6 of service 3 need to be collected and monitoring classes of monitoring index 1, monitoring index 2 and monitoring index 6 are not contained currently, a new monitoring class 3 needs to be defined, monitoring index 1, monitoring index 2 and monitoring index 6 are distributed for monitoring class 3, if monitoring index 6 does not exist currently, monitoring index 6 can be constructed through a monitoring index template, and therefore service 3 is distributed under monitoring class 3, and the purpose of monitoring service 3 as required can be achieved.
In an embodiment of the present invention, to further implement the extension of monitoring, the method further includes: defining a monitoring acquisition specification; receiving and operating a self-defined monitoring agent program according to a monitoring acquisition specification; an embodiment of step 105, comprises: the state and the service condition of each monitored object are collected by utilizing the self-defined monitoring agent program, the self-defined monitoring agent program can be used for collecting software for meeting monitoring collection specifications of a third party, more than one collecting unit can be set through the self-defined monitoring agent program, and the collecting efficiency can be effectively improved by collecting through a plurality of collecting units.
In an embodiment of the present invention, the monitoring method is applied to monitoring a cloud platform system; the monitoring object comprises: any one or more of services, components and resources in the cloud platform system; further comprising: when a monitoring request sent by equipment outside the cloud platform system is received, at least one corresponding monitoring index is determined for a monitoring object in the equipment according to the monitoring request, and the state and the use condition of the monitoring object in the equipment are acquired, so that the monitoring on any one or more of services, components and resources on the cloud platform is realized, the monitoring on the cloud platform can be realized, the equipment outside other cloud platforms can be monitored, and the monitoring range is effectively expanded.
In an embodiment of the present invention, in order to provide basic data for reference of an alarm device, the method further includes: setting a message queue; encrypting the collected state and the use condition of the monitored object, transmitting the encrypted state and the use condition of the monitored object through the message queue, providing the state and the use condition of the monitored object as basic data for a user to check, or providing the basic data for alarm equipment, comparing the received state and the use condition of the monitored object with a threshold value, and giving an alarm.
In another embodiment of the present invention, the following three scenarios are taken as examples to illustrate the monitoring method.
Scenario one:
performing differential monitoring on a monitored object currently possessed by the cloud platform, as shown in fig. 2, the method may include the following steps:
step 201: defining a monitoring index template, and defining at least one monitoring class and an acquisition standard;
in the step, the monitoring index template is defined mainly for a user to construct a monitoring index script according to own requirements, and the monitoring class is defined mainly for managing the monitoring objects in a standard manner, so that the monitoring objects with the same monitoring index are positioned in the same monitoring class, and the monitoring index is prevented from being repeatedly set for the monitoring objects; the collection specification is a specification set for a subsequent collection process, and according to the collection specification, a user can set a collection agent program by himself, so that monitoring extension is further achieved.
Step 202: constructing at least two monitoring index scripts according to the monitoring index template;
step 203: running at least two monitoring index scripts to define at least two monitoring indexes;
the setting of the monitoring index according to the user requirement and the monitoring object is realized through the step 202 and the step 203.
Step 204: distributing at least one corresponding monitoring index for each monitoring class;
for example: defining a monitoring class 1 and a monitoring class 2, constructing a monitoring index 1, a monitoring index 2, a monitoring index 3, a monitoring index 4 and a monitoring index 5 through a monitoring index script, distributing the monitoring index 1, the monitoring index 2 and the monitoring index 3 to the monitoring class 1, and distributing the monitoring index 1, the monitoring index 2, the monitoring index 4 and the monitoring index 5 to the monitoring class 2.
Step 205: receiving and operating a self-defined monitoring agent program according to a monitoring acquisition specification;
the step realizes that the user sets the acquisition program by himself.
Step 206: determining at least one monitoring object of the cloud platform, and allocating any monitoring object in the at least one monitoring object to a corresponding monitoring class according to the attribute of the monitoring object;
in this step, the determined monitoring object includes: any one or more of a service, component, and resource.
For example: when monitoring indexes 1, 2 and 3 of the component 1 and monitoring indexes 1, 2, 4 and 5 of the resource 2 are required to be monitored, the component 1 is allocated under the monitoring class 1, and the resource 2 is allocated under the monitoring class 2, namely, the monitoring of the monitored component 1 and the resource 2 is realized.
Step 207: judging whether all monitoring objects on the cloud platform are allocated to the corresponding monitoring classes, if so, executing the step 208; otherwise, go to step 209;
step 208: acquiring the state and the use condition of each monitoring object by using a monitoring agent program according to at least one monitoring index in the monitoring class, and executing the step 213;
step 209: defining a new first monitoring class for the monitoring object which is not allocated with the monitoring class;
step 210: distributing a monitoring index for the new first monitoring class according to the attribute of the monitoring object which is not distributed with the monitoring class;
step 211: distributing the monitoring objects which are not distributed with the monitoring classes to a new first monitoring class;
step 212: acquiring the state and the use condition of a monitoring object in a new first monitoring class by using a monitoring agent program according to the monitoring index in the new monitoring class;
the specific process from step 209 to step 211: for example, the resource 3 needs to monitor the monitoring index 2, the monitoring index 4 and the monitoring index 6, and there is no monitoring class including the monitoring index 2, the monitoring index 4 and the monitoring index 6 in the existing monitoring classes, a new monitoring class is created to allocate the monitoring index 2, the monitoring index 4 and the monitoring index 6 to the monitoring class, and the resource 3 is set under the new monitoring class, so that the monitoring of the monitored resource 3 is realized.
Step 213: encrypting the state and the use condition of the monitored monitoring object;
the step can prevent the change of the monitoring data and ensure the accuracy and the authenticity of the monitoring data.
Step 214: transmitting the state and the use condition of the encrypted monitoring object through a message queue;
step 215: and decrypting and storing the state and the use condition of the monitoring object, and providing the state and the use condition of the monitoring object to the alarm equipment.
The monitoring data is provided to the alarm device, and the reference basic data of the alarm is provided for the alarm device.
Scenario two:
performing differential monitoring on the newly added monitoring object, as shown in fig. 3, the method may include the following steps:
step 301: when a request of adding a new monitoring object to the cloud platform is received, judging whether a target monitoring class matched with the new monitoring object exists according to the attribute of the new monitoring object, if so, executing a step 302, otherwise, executing a step 303;
step 302: distributing the new monitored object to a target monitoring class, acquiring the state and the use condition of the new monitored object according to the monitoring index of the target monitoring class, and executing the step 306;
step 303: defining a new monitoring class for the new monitoring object, and configuring a corresponding monitoring index for the new monitoring class;
the process from step 301 to step 303: if a monitoring class 1 exists at present, and the monitoring class 1 corresponds to a monitoring index 1, a monitoring index 2 and a monitoring index 3, the monitoring index 1, the monitoring index 2 and the monitoring index 3 of a monitoring object under the monitoring class 1 are acquired, and if a monitoring object is newly added as a service 3, the service 3 can be directly allocated under the monitoring class 1 when the monitoring index 1, the monitoring index 2 and the monitoring index 3 of the service 3 need to be acquired; when monitoring index 1, monitoring index 2 and monitoring index 6 of service 3 need to be collected and monitoring classes of monitoring index 1, monitoring index 2 and monitoring index 6 are not contained currently, a new monitoring class 3 needs to be defined, monitoring index 1, monitoring index 2 and monitoring index 6 are distributed for monitoring class 3, if monitoring index 6 does not exist currently, monitoring index 6 can be constructed through a monitoring index template, and therefore service 3 is distributed under monitoring class 3, and the purpose of monitoring service 3 as required can be achieved.
Step 304: allocating a new monitoring object to a new monitoring class;
step 305: acquiring the state and the use condition of a new monitored object according to the monitoring index under the new monitoring class;
step 306: encrypting the state and the use condition of the monitored monitoring object;
the step can prevent the change of the monitoring data and ensure the accuracy and the authenticity of the monitoring data.
Step 307: transmitting the state and the use condition of the encrypted monitoring object through a message queue;
step 308: and decrypting and storing the state and the use condition of the monitoring object, and providing the state and the use condition of the monitoring object to the alarm equipment.
Scenario three:
for example, as shown in fig. 4, the method may include the following steps:
step 401: receiving a request for monitoring a monitoring object in equipment outside a cloud platform;
step 402: judging whether a target monitoring class matched with the monitoring object in the equipment outside the cloud platform exists or not according to the attribute of the monitoring object in the equipment outside the cloud platform, if so, executing a step 403, otherwise, executing a step 404;
step 403: distributing the monitored object in the equipment to a target monitoring class, acquiring the state and the use condition of the monitored object in the equipment according to the monitoring index in the target monitoring class, and executing step 407;
step 404: defining a new monitoring class for a monitoring object in the equipment, and configuring a corresponding monitoring index for the monitoring class in the equipment;
the process from step 402 to step 404: if the monitoring object in the equipment outside the cloud platform is the service 4, the service 4 can be directly allocated to the monitoring class 4 when the monitoring index 4, the monitoring index 5 and the monitoring index 6 of the service 4 need to be acquired; when monitoring indexes 7, 8 and 9 of monitoring object services 4 in equipment outside a cloud platform need to be collected and monitoring classes of the monitoring indexes 7, 8 and 9 do not exist at present, a new monitoring class 5 needs to be defined, the monitoring indexes 7, 8 and 9 are distributed for the monitoring class 5, if the monitoring indexes 8 and 9 do not exist at present, the monitoring indexes 8 and 9 can be constructed through a monitoring index template, and therefore the services 4 are distributed under the monitoring classes 5, and the purpose of monitoring the services 4 as required can be achieved.
Step 405: allocating the monitoring object in the equipment to a new monitoring class;
step 406: acquiring the state and the use condition of a monitored object in equipment according to a monitoring index in the equipment under a monitoring class;
step 407: encrypting the state and the use condition of the monitored monitoring object;
the step can prevent the change of the monitoring data and ensure the accuracy and the authenticity of the monitoring data.
Step 408: transmitting the state and the use condition of the encrypted monitoring object through a message queue;
step 409: and decrypting and storing the state and the use condition of the monitoring object, and providing the state and the use condition of the monitoring object to the alarm equipment.
As shown in fig. 5 and 6, an embodiment of the present invention provides a monitoring apparatus. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. From a hardware level, as shown in fig. 5, a hardware structure diagram of a device in which a monitoring apparatus according to an embodiment of the present invention is located is shown, where in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 5, the device in which the apparatus is located in the embodiment may generally include other hardware, such as a forwarding chip responsible for processing a packet, and the like. Taking a software implementation as an example, as shown in fig. 6, as a logical apparatus, the apparatus is formed by reading, by a CPU of a device in which the apparatus is located, corresponding computer program instructions in a non-volatile memory into a memory for execution. The monitoring device provided by the embodiment comprises:
a setting unit 601, a determination and construction unit 602 and an acquisition unit 603, wherein,
a setting unit 601, configured to define a monitoring index template;
a determining and constructing unit 602, configured to determine at least one monitoring object, construct at least one corresponding monitoring index script for each monitoring object according to the monitoring index template defined by the setting unit 601, run the at least one monitoring index script, and determine at least one corresponding monitoring index for each monitoring object;
the collecting unit 603 is configured to collect a state and a usage of each monitored object according to the at least one monitoring index determined by the determining and constructing unit 602.
In another embodiment of the present invention, the setting unit 601 is further configured to define at least one monitoring class;
a determining and constructing unit 602, configured to construct at least two monitoring index scripts according to the monitoring index template defined by the setting unit 601; running at least two monitoring index scripts to define at least two monitoring indexes; allocating at least one corresponding monitoring index for each monitoring class defined by the setting unit 601; allocating any monitoring object in at least one monitoring object to the corresponding monitoring class;
the acquiring unit 603 is configured to acquire, determine, by the constructing unit 602, a state and a use condition of each monitoring object allocated to each monitoring class according to at least one monitoring index allocated to each monitoring class by the determining and constructing unit 602.
In another embodiment of the present invention, the setting unit 601 is further configured to define a monitoring acquisition specification;
the collecting unit 603 is further configured to receive and run a custom monitoring agent program according to the monitoring collecting specification set by the setting unit 601, and collect the state and the use condition of each monitored object by using the custom monitoring agent program.
In another embodiment of the present invention, the determining and constructing unit 602 is further configured to, when a request for adding a new monitoring object is received, assign a target monitoring class matching the new monitoring object attribute to the new monitoring object.
In another embodiment of the present invention, the setting unit 601 is further configured to define a new monitoring class for the new monitoring object;
the determining and constructing unit 602 is further configured to allocate a corresponding monitoring index to the new monitoring class defined by the setting unit 601.
In another embodiment of the present invention, the monitoring apparatus is connected to at least one cloud platform of the peripheral and at least one device, and is configured to monitor any one or more of services, components, and resources in the at least one cloud platform of the peripheral and the at least one device.
In another embodiment of the present invention, the monitoring device further includes: an encryption unit and a transmission unit (not shown in the figure), wherein,
the encryption unit is used for encrypting the state and the use condition of the monitoring object acquired by the acquisition unit 603;
and the transmission unit is used for setting a message queue and transmitting the state and the use condition of the monitoring object encrypted by the encryption unit through the message queue.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
As shown in fig. 7, an embodiment of the present invention provides a monitoring system, including: any of the above monitoring apparatus 701, at least one cloud platform 702, and at least one device 703, wherein,
the monitoring apparatus 701 is connected to any one or more of the at least one cloud platform 702 and the at least one device 703, and is configured to monitor a monitoring object in the at least one cloud platform 702 and the at least one device 703, where the monitoring object includes: any one or more of a service, component, and resource.
In another embodiment of the present invention, the monitoring system further includes: an alert device, wherein,
a monitoring device 701, configured to transmit a state and a usage of a monitored object to an alarm apparatus;
and the alarm equipment is used for setting an alarm threshold, receiving the state and the use condition of the monitored object, and giving an alarm when the state and the use condition of the monitored object reach the alarm threshold.
According to the scheme, the embodiments of the invention have at least the following beneficial effects:
1. the monitoring index template is defined, and at least one corresponding monitoring index script is constructed for each monitoring object according to the monitoring index template, namely, a user can set the monitoring index script according to the requirement of the monitoring object, and at least one corresponding monitoring index is determined for each monitoring object by running the at least one monitoring index script; according to at least one monitoring index, the state and the use condition of each monitoring object are collected, and the monitoring index script can be constructed according to the monitoring index template to form the monitoring index of the monitoring object, so that a user can construct the monitoring index through the monitoring index script according to the requirement of the user, and the expansion of the monitoring index is realized.
2. At least one monitoring class is defined, at least two monitoring index scripts are constructed according to a monitoring index template, at least two monitoring index scripts are operated, at least two monitoring indexes are defined, corresponding at least one monitoring index is distributed for each monitoring class, any monitoring object in at least one monitoring object is distributed to the corresponding monitoring class, the monitoring objects with the same monitoring index can be distributed to the same monitoring class through the process, and therefore standardized management of the monitoring objects is achieved.
3. In the embodiment of the invention, when a request for adding a new monitoring object is received, whether a target monitoring class matched with the new monitoring object exists is judged according to the attribute of the new monitoring object, if so, the new monitoring object is allocated to the target monitoring class, the state and the use condition of the new monitoring object are collected according to the monitoring index under the target monitoring class, otherwise, the new monitoring class is defined for the new monitoring object, and the corresponding monitoring index is allocated for the new monitoring class, so that the monitoring object can be expanded, meanwhile, the new monitoring class can be defined for the newly added monitoring object, and the monitoring expansion is further realized.
4. By defining the monitoring acquisition specification, receiving and operating the self-defined monitoring agent program according to the monitoring acquisition specification, and acquiring the state and the use condition of each monitored object by using the self-defined monitoring agent program, the expansion of monitoring acquisition is realized.
5. The monitoring method provided by the embodiment of the invention can be used for monitoring the cloud platform and other equipment except the cloud platform at the same time, so that the expansion of the monitoring range is realized.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the inclusion of an element by the phrase "comprising a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A monitoring method is characterized in that a monitoring index template is defined, and the method further comprises the following steps:
determining at least one monitoring object;
constructing at least one corresponding monitoring index script for each monitoring object according to the monitoring index template;
running the at least one monitoring index script to determine at least one corresponding monitoring index for each monitoring object;
and acquiring the state and the use condition of each monitored object according to the at least one monitoring index.
2. The method of claim 1, further comprising: defining at least one monitoring class;
the constructing at least one corresponding monitoring index script for each monitoring object according to the monitoring index template, running the at least one monitoring index script, and determining at least one corresponding monitoring index for each monitoring object includes:
constructing at least two monitoring index scripts according to the monitoring index templates;
running the at least two monitoring index scripts to define at least two monitoring indexes;
distributing at least one corresponding monitoring index for each monitoring class;
any monitoring object in the at least one monitoring object is allocated to a corresponding monitoring class;
the acquiring the state and the use condition of each monitored object according to the at least one monitoring index comprises the following steps: and acquiring the state and the use condition of each monitored object under the monitoring class according to the monitoring index under the monitoring class.
3. The method of claim 2, further comprising:
when a request for adding a new monitoring object is received, judging whether a target monitoring class matched with the new monitoring object exists according to the attribute of the new monitoring object, if so, distributing the new monitoring object to the target monitoring class, and acquiring the state and the use condition of the new monitoring object according to a monitoring index under the target monitoring class, otherwise, defining the new monitoring class for the new monitoring object and distributing a corresponding monitoring index for the new monitoring class.
4. The method of claim 1,
further comprising: defining a monitoring acquisition specification;
receiving and operating a self-defined monitoring agent program according to the monitoring acquisition specification;
the collecting of the state and the use condition of each monitoring object comprises the following steps: and collecting the state and the use condition of each monitoring object by using the self-defined monitoring agent program.
5. The method according to any one of claims 1 to 4, applied to monitoring a cloud platform system;
the monitoring object comprises: any one or more of services, components and resources in the cloud platform system;
further comprising: when a monitoring request sent by equipment except the cloud platform system is received, determining at least one corresponding monitoring index for a monitored object in the equipment according to the monitoring request, and acquiring the state and the use condition of the monitored object in the equipment;
and/or the presence of a gas in the gas,
further comprising: setting a message queue;
and encrypting the acquired state and the use condition of the monitoring object, and transmitting the encrypted state and the use condition of the monitoring object through the message queue.
6. A monitoring device, comprising: a setting unit, a determining and constructing unit and an acquisition unit, wherein,
the setting unit is used for defining a monitoring index template;
the determining and constructing unit is used for determining at least one monitoring object, constructing at least one corresponding monitoring index script for each monitoring object according to the monitoring index template defined by the setting unit, operating the at least one monitoring index script and determining at least one corresponding monitoring index for each monitoring object;
the acquisition unit is used for acquiring the state and the use condition of each monitored object according to the at least one monitoring index determined by the determination and construction unit.
7. The apparatus of claim 6,
the setting unit is further used for defining at least one monitoring class;
the determining and constructing unit is used for constructing at least two monitoring index scripts according to the monitoring index templates defined by the setting unit; running the at least two monitoring index scripts to define at least two monitoring indexes; distributing at least one corresponding monitoring index for each monitoring class defined by the setting unit; any monitoring object in the at least one monitoring object is allocated to a corresponding monitoring class;
the acquisition unit is used for acquiring the state and the use condition of each monitoring object distributed to each monitoring class by the determining and constructing unit according to at least one monitoring index distributed to each monitoring class by the determining and constructing unit;
and/or the presence of a gas in the gas,
the setting unit is further used for defining a monitoring acquisition specification;
the acquisition unit is further used for receiving and running a self-defined monitoring agent program according to the monitoring acquisition specification set by the setting unit, and acquiring the state and the use condition of each monitored object by utilizing the self-defined monitoring agent program.
8. The apparatus of claim 7,
the determining and constructing unit is further configured to, when a request for adding a new monitoring object is received, allocate a target monitoring class matched with the new monitoring object attribute to the new monitoring object;
or,
the setting unit is further configured to define a new monitoring class for the new monitored object;
the determining and constructing unit is further configured to allocate a corresponding monitoring index to the new monitoring class defined by the setting unit.
9. The apparatus according to any one of claims 6 to 8, wherein the apparatus is connected to at least one cloud platform of the peripheral device and at least one device, and is configured to monitor any one or more of services, components and resources in the at least one cloud platform of the peripheral device and the at least one device;
and/or the presence of a gas in the gas,
further comprising: an encryption unit and a transmission unit, wherein,
the encryption unit is used for encrypting the state and the use condition of the monitored object acquired by the acquisition unit;
and the transmission unit is used for setting a message queue and transmitting the state and the use condition of the monitoring object encrypted by the encryption unit through the message queue.
10. A monitoring system, comprising: the monitoring device of any one of claims 6 to 9, at least one cloud platform, and at least one appliance,
the monitoring apparatus is connected to any one or more of the at least one cloud platform and the at least one device, and configured to monitor a monitored object in the at least one cloud platform and the at least one device, where the monitored object includes: any one or more of a service, component, and resource.
CN201610408925.9A 2016-06-12 2016-06-12 A kind of monitoring methods, devices and systems Pending CN106095641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610408925.9A CN106095641A (en) 2016-06-12 2016-06-12 A kind of monitoring methods, devices and systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610408925.9A CN106095641A (en) 2016-06-12 2016-06-12 A kind of monitoring methods, devices and systems

Publications (1)

Publication Number Publication Date
CN106095641A true CN106095641A (en) 2016-11-09

Family

ID=57227855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610408925.9A Pending CN106095641A (en) 2016-06-12 2016-06-12 A kind of monitoring methods, devices and systems

Country Status (1)

Country Link
CN (1) CN106095641A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656620A (en) * 2016-12-30 2017-05-10 中国银联股份有限公司 Network device monitoring processing method and system
CN107846302A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of self-adaptive agent dispositions method
CN107846303A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of monitored object automatic identification is with finding method
CN107864046A (en) * 2016-12-21 2018-03-30 贵州电网有限责任公司信息中心 A kind of adaptive differentiation monitoring method
CN108923973A (en) * 2018-07-02 2018-11-30 郑州云海信息技术有限公司 A kind of monitoring method and device
CN108965056A (en) * 2018-07-19 2018-12-07 郑州云海信息技术有限公司 A kind of implementation method that cloud platform monitoring data summarizes and device
CN109218131A (en) * 2018-09-03 2019-01-15 平安医疗健康管理股份有限公司 Method for monitoring network, device, computer equipment and storage medium
CN109245966A (en) * 2018-11-05 2019-01-18 郑州云海信息技术有限公司 The monitoring method and device of the service state of cloud platform
CN110333979A (en) * 2019-04-16 2019-10-15 中国人民银行清算总中心 The acquisition method and device of monitoring data based on CICS

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267333A (en) * 2007-06-15 2008-09-17 南京联创科技股份有限公司 Service system monitoring method for automatic collection agent change
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN104184819A (en) * 2014-08-29 2014-12-03 城云科技(杭州)有限公司 Multi-hierarchy load balancing cloud resource monitoring method
CN104375926A (en) * 2014-12-03 2015-02-25 浪潮电子信息产业股份有限公司 Alarm threshold value setting method for monitoring of large-scale server
US20150149424A1 (en) * 2012-06-07 2015-05-28 Vmware, Inc. Tracking changes that affect performance of deployed applications
CN105653425A (en) * 2015-12-28 2016-06-08 中国民航信息网络股份有限公司 Complicated event processing engine based monitoring system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267333A (en) * 2007-06-15 2008-09-17 南京联创科技股份有限公司 Service system monitoring method for automatic collection agent change
US20150149424A1 (en) * 2012-06-07 2015-05-28 Vmware, Inc. Tracking changes that affect performance of deployed applications
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN104184819A (en) * 2014-08-29 2014-12-03 城云科技(杭州)有限公司 Multi-hierarchy load balancing cloud resource monitoring method
CN104375926A (en) * 2014-12-03 2015-02-25 浪潮电子信息产业股份有限公司 Alarm threshold value setting method for monitoring of large-scale server
CN105653425A (en) * 2015-12-28 2016-06-08 中国民航信息网络股份有限公司 Complicated event processing engine based monitoring system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846302A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of self-adaptive agent dispositions method
CN107846303A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of monitored object automatic identification is with finding method
CN107864046A (en) * 2016-12-21 2018-03-30 贵州电网有限责任公司信息中心 A kind of adaptive differentiation monitoring method
CN106656620A (en) * 2016-12-30 2017-05-10 中国银联股份有限公司 Network device monitoring processing method and system
CN108923973A (en) * 2018-07-02 2018-11-30 郑州云海信息技术有限公司 A kind of monitoring method and device
CN108965056A (en) * 2018-07-19 2018-12-07 郑州云海信息技术有限公司 A kind of implementation method that cloud platform monitoring data summarizes and device
CN109218131A (en) * 2018-09-03 2019-01-15 平安医疗健康管理股份有限公司 Method for monitoring network, device, computer equipment and storage medium
CN109218131B (en) * 2018-09-03 2022-03-29 平安医疗健康管理股份有限公司 Network monitoring method and device, computer equipment and storage medium
CN109245966A (en) * 2018-11-05 2019-01-18 郑州云海信息技术有限公司 The monitoring method and device of the service state of cloud platform
CN110333979A (en) * 2019-04-16 2019-10-15 中国人民银行清算总中心 The acquisition method and device of monitoring data based on CICS

Similar Documents

Publication Publication Date Title
CN106095641A (en) A kind of monitoring methods, devices and systems
CN108370341B (en) Resource allocation method, virtual network function manager and network element management system
CN112153700B (en) Network slice resource management method and equipment
US9805140B2 (en) Striping of directed graphs and nodes with improved functionality
CN108039964B (en) Fault processing method, device and system based on network function virtualization
CN110401720B (en) Information processing method, device, system, application server and medium
US8856483B1 (en) Virtual data storage service with sparse provisioning
CN108289034B (en) A kind of fault discovery method and apparatus
CN106170947B (en) A kind of alarm information processing method, relevant device and system
CN112153085A (en) Data processing method, node and block chain system
CN110232010A (en) A kind of alarm method, alarm server and monitoring server
EP2897088A1 (en) Method and apparatus for optimum spatial clustering
WO2022142013A1 (en) Artificial intelligence-based ab testing method and apparatus, computer device and medium
CN111339141B (en) Data transmission method, block chain node equipment and medium
CN105991596A (en) Access control method and system
JP6200376B2 (en) In-vehicle information system and information processing method thereof
CN106452815B (en) A kind of informatization management method, apparatus and system
CN109902028A (en) Automated testing method, device, equipment and the storage medium of ACL characteristic
CN109298937A (en) Document analysis method and the network equipment
WO2023045552A1 (en) Service deployment method, service deployment system, electronic device, and storage medium
CN109274534A (en) A kind of monitoring and managing method and equipment, communication system of network slice
CN107276912B (en) Memory, message processing method and distributed storage system
CN104636250A (en) Cloud automatic test system and method
US7870251B2 (en) Devices, methods, and computer program products for real-time resource capacity management
CN106375372B (en) big data resource allocation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161109

WD01 Invention patent application deemed withdrawn after publication