CN114265750A - Monitoring index acquisition method and device, electronic equipment and storage medium - Google Patents

Monitoring index acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114265750A
CN114265750A CN202111611991.3A CN202111611991A CN114265750A CN 114265750 A CN114265750 A CN 114265750A CN 202111611991 A CN202111611991 A CN 202111611991A CN 114265750 A CN114265750 A CN 114265750A
Authority
CN
China
Prior art keywords
monitoring
index
oid
information
obtaining
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
CN202111611991.3A
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.)
Chinasoft Information System Engineering Co ltd
Original Assignee
Chinasoft Information System Engineering 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 Chinasoft Information System Engineering Co ltd filed Critical Chinasoft Information System Engineering Co ltd
Priority to CN202111611991.3A priority Critical patent/CN114265750A/en
Publication of CN114265750A publication Critical patent/CN114265750A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a method and a device for acquiring monitoring indexes, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a management information base of monitoring equipment to be acquired; analyzing the management information base to obtain a monitoring index; acquiring a monitoring database according to the monitoring index; acquiring an OID set corresponding to the monitoring database; acquiring a scheduling task; and inquiring an OID set in the monitoring database according to the scheduling task to obtain index information. By implementing the embodiment of the application, the corresponding index information can be directly obtained through the OID, and time and development cost are saved.

Description

Monitoring index acquisition method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data acquisition technologies, and in particular, to a method and an apparatus for acquiring monitoring indexes, an electronic device, and a computer-readable storage medium.
Background
The collection mode of the monitoring data is divided into default collection, plug-in, detection, log and embedded point according to different sources of the monitoring data. The data collector can collect relevant operation and maintenance data directly from the running system, or obtain data from the API of other systems, or monitor and control data from the system or third-party components.
The current monitoring software can realize monitoring of most manufacturer network devices, such as device ports, device models, version information, etc., because Object Identifiers (OIDs) of these devices are public, but private OID values of many manufacturers are not published and OID descriptions are not found, which brings difficulty to network device performance monitoring. Most engineers can only use tools such as MIB Walk to scan the device OIDs, and then manually analyze and test tens of thousands or even hundreds of thousands of OID values, which is a huge workload, and sometimes the scanning tools used are not appropriate, which may cause the required OID values not to be scanned, thereby consuming huge time cost and development cost, and having low efficiency.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for acquiring a monitoring index, an electronic device, and a computer-readable storage medium, which can directly obtain corresponding index information through an OID, thereby saving time and development cost.
In a first aspect, an embodiment of the present application provides a method for acquiring a monitoring index, where the method includes:
acquiring a management information base of monitoring equipment to be acquired;
analyzing the management information base to obtain a monitoring index;
acquiring a monitoring database according to the monitoring index;
obtaining an OID set corresponding to the monitoring database;
acquiring a scheduling task;
and inquiring the OID set in the monitoring database according to the scheduling task to obtain index information.
In the implementation process, the monitoring database and the OID set are obtained according to the monitoring index of the monitoring equipment and the OID corresponding to the monitoring index, so that the monitoring index and the OID can be conveniently searched in real time, the monitoring equipment can be more conveniently called, and the time and the development cost are saved.
Further, the step of obtaining the monitoring database according to the monitoring index includes:
acquiring index source information and index type information of the monitoring index;
classifying the monitoring indexes according to the index source information and the index type information to obtain a plurality of monitoring index sets;
and combining the monitoring index sets to obtain the monitoring database.
In the implementation process, the monitoring indexes are classified according to the index source information and the index type information, so that the follow-up searching of the monitoring indexes is facilitated, the time for searching the monitoring indexes is saved, and the accuracy of the searched monitoring indexes can be ensured.
Further, the step of obtaining the corresponding OID set of the monitoring database includes:
acquiring the OID corresponding to the monitoring index in the monitoring database;
and obtaining the OID set according to the OID.
In the implementation process, the OIDs of the monitoring indexes are uniformly placed in the OID set, so that the subsequent finding of the OIDs of the monitoring indexes is facilitated, and the situation that the OIDs corresponding to the monitoring indexes cannot be found is avoided.
Further, the step of obtaining the set of OIDs according to the OIDs includes:
acquiring index type information of a monitoring index corresponding to the OID;
and obtaining the OID set according to the OID with the index type information of the monitoring index.
In the implementation process, the index type information of the monitoring index is used as the label of the OID, so that the complicated process of searching the type corresponding to the OID is avoided, the OID corresponding to the monitoring index can be quickly found, and the OID searching time is saved.
Further, the step of querying the OID set in the monitoring database according to the scheduling task to obtain the index information includes:
acquiring task source information and task type information in the scheduling task;
searching a corresponding monitoring index in the monitoring database according to the task source information and the task type information;
and obtaining the index information according to the monitoring index.
In the implementation process, the task source information and the task type information in the scheduling task are mutually corresponding to those in the monitoring database, so that the corresponding monitoring indexes can be quickly found, the monitoring indexes in all the monitoring databases are not required to be traversed, and the searching speed is increased.
Further, the step of obtaining the index information according to the monitoring index includes:
obtaining the OID corresponding to the monitoring index;
and obtaining the index information according to the OID.
In the implementation process, the corresponding index information in the scheduling task can be quickly found according to the OID without traversing each OID in the OID set, and the index information, the monitoring index and the OID are completely corresponding.
Further, the step of obtaining the indicator information according to the OID includes:
obtaining an OID instruction corresponding to the OID according to the OID;
and sending the OID instruction to a server so as to enable the server to return the index information.
In the implementation process, after the desired OID is found, the OID instruction corresponding to the OID is obtained, and the index information corresponding to the monitoring index can be directly obtained without calling the monitoring index.
In a second aspect, an embodiment of the present application further provides a device for acquiring monitoring indexes, where the device includes:
the acquisition module is used for acquiring a management information base of the monitoring equipment to be acquired; the system is also used for acquiring a scheduling task;
the analysis module is used for analyzing the management information base to obtain a monitoring index;
the integration module is used for obtaining a monitoring database according to the monitoring index;
an OID set obtaining module, configured to obtain a corresponding OID set of the monitoring database;
and the query module is used for querying the OID set in the monitoring database according to the scheduling task to obtain the index information.
In the implementation process, the monitoring database and the OID set are obtained according to the monitoring index of the monitoring equipment and the OID corresponding to the monitoring index, so that the monitoring index and the OID can be conveniently searched in real time, the monitoring equipment can be more conveniently called, and the time and the development cost are saved.
In a third aspect, an electronic device provided in an embodiment of the present application includes: memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which operating instructions are stored, and when the operating instructions are executed on a computer, the computer is caused to execute the method according to any one of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to perform the method according to any one of the first aspect.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
The present invention can be implemented in accordance with the content of the specification, and the following detailed description of the preferred embodiments of the present application is made with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a monitoring index acquisition method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural component diagram of a monitoring index acquisition device provided in an embodiment of the present application;
fig. 3 is a schematic structural component diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The following detailed description of embodiments of the present application will be described in conjunction with the accompanying drawings and examples. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Example one
Fig. 1 is a schematic flow chart of a monitoring index acquisition method provided in an embodiment of the present application, and as shown in fig. 1, the method includes:
s1, acquiring a management information base of the monitoring equipment to be acquired;
s2, analyzing the management information base to obtain a monitoring index;
s3, acquiring a monitoring database according to the monitoring index;
s4, obtaining the corresponding OID set of the monitoring database;
s5, acquiring a scheduling task;
and S6, inquiring an OID set in the monitoring database according to the scheduling task to obtain index information.
In the implementation process, the monitoring database and the OID set are obtained according to the monitoring index of the monitoring equipment and the OID corresponding to the monitoring index, so that the monitoring index and the OID can be conveniently searched in real time, the monitoring equipment can be more conveniently called, and the time and the development cost are saved.
The monitoring index collection mode is mainly divided into default collection, plug-in, detection, log and embedded point according to different monitoring data sources. The data collector is generally a data collection and data reporting tool supporting a plug-in mechanism. It can collect relevant operation and maintenance data directly from the system operated by itself, or obtain data from the API of other systems, or monitor and control data from the system or third-party components.
The collector determines the source of the monitoring data, and the quality of the collector determines the coverage, data quality and timeliness of the monitoring data. A good monitoring system should be equipped with a large number of collectors for common technical scenarios and provide a convenient custom data interface. The monitoring data of the standard scene accounts for about 70% of all the monitoring data, the holding cost of the monitoring system can be greatly reduced by a large number of collectors, the user-defined monitoring data accounts for about 30% of all the monitoring data, a user-defined monitoring data interface which is well designed can better schedule, organize and collect user-defined data sources, and the foundation of a subsequent secondary development work tamping project is achieved.
A Management Information Base (MIB) is one of the contents of two network Management Protocol standard frameworks, namely, Transmission Control Protocol (TCP) and Internet Protocol (IP), and defines data items that must be stored by a managed device, operations allowed to be performed on each data item, and meanings of the data items, that is, data variables such as Control and status Information of the managed device accessible by a Management system are stored in the MIB. It is a database of a numerical structure and each object under management is identified by a unique OID.
Any one of the managed resources can be represented as an object, referred to as a managed object. The MIB is a collection of managed objects. It defines a series of attributes of the managed object: name of the object, access rights of the object, data type of the object, and the like. Illustratively, the managed object may be a monitoring device.
Each Simple Network Management Protocol (SNMP) device has its own MIB. The MIB can also be considered as a bridge between a Network Management System (NMS) and the SNMP.
Optionally, the management terminal is a JAVA engineering integration SNMP4j, manages the MIB, and performs operations with the SNMP through the tool class and the agent terminal.
The agent end installs NET-SNMP components for the managed objects, and the Net-SNMP is the most widely deployed SNMP implementation scheme in the embedded system and is also the best scheme. The method has the characteristics of stable performance, small server consumption performance and simple deployment and implementation.
Further, S3 includes:
acquiring index source information and index type information of a monitoring index;
classifying the monitoring indexes according to the index source information and the index type information to obtain a plurality of monitoring index sets;
and combining the plurality of monitoring index sets to obtain a monitoring database.
Optionally, the monitoring index set further includes set information, such as a set name and a set ID.
In the implementation process, the monitoring indexes are classified according to the index source information and the index type information, so that the follow-up searching of the monitoring indexes is facilitated, the time for searching the monitoring indexes is saved, and the accuracy of the searched monitoring indexes can be ensured.
Further, S4 includes:
acquiring an OID corresponding to a monitoring index in a monitoring database;
and obtaining an OID set according to the OID.
In the implementation process, the OIDs of the monitoring indexes are uniformly placed in the OID set, so that the subsequent finding of the OIDs of the monitoring indexes is facilitated, and the situation that the OIDs corresponding to the monitoring indexes cannot be found is avoided.
Illustratively, shown as OID set as table 1.
TABLE 1OID set schematic
Monitoring index name OID Memory unit Set ID
Total size of hard disk 1.3.6.1.2.1.25.2.3.1.5 KB 1
Used size of magnetic disk 1.3.6.1.2.1.25.2.3.1.6 KB 1
Disk type 1.3.6.1.2.1.25.2.3.1.2 1
CPU utilization 1.3.6.1.2.1.25.3.3.1.2 2
Further, the step of obtaining the OID set according to the OID includes:
acquiring index type information of a monitoring index corresponding to the OID;
and obtaining the OID set according to the OID with the index type information of the monitoring index.
Illustratively, table 2 is shown as a monitoring metrics set.
Table 2 monitoring index set schematic table
Collection name Collection mark Source Type (B) Set ID
Hard disk information DISK Clear and Hua same side CA2800E 1
CPU information CPU Clear and Hua same side CA2800E 2
Hard disk information DISK Meipu (Meipu) NS3320-52 3
In the implementation process, the index type information of the monitoring index is used as the label of the OID, so that the complicated process of searching the type corresponding to the OID is avoided, the OID corresponding to the monitoring index can be quickly found, and the OID searching time is saved.
Further, S6 includes:
acquiring task source information and task type information in a scheduling task;
searching a corresponding monitoring index in a monitoring database according to the task source information and the task type information;
and obtaining index information according to the monitoring index.
In the implementation process, the task source information and the task type information in the scheduling task are mutually corresponding to those in the monitoring database, so that the corresponding monitoring indexes can be quickly found, the monitoring indexes in all the monitoring databases are not required to be traversed, and the searching speed is increased.
Further, the step of obtaining the index information according to the monitoring index includes:
obtaining an OID corresponding to the monitoring index;
and obtaining index information according to the OID.
In the implementation process, the corresponding index information in the scheduling task can be quickly found according to the OID without traversing each OID in the OID set, and the index information, the monitoring index and the OID are completely corresponding.
Illustratively, index information is as represented by 3.
TABLE 3 indicator information schematic table
IP monitoring equipment Source Type (B) SNMP version SNMP port
192.16.1.2 Clear and Hua same side CA2800E 1 161
Further, the step of obtaining the index information according to the OID includes:
obtaining an OID instruction corresponding to the OID according to the OID;
and sending an OID instruction to the server so as to enable the server to return the index information.
In the implementation process, after the desired OID is found, the OID instruction corresponding to the OID is obtained, and the index information corresponding to the monitoring index can be directly obtained without calling the monitoring index.
And deploying a collector in an isolated domain, wherein optionally, the collector is NMS, scheduling through a scheduling task, inputting an IP (Internet protocol) of a managed object, and sending a monitoring request to a managed physical machine through an SNMP (simple network management protocol). The method comprises the following steps of (1) acquiring managed objects in turn, enabling one monitoring index to correspond to one OID, and obtaining data corresponding to the index once by sending an OID instruction: for example, the disk total size data is obtained by sending the disk total size instruction once, and the CPU utilization data is obtained by sending the CPU utilization OID instruction once.
Example two
In order to implement the method corresponding to the above embodiment to achieve the corresponding functions and technical effects, the following provides a monitoring index collecting device, as shown in fig. 2, the device includes:
the acquisition module 1 is used for acquiring a management information base of the monitoring equipment to be acquired; the system is also used for acquiring a scheduling task;
the analysis module 2 is used for analyzing the management information base to obtain a monitoring index;
the integration module 3 is used for obtaining a monitoring database according to the monitoring index;
an OID set obtaining module 4, configured to obtain a corresponding OID set of the monitoring database;
and the query module 5 is used for querying the OID set in the monitoring database according to the scheduling task to obtain the index information.
In the implementation process, the monitoring database and the OID set are obtained according to the monitoring index of the monitoring equipment and the OID corresponding to the monitoring index, so that the monitoring index and the OID can be conveniently searched in real time, the monitoring equipment can be more conveniently called, and the time and the development cost are saved.
Further, the integration module 3 is also configured to:
acquiring index source information and index type information of a monitoring index;
classifying the monitoring indexes according to the index source information and the index type information to obtain a plurality of monitoring index sets;
and combining the plurality of monitoring index sets to obtain a monitoring database.
In the implementation process, the monitoring indexes are classified according to the index source information and the index type information, so that the follow-up searching of the monitoring indexes is facilitated, the time for searching the monitoring indexes is saved, and the accuracy of the searched monitoring indexes can be ensured.
Further, the OID set obtaining module 4 is further configured to:
acquiring an OID corresponding to a monitoring index in a monitoring database;
and obtaining an OID set according to the OID.
In the implementation process, the OIDs of the monitoring indexes are uniformly placed in the OID set, so that the subsequent finding of the OIDs of the monitoring indexes is facilitated, and the situation that the OIDs corresponding to the monitoring indexes cannot be found is avoided.
Further, the OID set obtaining module 4 is further configured to:
acquiring index type information of a monitoring index corresponding to the OID;
and obtaining the OID set according to the OID with the index type information of the monitoring index.
In the implementation process, the index type information of the monitoring index is used as the label of the OID, so that the complicated process of searching the type corresponding to the OID is avoided, the OID corresponding to the monitoring index can be quickly found, and the OID searching time is saved.
Further, the query module 5 is further configured to:
acquiring task source information and task type information in a scheduling task;
searching a corresponding monitoring index in a monitoring database according to the task source information and the task type information;
and obtaining index information according to the monitoring index.
In the implementation process, the task source information and the task type information in the scheduling task are mutually corresponding to those in the monitoring database, so that the corresponding monitoring indexes can be quickly found, the monitoring indexes in all the monitoring databases are not required to be traversed, and the searching speed is increased.
Further, the query module 5 is further configured to:
obtaining an OID corresponding to the monitoring index;
acquiring index information according to the OID;
obtaining an OID instruction corresponding to the OID according to the OID;
and sending an OID instruction to the server so as to enable the server to return the index information.
In the implementation process, the corresponding index information in the scheduling task can be quickly found according to the OID without traversing each OID in the OID set, and the index information, the monitoring index and the OID are completely corresponding. And after the desired OID is found, the OID instruction corresponding to the OID is obtained, the monitoring index is not required to be called, and the index information corresponding to the monitoring index can be directly obtained.
The above-mentioned monitoring index collecting device can implement the method of the first embodiment. The alternatives in the first embodiment are also applicable to the present embodiment, and are not described in detail here.
The rest of the embodiments of the present application may refer to the contents of the first embodiment, and in this embodiment, details are not repeated.
EXAMPLE III
The embodiment of the application provides an electronic device, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor runs the computer program to enable the electronic device to execute the monitoring index acquisition method of the first embodiment.
Alternatively, the electronic device may be a server.
Referring to fig. 3, fig. 3 is a schematic structural composition diagram of an electronic device according to an embodiment of the present disclosure. The electronic device may include a processor 31, a communication interface 32, a memory 33, and at least one communication bus 34. Wherein the communication bus 34 is used for realizing direct connection communication of these components. The communication interface 32 of the device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The processor 31 may be an integrated circuit chip having signal processing capabilities.
The Processor 31 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 31 may be any conventional processor or the like.
The Memory 33 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 33 stores computer-readable operating instructions which, when executed by the processor 31, cause the apparatus to perform the steps associated with the method embodiment of fig. 1 described above.
Optionally, the electronic device may further include a memory controller, an input output unit. The memory 33, the memory controller, the processor 31, the peripheral interface, and the input/output unit are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses 34. The processor 31 is adapted to execute executable modules stored in the memory 33, such as software functional modules or computer programs comprised by the device.
The input and output unit is used for providing a task for a user to create and start an optional time period or preset execution time for the task creation so as to realize the interaction between the user and the server. The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 3 or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
In addition, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for acquiring a monitoring index according to the first embodiment is implemented.
Embodiments of the present application further provide a computer program product, which when running on a computer, causes the computer to execute the method described in the method embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable operational instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer-executable instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including a plurality of operating instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
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, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for collecting monitoring indexes is characterized by comprising the following steps:
acquiring a management information base of monitoring equipment to be acquired;
analyzing the management information base to obtain a monitoring index;
acquiring a monitoring database according to the monitoring index;
obtaining an OID set corresponding to the monitoring database;
acquiring a scheduling task;
and inquiring the OID set in the monitoring database according to the scheduling task to obtain index information.
2. The method for collecting monitoring index according to claim 1, wherein the step of obtaining the monitoring database according to the monitoring index comprises:
acquiring index source information and index type information of the monitoring index;
classifying the monitoring indexes according to the index source information and the index type information to obtain a plurality of monitoring index sets;
and combining the monitoring index sets to obtain the monitoring database.
3. The method according to claim 1, wherein the step of obtaining the corresponding OID set of the monitoring database comprises:
acquiring the OID corresponding to the monitoring index in the monitoring database;
and obtaining the OID set according to the OID.
4. The method for acquiring monitoring indicators according to claim 3, wherein the step of obtaining the set of OIDs from the OIDs comprises:
acquiring index type information of a monitoring index corresponding to the OID;
and obtaining the OID set according to the OID with the index type information of the monitoring index.
5. The method according to claim 1, wherein the step of querying the OID set in the monitoring database according to the scheduling task to obtain the index information includes:
acquiring task source information and task type information in the scheduling task;
searching a corresponding monitoring index in the monitoring database according to the task source information and the task type information;
and obtaining the index information according to the monitoring index.
6. The method according to claim 5, wherein the step of obtaining the index information according to the monitoring index includes:
obtaining the OID corresponding to the monitoring index;
and obtaining the index information according to the OID.
7. The method according to claim 6, wherein the step of obtaining the index information according to the OID comprises:
obtaining an OID instruction corresponding to the OID according to the OID;
and sending the OID instruction to a server so as to enable the server to return the index information.
8. An acquisition device for monitoring indicators, the device comprising:
the acquisition module is used for acquiring a management information base of the monitoring equipment to be acquired; the system is also used for acquiring a scheduling task;
the analysis module is used for analyzing the management information base to obtain a monitoring index;
the integration module is used for obtaining a monitoring database according to the monitoring index;
an OID set obtaining module, configured to obtain a corresponding OID set of the monitoring database;
and the query module is used for querying the OID set in the monitoring database according to the scheduling task to obtain the index information.
9. An electronic device, comprising a memory for storing a computer program and a processor for operating the computer program to make the electronic device execute the method for collecting monitoring index according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the monitoring index acquisition method according to any one of claims 1 to 7.
CN202111611991.3A 2021-12-27 2021-12-27 Monitoring index acquisition method and device, electronic equipment and storage medium Pending CN114265750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111611991.3A CN114265750A (en) 2021-12-27 2021-12-27 Monitoring index acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111611991.3A CN114265750A (en) 2021-12-27 2021-12-27 Monitoring index acquisition method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114265750A true CN114265750A (en) 2022-04-01

Family

ID=80830331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111611991.3A Pending CN114265750A (en) 2021-12-27 2021-12-27 Monitoring index acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114265750A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914033A (en) * 2022-11-24 2023-04-04 中兴***技术有限公司 Method and device for monitoring equipment information, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914033A (en) * 2022-11-24 2023-04-04 中兴***技术有限公司 Method and device for monitoring equipment information, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109388566B (en) Code coverage rate analysis method, device, equipment and storage medium
RU2378689C2 (en) Network control system and method
CN104717085B (en) A kind of daily record analysis method and device
CN108521339B (en) Feedback type node fault processing method and system based on cluster log
CN106844645B (en) Power communication equipment information inquiry system
CN108200111B (en) Resource configuration information updating method and device and resource interface equipment
WO2019223062A1 (en) Method and system for processing system exceptions
CN105323085A (en) Processing method and device for establishing performance measurement task and performance measurement result
CN101667932B (en) Method of network element equipment log management and device
CN106557419B (en) Program testing method and device
CN114265750A (en) Monitoring index acquisition method and device, electronic equipment and storage medium
CN112600719A (en) Alarm clustering method, device and storage medium
CN110502558B (en) Data export method, device, computer equipment and storage medium
CN115104336A (en) Tracking and publishing data for generating analytics
CN107204868B (en) Task operation monitoring information acquisition method and device
CN107330031B (en) Data storage method and device and electronic equipment
CN114253995A (en) Data tracing method, device, equipment and computer readable storage medium
CN103532737A (en) Method, device and system for processing various types of alarms
CN112152824A (en) Performance index data acquisition method and device
CN112291085B (en) Fault positioning method, device, equipment and medium
CN113238901A (en) Multi-device automatic testing method and device, storage medium and computer device
CN114860543A (en) Anomaly detection method, device, equipment and computer readable storage medium
CN113778831A (en) Data application performance analysis method, device, equipment and medium
CN113407541A (en) Data acquisition method, data acquisition equipment, storage medium and device
CN112954082A (en) Domain name registration IP address query method and device

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