CN109165136B - Terminal operation data monitoring method, terminal device and medium - Google Patents
Terminal operation data monitoring method, terminal device and medium Download PDFInfo
- Publication number
- CN109165136B CN109165136B CN201810824209.8A CN201810824209A CN109165136B CN 109165136 B CN109165136 B CN 109165136B CN 201810824209 A CN201810824209 A CN 201810824209A CN 109165136 B CN109165136 B CN 109165136B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- client
- data
- storage partition
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention is suitable for the technical field of data processing, and provides a monitoring method of terminal operation data, terminal equipment and a medium, wherein the method comprises the following steps: receiving an instance registration request which is sent by a first client and carries an area identifier; registering an instance for a first client in a preset information base based on the instance registration request, and recording an area identifier corresponding to the first client; when receiving operation data uploaded by a second client in real time, searching a region identifier corresponding to the second client in an information base, and determining a data storage partition with geographical position distribution matched with the region identifier; and storing the running data into the data storage partition so as to read and return the running data from the data storage partition when receiving a monitoring request aiming at the monitoring terminal to which the second client belongs. The invention reduces the resource consumption of the special line, thereby enabling the service data to be normally transmitted in the special line and reducing the packet loss rate of the service data in the transmission process of the special line.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a monitoring method of terminal operation data, terminal equipment and a computer readable storage medium.
Background
In the information-based construction, since the machine room is at the core position of information exchange management, all the devices in the machine room must be in an operating state at all times. Once a certain device fails, the data transmission, storage and operation of various service systems are threatened, and the operation of a global system is affected, so that huge economic loss is caused. Therefore, with the continuous development of information technology, various large enterprises start to apply different types of open source monitoring schemes to continuously monitor the operating conditions of equipment in machine rooms of the large enterprises.
In various existing open source monitoring schemes, after the running state data of the equipment is monitored, the running state data is stored in a background relational database, so that a manager can conveniently and uniformly check the running state of each equipment through a monitoring management inlet corresponding to the relational database. However, for large enterprises distributed across regions, in order to uniformly collect operation data of terminal devices distributed in each region, data transmission can be performed only through a dedicated line, and therefore, effective transmission of other service data is often affected due to excessive data traffic of the dedicated line at most of the time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for monitoring terminal operation data, a terminal device, and a computer-readable storage medium, so as to solve the problem in the prior art that when monitoring and managing terminal operation data, effective transmission of other service data is affected due to excessive data traffic of a dedicated line.
A first aspect of an embodiment of the present invention provides a method for monitoring terminal operating data, including:
receiving an instance registration request which is sent by a first client and carries an area identifier; the first client is installed on a monitoring terminal and used for collecting operation data of the monitoring terminal;
registering an instance for the first client in a preset information base based on the instance registration request, and recording the corresponding relation between the first client and the area identifier in the information base;
when the operation data uploaded by a second client in real time is received, searching an area identifier corresponding to the second client in the information base, and determining a data storage partition with geographical position distribution matched with the searched area identifier;
storing the running data into the data storage partition so as to read and return the running data from the data storage partition when receiving a monitoring request aiming at the running data of the monitoring terminal to which the second client belongs;
the second client is any one of the first clients.
A second aspect of the embodiments of the present invention provides a terminal device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the following steps when executing the computer program:
receiving an instance registration request which is sent by a first client and carries an area identifier; the first client is installed on a monitoring terminal and used for collecting operation data of the monitoring terminal;
registering an instance for the first client in a preset information base based on the instance registration request, and recording the corresponding relation between the first client and the area identifier in the information base;
when the operation data uploaded by a second client in real time is received, searching an area identifier corresponding to the second client in the information base, and determining a data storage partition with geographical position distribution matched with the searched area identifier;
storing the running data into the data storage partition so as to read and return the running data from the data storage partition when receiving a monitoring request aiming at the running data of the monitoring terminal to which the second client belongs;
the second client is any one of the first clients.
A third aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of:
receiving an instance registration request which is sent by a first client and carries an area identifier; the first client is installed on a monitoring terminal and used for collecting operation data of the monitoring terminal;
registering an instance for the first client in a preset information base based on the instance registration request, and recording the corresponding relation between the first client and the area identifier in the information base;
when the operation data uploaded by a second client in real time is received, searching an area identifier corresponding to the second client in the information base, and determining a data storage partition with geographical position distribution matched with the searched area identifier;
storing the running data into the data storage partition so as to read and return the running data from the data storage partition when receiving a monitoring request aiming at the running data of the monitoring terminal to which the second client belongs;
the second client is any one of the first clients.
In the embodiment of the invention, the client is pre-installed on the monitoring terminal, so that the client can actively report the data after acquiring the operation data of the monitoring terminal; by receiving the instance registration request with the area identification sent by the client and registering the instance for the client in advance, the method ensures that when the subsequent operation data uploaded by the client is received, the monitoring system can accurately position the position area required to store the operation data, ensures that the operation data generated by the monitoring terminals with different geographic distribution areas can be stored in the data storage subarea of the area, therefore, when checking the operation data of the monitoring terminal, the operation and maintenance personnel in the area can also quickly load the data from the local data storage partition, the core database does not need to be frequently accessed through a special line, so that the access efficiency of the running data is improved, the resource consumption of the special line is reduced, therefore, the service data can be normally transmitted in the private line, and the packet loss rate of the service data in the private line transmission process is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a method for monitoring terminal operation data according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific implementation of the method S104 for monitoring terminal operation data according to the embodiment of the present invention;
fig. 3 is a flowchart of another specific implementation of the method S104 for monitoring terminal operation data according to the embodiment of the present invention;
fig. 4 is a flowchart illustrating an implementation of a method for monitoring terminal operation data according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating an implementation of a method for monitoring terminal operation data according to another embodiment of the present invention;
fig. 6 is a block diagram of a monitoring apparatus for monitoring terminal operation data according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 shows an implementation process of a method for monitoring terminal operation data according to an embodiment of the present invention, where the method includes steps S101 to S104. The specific realization principle of each step is as follows:
s101: receiving an instance registration request which is sent by a first client and carries an area identifier; the first client is installed on a monitoring terminal and used for collecting operation data of the monitoring terminal.
The monitoring terminal is a terminal device operated in the airport, and the terminal device is in a monitored state all the time. Wherein, the inside of the monitoring terminal is pre-installed with a designated client. And carrying out remote communication connection with the monitoring terminal based on the setting parameters corresponding to the client.
In the embodiment of the invention, the client is used for collecting the operation data of the monitoring terminal. The operation data includes, but is not limited to, voltage, current, power, log information, Central Processing Unit (CPU) occupancy, port status, port flow rate, and other specific information values of monitoring items.
In the embodiment of the invention, after the client is connected with any client, if the instance registration request sent by the client is detected and carries the area identifier, the monitoring terminal to which the client belongs is determined to be the newly-added equipment to be monitored and managed. The area identifier is used to indicate a target storage area of the operation data generated by the monitoring terminal.
For the client, before sending an instance registration request, determining the area identifier according to a selection instruction sent by a terminal monitoring person in a preset area field, wherein the area field is a reserved field in a logic code corresponding to the client; or, by acquiring the real-time network address of the monitoring terminal, determining the geographic area corresponding to the network address, and further determining the area identifier for representing the geographic area.
S102: registering the instance for the first client in a preset information base based on the instance registration request, and recording the corresponding relation between the first client and the area identifier in the information base.
According to the received instance registration request, an instance corresponding to the client is registered in a preset information base, and the area identification extracted from the instance registration request is recorded in the current instance.
S103: when the operation data uploaded by the second client in real time is received, searching the area identification corresponding to the second client in the information base, and determining the data storage partition with the geographical position distribution matched with the searched area identification.
In the embodiment of the invention, after the instance registration operation of the client is completed, the long connection communication is kept with the client. And at preset time intervals, the client acquires the operation data of the monitoring terminal, so that the operation data uploaded by the client can be received at each moment.
When receiving the operation data uploaded by the client, extracting the identifier of the data source client from the data packet containing the operation data, and determining the area identifier corresponding to the client from each instance prestored in the information base.
And corresponding data storage partitions are respectively established in each geographical area to which the enterprise branch office belongs. And connecting with each data storage partition through a pre-established internal private network. Therefore, according to the pre-stored geographical location distribution of each data storage partition, the data storage partition matched with the determined area identifier can be searched.
For example, in the information base, if the region corresponding to the client is found and identified as the "Shenzhen region", the data storage partition established in the "Shenzhen region" is selected.
S104: storing the running data into the data storage partition so as to read and return the running data from the data storage partition when receiving a monitoring request aiming at the running data of the monitoring terminal to which the second client belongs; the second client is any one of the first clients.
In the embodiment of the present invention, the operation data from the monitoring terminal is stored in the data storage partition determined in step S103. When a monitoring request for the operating data of the monitoring terminal sent by the front-end equipment is received, the monitoring request is forwarded to the terminal equipment to which the data storage partition belongs, so that the terminal equipment directly returns a response data packet to the front-end equipment after generating the response data packet containing the operating data. The front-end equipment is terminal equipment used by operation and maintenance personnel when checking operation data of various monitoring terminals of the machine room.
In the embodiment of the invention, the client is pre-installed on the monitoring terminal, so that the client can actively report the data after acquiring the operation data of the monitoring terminal; by receiving the instance registration request with the area identification sent by the client and registering the instance for the client in advance, the method ensures that when the subsequent operation data uploaded by the client is received, the monitoring system can accurately position the position area required to store the operation data, ensures that the operation data generated by the monitoring terminals with different geographic distribution areas can be stored in the data storage subarea of the area, therefore, when checking the operation data of the monitoring terminal, the operation and maintenance personnel in the area can also quickly load the data from the local data storage partition, the core database does not need to be frequently accessed through a special line, so that the access efficiency of the running data is improved, the resource consumption of the special line is reduced, therefore, the service data can be normally transmitted in the private line, and the packet loss rate of the service data in the private line transmission process is reduced.
As an embodiment of the present invention, fig. 2 shows a specific implementation flow of the terminal operation data monitoring method S104 provided by the embodiment of the present invention, which is detailed as follows:
s1041: and acquiring the monitoring item type, the monitoring terminal identification and the client account information associated with the operating data.
In the embodiment of the invention, the client acquires the operation data generated by the monitoring terminal on each monitoring item respectively. The monitoring items include, but are not limited to, CPU occupancy, port status, port traffic, and the like. The monitoring item type is used for representing the monitoring item matched with the current operation data. The monitoring terminal identifier is used to indicate a device identifier of the monitoring terminal, and includes but is not limited to a hardware address (MAC), a terminal serial number, a host name, and a component identifier included in the monitoring terminal. The client account information includes, but is not limited to, an installation serial number of the client, a terminal monitoring staff account currently logged in by the client, and the like.
For the operation data uploaded by the client, according to each information field associated with the operation data, respectively reading attribute values corresponding to a 'monitoring item type' field, a 'monitoring terminal identification' field and a 'client account' field, and sequentially outputting each read attribute value as the monitoring item type, the monitoring terminal identification and the client account information.
S1042: and performing operation processing on the monitoring item type, the monitoring terminal identification and the client account information through a preset algorithm, and outputting an operation result as a unique identifier corresponding to the operation data.
Exemplarily, the preset algorithm in the embodiment of the present invention is a splicing algorithm, and then S1042 specifically is: and splicing the read information field values to obtain a spliced character string containing the monitoring item type, the monitoring terminal identification and the client account information. The concatenated string is output as a unique identifier corresponding to the currently received operational data.
For example, if the client identified by the monitoring terminal LP1600161 uploads the running data "85%" with the monitoring item type of cpu.busy, and the terminal monitoring staff account currently logged in by the client is "tan", the concatenation character string obtained based on the concatenation algorithm is "cpu.busy-LP 1600161-tan". Thus, the unique identifier corresponding to the operation data "85%" is "cpu.
In the embodiment of the invention, in the process of performing operation processing on the monitoring item type, the monitoring terminal identifier and the client account information to acquire the unique identifier corresponding to the operating data, the operation processing is performed based on other preset logic algorithms besides the splicing algorithm. For example, the above logic Algorithm may be various kinds of consistency check algorithms such as a Message Digest Algorithm (MD 5) and a hash Algorithm.
S1043: and binding and storing the running data and the unique identifier in the data storage partition, so that when a monitoring request carrying the unique identifier is received, the running data is read from the data storage partition and returned.
And binding and storing the received operation data and the unique identifier corresponding to the operation data in the data storage partition determined based on the step S103.
When a monitoring request sent by front-end equipment of a terminal monitoring person is received, the monitoring item type and the monitoring terminal identification of the operation data requested to be monitored by the terminal monitoring person are extracted from the monitoring request, and the client account information of the terminal monitoring person is read. Based on the same algorithm as in the above S1042, the currently obtained monitoring item type, monitoring terminal identifier, and client account information are subjected to arithmetic processing, so as to obtain a unique identification code corresponding to the operation data requested to be monitored by the terminal monitoring staff. Based on the unique identifier, searching operation data corresponding to the unique identifier from a data storage partition of a geographic area to which the front-end equipment belongs, and returning the operation data to the front-end equipment.
Because the traditional operation data storage mode is only based on the host name of the monitoring terminal to carry out corresponding storage, and the host name of the monitoring terminal can be modified by the terminal monitoring personnel of the monitoring terminal in a self-defining way, the operation data from different monitoring terminals can have the problem of counterfeiting, and the monitoring accuracy of the terminal equipment is reduced. For example, if a lawbreaker changes the host names of the monitoring terminal a and the monitoring terminal B to "applet", the system may misunderstand the CPU utilization of the monitoring terminal a as the operation data that the administrator needs to query and return in the process of querying the prestored CPU utilization of the monitoring terminal B. Therefore, in the embodiment of the invention, after the operation data uploaded by the client is received, the unique identifier corresponding to the operation data is bound and stored with the operation data after the data such as the monitoring item type, the monitoring terminal identification and the client account information associated with the operation data is obtained and the unique identifier corresponding to the operation data is calculated based on the data, so that the unique identifier of the operation data required to be inquired by the current terminal monitoring personnel can be accurately determined based on the legal client account information which cannot be counterfeited when the operation data inquiry request sent by the manager is received, the matched operation data is quickly positioned and returned, the condition that the operation data inquiry is wrong is avoided, and the monitoring accuracy of various terminal devices is improved.
As an embodiment of the present invention, fig. 3 shows another specific implementation flow of the terminal operation data monitoring method S104 provided in the embodiment of the present invention, which is detailed as follows:
s1044: and acquiring a local area identifier.
The local area identifier is used for indicating a geographical area to which the local area belongs. And determining a corresponding geographical area by acquiring the local network address information, and outputting an area identifier matched with the geographical area as a local area identifier.
S1045: if the local area identification is not matched with the searched area identification, searching a routing entry corresponding to the area identification in a preset routing relation table; the routing relation table is used for storing routing entries corresponding to the area identifications.
S1046: and forwarding the running data based on the searched routing entry so as to store the running data to a data storage partition matched with the area identifier after forwarding.
In the embodiment of the invention, whether the local area identifier is the same as the area identifier corresponding to the client is judged. If the judgment result is negative, the fact that the geographic area to which the client belongs is not in the local area range is indicated, and therefore the received operation data needs to be subjected to storage position transfer processing.
In the embodiment of the invention, the pre-generated routing relation table is loaded. The routing relation table is used for storing routing entries preset and corresponding to each area identifier. When the geographical area to which the client belongs is not within the local area range, a routing entry corresponding to the area identifier of the client is found out from the routing relation table, and then through the routing entry, directional transmission of data can be realized, so that the received operation data is forwarded to the geographical area matched with the area identifier through a data transmission path pointed by the routing entry, and the operation data is stored in a data storage partition set in the geographical area.
As another embodiment of the present invention, as shown in fig. 4, after the above S104, the method further includes:
s201: and if a monitoring request aiming at the monitoring terminal to which the second client belongs is received and the source port of the monitoring request is a private line interface, adding one to the historical access frequency of the running data.
In the embodiment of the invention, when the monitoring request is received, all layers of routers through which the monitoring request sequentially passes and physical ports which are accessed in all layers of routers are identified according to a preset routing tracking algorithm.
And judging whether a preset private line interface exists in a physical port where the monitoring request is accessed in each layer of router. And if so, adding one to the historical access times of the current running data to be returned, and determining the special line associated with the physical port. The historical access times represent the times of the operation and maintenance personnel accessing the operation data through the private line.
S202: and acquiring resource parameters of the private line at preset time intervals within a preset time length, wherein the resource parameters comprise a bandwidth value, a load rate and a packet loss rate.
In the embodiment of the invention, after each special line corresponding to the special line interface is determined, timing is started. And reading the bandwidth value, the load rate and the packet loss rate of the special line from a preset information base at preset time intervals until the timing value reaches a preset threshold value.
S203: and calculating the correlation coefficient of the operation data and the private line within the preset time according to the private line resource parameters and the historical access times.
For each resource parameter obtained by reading, calculating the correlation coefficient between the running data and the private line within the preset time according to the following formula:
in the above formula, REP is the correlation coefficient, AccesstolRepresenting the historical access times of the operation data within a preset time length; weight1、Weight2And Weight3Representing preset weights corresponding to the bandwidth value, the load rate and the packet loss rate respectively; t is the collection frequency of the resource parameters within a preset time length; BW (Bandwidth)i、LoadiAnd LossiRespectively showing the bandwidth value, the load rate and the packet loss rate of the special line acquired at the ith time.
S204: and if the correlation coefficient is larger than a preset threshold value, synchronizing the running data to a data storage partition matched with the opposite end area of the private line.
And if the correlation coefficient is larger than the preset threshold value, determining the opposite end area of the special line according to prestored special line connection information, and copying the operation data to a data storage partition matched with the opposite end area of the special line.
For example, if the dedicated line a is used to connect the enterprise local area network between the Shenzhen and the Zhuhain, and the local end region is the Shenzhen region, it is determined that the opposite end region of the dedicated line a is the Zhuhain region, and the locally stored running data is synchronized to the data storage partition located in the Zhuhai region.
Preferably, if the correlation coefficient is greater than a preset threshold, the operating data is synchronized to the data storage partition matched with the opposite end area of the private line within a preset time period. The preset time period is a special line flow low peak time period, so that the synchronous process of the operation data is ensured not to generate great influence on the normal transmission of other service data.
In the embodiment of the present invention, when the correlation coefficient between the operation data and the dedicated line is greater than the preset threshold, it indicates that the operation data has a higher dedicated line access amount, that is, a large number of front-end devices that need to query the operation data all originate from the opposite-end area of the dedicated line. Therefore, the problem of overlarge flow existing in a cross-region special line for a long time is solved by synchronizing the operation data to the data storage partition corresponding to the opposite-end area, so that part of front-end equipment can inquire the operation data from the local data storage partition without cross-region special line access, and the inquiry efficiency of the operation data is improved.
As another embodiment of the present invention, as shown in fig. 5, after the above S104, the method further includes:
s301: and loading a plurality of monitoring strategies corresponding to the monitoring strategy template according to the monitoring strategy template applied by the second client.
After a terminal monitoring person installs a client for acquiring operation data on a monitoring terminal, the monitoring person can select a monitoring strategy template which is required to be applied currently on a monitoring strategy setting interface provided by the client. Each monitoring strategy template comprises a plurality of preset monitoring strategies. Each monitoring strategy comprises specific conditions met by the operation data of one monitoring item type under the condition that no abnormity occurs.
In the embodiment of the invention, after the instance registration of the client is completed, the monitoring strategy setting parameters of the client are requested to be read, so that the monitoring strategy template applied by the client is identified from the monitoring strategy setting parameters, and then the corresponding relation between the client and the monitoring strategy template is stored in the preset information base.
S302: and detecting and processing the operation data based on each monitoring strategy.
In the embodiment of the invention, when each item of operation data uploaded by the client is received, the monitoring strategy template applied by the client is determined from the preset information base, and each monitoring strategy corresponding to the monitoring strategy template is read. And judging whether the operation data received at the current moment meets each monitoring strategy.
S303: and if the operation data is detected not to meet any one monitoring strategy, generating alarm information about the monitoring strategy.
For each monitoring strategy, if the operation data is detected to meet the monitoring strategy, determining that the operation data is normal; if the operation data are detected not to meet the monitoring strategy, determining that the operation data are abnormal, and generating alarm information related to the monitoring strategy so as to display the operation data and the specific content of the monitoring strategy in the alarm information.
S304: and broadcasting the alarm information to each preset monitoring management device.
In the embodiment of the invention, the monitoring management equipment is used for monitoring all-weather monitoring terminals in the machine room. The generated alarm information is broadcasted to each pre-established monitoring management device, so that the monitoring management device can perform corresponding feedback operation based on the received alarm information. For example, the releasing operation includes, but is not limited to, a voice alarm operation, a flashing operation of an alarm light, and the like.
In the embodiment of the invention, as the terminal monitoring personnel only need to set one monitoring strategy template required to be applied by the monitoring terminal in the client, the corresponding multiple monitoring strategies can be directly applied to the running data generated by the monitoring terminal, and the running data of each type does not need to be bound one by each monitoring strategy in sequence, thus the monitoring management efficiency of the monitoring terminal is improved; by loading a plurality of monitoring strategies corresponding to the monitoring strategy template, the system can realize automatic detection of abnormal operation data based on each monitoring strategy; when the operation data does not meet any monitoring strategy, the alarm information is generated and broadcast to each preset monitoring management device, so that operation and maintenance personnel can find the monitoring device with the fault in the machine room in time and perform detection processing, and the operation stability of the global system is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 6 shows a block diagram of a monitoring apparatus for monitoring terminal operation data according to an embodiment of the present invention, which corresponds to the monitoring method for terminal operation data according to an embodiment of the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the apparatus includes:
a receiving unit 61, configured to receive an instance registration request with an area identifier sent by a first client; the first client is installed on a monitoring terminal and used for collecting operation data of the monitoring terminal.
A registering unit 62, configured to register an instance for the first client in a preset information base based on the instance registration request, and record a corresponding relationship between the first client and the area identifier in the information base.
And the searching unit 63 is configured to search, when the operating data uploaded by the second client in real time is received, the area identifier corresponding to the second client in the information base, and determine a data storage partition with the geographical location distribution matched with the searched area identifier.
A storage unit 64, configured to store the operation data in the data storage partition, so as to read and return the operation data from the data storage partition when receiving a monitoring request for operation data of a monitoring terminal to which the second client belongs;
the second client is any one of the first clients.
Optionally, the storage unit 64 includes:
and the first acquisition subunit is used for acquiring the monitoring item type, the monitoring terminal identifier and the client account information which are associated with the operating data.
And the operation subunit is used for performing operation processing on the monitoring item type, the monitoring terminal identifier and the client account information through a preset algorithm and outputting an operation result as a unique identifier corresponding to the operating data.
And the storage subunit is used for binding and storing the running data and the unique identifier in the data storage partition, so that when a monitoring request carrying the unique identifier is received, the running data is read from the data storage partition and returned.
Optionally, the monitoring device for the terminal operation data further includes:
and the statistical unit is used for adding one to the historical access times of the running data if a monitoring request aiming at the monitoring terminal to which the second client belongs is received and the source port of the monitoring request is a private line interface.
The acquisition unit is used for acquiring resource parameters of the private line at preset time intervals within a preset time length, wherein the resource parameters comprise a bandwidth value, a load rate and a packet loss rate.
And the calculating unit is used for calculating the correlation coefficient between the running data and the private line within the preset time length according to the private line resource parameters and the historical access times.
And the synchronization unit is used for synchronizing the running data to a data storage partition matched with the area of the opposite end of the private line if the correlation coefficient is greater than a preset threshold value.
Optionally, the monitoring device for the terminal operation data further includes:
and the loading unit is used for loading a plurality of monitoring strategies corresponding to the monitoring strategy template according to the monitoring strategy template applied by the second client.
And the detection unit is used for detecting and processing the operation data based on each monitoring strategy.
And the generating unit is used for generating alarm information about the monitoring strategy if the operating data is detected not to meet any one monitoring strategy.
And the broadcasting unit is used for broadcasting the alarm information to each preset monitoring management device.
Optionally, the storage unit 64 includes:
the first acquisition subunit is used for acquiring a local area identifier;
a searching subunit, configured to search, if the local area identifier is not matched with the searched area identifier, a routing entry corresponding to the area identifier in a preset routing relationship table; the routing relation table is used for storing routing entries corresponding to the area identifications.
And the forwarding subunit is configured to forward the operation data based on the found routing entry, so that the operation data is forwarded and then stored in the data storage partition matched with the area identifier.
Fig. 7 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 6, the terminal device 7 of this embodiment includes: a processor 70, a memory 71 and a computer program 72 stored in said memory 71 and operable on said processor 70, such as a monitoring program for terminal operational data. The processor 70, when executing the computer program 72, implements the steps in the above-described embodiments of the method for monitoring terminal operating data, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the units 61 to 64 shown in fig. 6.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the terminal device 7.
The terminal device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a terminal device 7 and does not constitute a limitation of the terminal device 7 and may comprise more or less components than shown, or some components may be combined, or different components, for example the terminal device may further comprise input output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing the computer program and other programs and data required by the terminal device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit 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 may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes 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 usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (8)
1. A method for monitoring terminal operation data is characterized by comprising the following steps:
receiving an instance registration request which is sent by a first client and carries an area identifier; the first client is installed on a monitoring terminal and used for collecting operation data of the monitoring terminal;
registering an instance for the first client in a preset information base based on the instance registration request, and recording the corresponding relation between the first client and the area identifier in the information base;
when the operation data uploaded by a second client in real time is received, searching an area identifier corresponding to the second client in the information base, and determining a data storage partition with geographical position distribution matched with the searched area identifier;
storing the running data into the data storage partition so as to read and return the running data from the data storage partition when receiving a monitoring request aiming at the running data of the monitoring terminal to which the second client belongs;
the second client is any one of the first clients;
the method further comprises the following steps:
if a monitoring request aiming at a monitoring terminal to which the second client belongs is received and a source port of the monitoring request is a private line interface, adding one to the historical access frequency of the running data;
within a preset time length, acquiring resource parameters of a special line at preset time intervals, wherein the resource parameters comprise a bandwidth value, a load rate and a packet loss rate;
calculating the correlation coefficient between the operation data and the private line within the preset time according to the private line resource parameters and the historical access times;
and if the correlation coefficient is larger than a preset threshold value, synchronizing the running data to a data storage partition matched with the opposite end area of the private line.
2. The method of monitoring as described in claim 1, wherein said storing said operational data to said data storage partition comprises:
acquiring the type of a monitoring item, a monitoring terminal identifier and client account information associated with the operating data;
performing operation processing on the monitoring item type, the monitoring terminal identification and the client account information through a preset algorithm, and outputting an operation result as a unique identifier corresponding to the operation data;
and binding and storing the running data and the unique identifier in the data storage partition, so that when a monitoring request carrying the unique identifier is received, the running data is read from the data storage partition and returned.
3. The monitoring method of claim 1, further comprising:
loading a plurality of monitoring strategies corresponding to the monitoring strategy template according to the monitoring strategy template applied by the second client;
detecting and processing the operation data based on each monitoring strategy;
if the operation data is detected not to meet any one monitoring strategy, generating alarm information about the monitoring strategy;
and broadcasting the alarm information to each preset monitoring management device.
4. The method of monitoring as described in claim 1, wherein said storing said operational data to said data storage partition comprises:
acquiring a local area identifier;
if the local area identification is not matched with the searched area identification, searching a routing entry corresponding to the area identification in a preset routing relation table; the routing relation table is used for storing routing entries corresponding to the area identifications;
and forwarding the running data based on the searched routing entry so as to store the running data to a data storage partition matched with the area identifier after forwarding.
5. A terminal device comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor when executing the computer program implements the steps of:
receiving an instance registration request which is sent by a first client and carries an area identifier; the first client is installed on a monitoring terminal and used for collecting operation data of the monitoring terminal;
registering an instance for the first client in a preset information base based on the instance registration request, and recording the corresponding relation between the first client and the area identifier in the information base;
when the operation data uploaded by a second client in real time is received, searching an area identifier corresponding to the second client in the information base, and determining a data storage partition with geographical position distribution matched with the searched area identifier;
storing the running data into the data storage partition so as to read and return the running data from the data storage partition when receiving a monitoring request aiming at the running data of the monitoring terminal to which the second client belongs;
the second client is any one of the first clients;
the processor, when executing the computer program, further implements the steps of:
if a monitoring request aiming at a monitoring terminal to which the second client belongs is received and a source port of the monitoring request is a private line interface, adding one to the historical access frequency of the running data;
within a preset time length, acquiring resource parameters of a special line at preset time intervals, wherein the resource parameters comprise a bandwidth value, a load rate and a packet loss rate;
calculating the correlation coefficient between the operation data and the private line within the preset time according to the private line resource parameters and the historical access times;
and if the correlation coefficient is larger than a preset threshold value, synchronizing the running data to a data storage partition matched with the opposite end area of the private line.
6. The terminal device of claim 5, wherein said storing said operational data to said data storage partition comprises:
acquiring the type of a monitoring item, a monitoring terminal identifier and client account information associated with the operating data;
performing operation processing on the monitoring item type, the monitoring terminal identification and the client account information through a preset algorithm, and outputting an operation result as a unique identifier corresponding to the operation data;
and binding and storing the running data and the unique identifier in the data storage partition, so that when a monitoring request carrying the unique identifier is received, the running data is read from the data storage partition and returned.
7. The terminal device of claim 5, wherein the processor, when executing the computer program, further performs the steps of:
loading a plurality of monitoring strategies corresponding to the monitoring strategy template according to the monitoring strategy template applied by the second client;
detecting and processing the operation data based on each monitoring strategy;
if the operation data is detected not to meet any one monitoring strategy, generating alarm information about the monitoring strategy;
and broadcasting the alarm information to each preset monitoring management device.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810824209.8A CN109165136B (en) | 2018-07-25 | 2018-07-25 | Terminal operation data monitoring method, terminal device and medium |
| PCT/CN2018/105541 WO2020019437A1 (en) | 2018-07-25 | 2018-09-13 | Method and apparatus for monitoring terminal operating data, terminal device, and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810824209.8A CN109165136B (en) | 2018-07-25 | 2018-07-25 | Terminal operation data monitoring method, terminal device and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109165136A CN109165136A (en) | 2019-01-08 |
| CN109165136B true CN109165136B (en) | 2021-09-28 |
Family
ID=64898011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810824209.8A Active CN109165136B (en) | 2018-07-25 | 2018-07-25 | Terminal operation data monitoring method, terminal device and medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109165136B (en) |
| WO (1) | WO2020019437A1 (en) |
Families Citing this family (30)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110162449B (en) * | 2019-03-26 | 2024-10-18 | 京东科技信息技术有限公司 | Data storage method and device during Internet data center inspection |
| CN110222100B (en) * | 2019-04-26 | 2023-04-07 | 广州明珞装备股份有限公司 | Processing method, system and storage medium based on big data display process timing diagram |
| CN111353772B (en) * | 2020-02-24 | 2024-01-16 | 网银在线(北京)科技有限公司 | Method and device for generating tracking number, storage medium, electronic device |
| CN111459936B (en) * | 2020-03-25 | 2023-09-29 | 湖南华菱涟源钢铁有限公司 | Data management method, data management device and server |
| CN111597194B (en) * | 2020-04-30 | 2023-05-05 | 广东良实机电工程有限公司 | Equipment energy consumption control method and device, terminal equipment and storage medium |
| CN111611254B (en) * | 2020-04-30 | 2023-05-09 | 广东良实机电工程有限公司 | Equipment energy consumption abnormality monitoring method and device, terminal equipment and storage medium |
| CN111611256B (en) * | 2020-04-30 | 2023-05-09 | 广东良实机电工程有限公司 | Equipment energy consumption monitoring method and device, terminal equipment and storage medium |
| CN113901855A (en) * | 2020-06-22 | 2022-01-07 | 阿里巴巴集团控股有限公司 | Fire-fighting risk detection method and device and server |
| CN113946573A (en) * | 2020-07-15 | 2022-01-18 | 杭州海康威视数字技术股份有限公司 | Data storage and search method and device |
| CN111882832B (en) * | 2020-08-12 | 2022-09-27 | 湖南紫薇垣信息系统有限公司 | Computer lab environmental monitoring early warning system |
| CN112100042A (en) * | 2020-08-26 | 2020-12-18 | 北京天空卫士网络安全技术有限公司 | A monitoring method, device and system |
| CN112040189B (en) * | 2020-09-01 | 2022-06-24 | 浙江大华技术股份有限公司 | Monitoring method and system of front-end equipment and storage medium |
| CN112148769B (en) * | 2020-09-15 | 2024-08-30 | 浙江大华技术股份有限公司 | Data synchronization method and device, storage medium and electronic device |
| CN112383412B (en) * | 2020-10-26 | 2022-04-22 | 北京精一强远科技有限公司 | Intelligent voice system and method for IT monitoring operation and maintenance |
| CN112925568B (en) * | 2021-03-28 | 2022-07-26 | 杭州迪普信息技术有限公司 | Data transmission method and control device between modules |
| CN113194046B (en) * | 2021-04-14 | 2023-04-14 | 深圳赛动智造科技有限公司 | Method, device and equipment for acquiring monitoring data in real time |
| CN113886891A (en) * | 2021-08-24 | 2022-01-04 | 国网山东省电力公司临朐县供电公司 | Power grid monitoring data storage processing method |
| CN113923170A (en) * | 2021-09-30 | 2022-01-11 | 深信服科技股份有限公司 | Application identification management method and system |
| CN113821696B (en) * | 2021-11-23 | 2022-02-15 | 广东磊蒙智能装备集团有限公司 | Mining machinery thing networking systems |
| CN114328079A (en) * | 2021-11-24 | 2022-04-12 | 北京金山云网络技术有限公司 | Available area monitoring method and device, electronic equipment and readable storage medium |
| CN114268480B (en) * | 2021-12-15 | 2024-05-14 | 奇安信科技集团股份有限公司 | Picture transmission monitoring method and device, storage medium and terminal |
| CN114401289B (en) * | 2021-12-31 | 2024-08-16 | 深圳市麦谷科技有限公司 | Task batch uploading method and system |
| CN114697399A (en) * | 2022-04-28 | 2022-07-01 | 杭州萤石软件有限公司 | A device control system, method, device, electronic device and storage medium |
| CN114996091A (en) * | 2022-05-31 | 2022-09-02 | 济南浪潮数据技术有限公司 | Data monitoring method, device and medium for distributed object storage system |
| CN116016822B (en) * | 2022-12-12 | 2025-06-06 | 天翼视联科技有限公司 | Monitoring equipment data storage method, device, storage medium and equipment |
| CN115774653A (en) * | 2023-02-15 | 2023-03-10 | 江西飞尚科技有限公司 | Early warning research and judgment method, system, readable storage medium and computer equipment |
| CN116434148B (en) * | 2023-06-14 | 2023-10-17 | 北京航天联智科技有限公司 | Data processing system and processing method based on Internet of things |
| CN117033306A (en) * | 2023-09-22 | 2023-11-10 | 中国银行股份有限公司 | Log query method, device, equipment and storage medium |
| CN118364327B (en) * | 2024-06-19 | 2024-08-30 | 山东天意机械股份有限公司 | Running data real-time monitoring system for extrusion wallboard machine |
| CN118505474B (en) * | 2024-07-19 | 2024-11-12 | 中关村科学城城市大脑股份有限公司 | Urban operation data monitoring system, method, electronic device and readable medium |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4506292B2 (en) * | 2004-06-10 | 2010-07-21 | 株式会社日立製作所 | Cache control method, data processing system, and processing program therefor |
| CN101626392B (en) * | 2008-07-08 | 2012-08-15 | 中国移动通信集团公司 | Methods and systems for storing and searching data |
| CN102314480B (en) * | 2011-07-05 | 2013-04-10 | 万达信息股份有限公司 | Distributed data storage method specific to mass data |
| CN103795745B (en) * | 2012-10-30 | 2017-06-16 | 绿网天下(福建)网络科技股份有限公司 | The monitoring method and system of a kind of intelligent mobile terminal |
| CN104516795A (en) * | 2015-01-15 | 2015-04-15 | 浪潮(北京)电子信息产业有限公司 | Data access method and system |
| CN106097609A (en) * | 2016-07-21 | 2016-11-09 | 中国银联股份有限公司 | The remote control administrative system of intelligence POS terminal and remote monitoring and administration method |
| CN106375404B (en) * | 2016-08-30 | 2019-10-25 | 华为技术有限公司 | Data storage control method, data storage method, data acquisition method and device |
| CN107402865B (en) * | 2017-07-05 | 2020-10-16 | 上海精数信息科技有限公司 | Client data monitoring method and device |
-
2018
- 2018-07-25 CN CN201810824209.8A patent/CN109165136B/en active Active
- 2018-09-13 WO PCT/CN2018/105541 patent/WO2020019437A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| CN109165136A (en) | 2019-01-08 |
| WO2020019437A1 (en) | 2020-01-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109165136B (en) | Terminal operation data monitoring method, terminal device and medium | |
| US9207988B2 (en) | Method, system, and device for managing server hardware resources in a cloud scheduling environment | |
| CN108737473B (en) | Data processing method, device and system | |
| US20180041468A1 (en) | Managing dynamic ip address assignments | |
| WO2020147331A1 (en) | Micro-service monitoring method and system | |
| CN111182089B (en) | Container cluster system, method and device for accessing big data assembly and server | |
| CN108063685B (en) | Log analysis method and device | |
| CN109151025B (en) | Load balancing method and device based on URL, computer storage medium and equipment | |
| CN107748790B (en) | Online service system, data loading method, device and equipment | |
| WO2017206576A1 (en) | Gateway service processing method and apparatus | |
| CN111353136B (en) | Method and device for processing operation request | |
| CN113055213A (en) | Alarm information management method, alarm information management system and server | |
| EP3579526B1 (en) | Resource file feedback method and apparatus | |
| CN114584454B (en) | A server information processing method, device, electronic equipment and storage medium | |
| US10585124B1 (en) | Power outage detection | |
| KR20190004970A (en) | System and Method for Real-Time Trouble Cause Analysis based on Network Quality Data | |
| US8700954B2 (en) | Common trouble case data generating method and non-transitory computer-readable medium storing common trouble case data generating program | |
| CN120301883A (en) | Data migration method and system | |
| CN111291127B (en) | Data synchronization method, device, server and storage medium | |
| CN114996241B (en) | Storage method, migration method, download method, storage system, electronic device, and medium | |
| CN106130764B (en) | A method and system for monitoring whether a data service in a live video studio is available | |
| CN113766363B (en) | Fault monitoring method and device and computing equipment | |
| CN117056920A (en) | Information acquisition method and device, electronic equipment and storage medium | |
| CN112631853B (en) | Data monitoring method, task monitoring method, system and computer readable medium | |
| CN114338794A (en) | Service message pushing method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |