CN115580552B - A gateway monitoring, gateway status diagnosis method and related device - Google Patents

A gateway monitoring, gateway status diagnosis method and related device Download PDF

Info

Publication number
CN115580552B
CN115580552B CN202211281561.4A CN202211281561A CN115580552B CN 115580552 B CN115580552 B CN 115580552B CN 202211281561 A CN202211281561 A CN 202211281561A CN 115580552 B CN115580552 B CN 115580552B
Authority
CN
China
Prior art keywords
data
gateway
log
data acquisition
platform communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211281561.4A
Other languages
Chinese (zh)
Other versions
CN115580552A (en
Inventor
刘朕男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Schneider Intelligent Technology Co ltd
Original Assignee
Schneider Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Schneider Intelligent Technology Co ltd filed Critical Schneider Intelligent Technology Co ltd
Priority to CN202211281561.4A priority Critical patent/CN115580552B/en
Publication of CN115580552A publication Critical patent/CN115580552A/en
Application granted granted Critical
Publication of CN115580552B publication Critical patent/CN115580552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请提供了一种网关监管、网关状态诊断及相关装置,涉及数据处理技术领域,网关监管方法包括:获取数据采集网关的数据采集进程相关的生命周期数据、资源使用数据和第一日志数据,并对获取的数据进行管理;获取数据采集网关的平台通信进程相关的生命周期数据、资源使用数据和第二日志数据,并对获取的数据进行管理。本申请获取的数据采集进程相关的生命周期数据、资源使用数据和第一日志数据,以及平台通信进程相关的生命周期数据、资源使用数据和第二日志数据用于确定数据采集网关的状态,由于本申请获取的数据易读性和易用性更高,从而根据本申请获取的数据很容易地确定出数据采集网关的状态。

The present application provides a gateway supervision, gateway status diagnosis and related devices, and relates to the field of data processing technology. The gateway supervision method includes: obtaining life cycle data, resource usage data and first log data related to the data collection process of the data collection gateway, and managing the obtained data; obtaining life cycle data, resource usage data and second log data related to the platform communication process of the data collection gateway, and managing the obtained data. The life cycle data, resource usage data and first log data related to the data collection process obtained by the present application, as well as the life cycle data, resource usage data and second log data related to the platform communication process are used to determine the status of the data collection gateway. Since the data obtained by the present application is more readable and easy to use, the status of the data collection gateway can be easily determined based on the data obtained by the present application.

Description

Gateway supervision and gateway state diagnosis method and related device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a gateway supervision method, a gateway status diagnosis method, and related devices.
Background
The data acquisition gateway has the capability of acquiring data from south equipment and reporting the acquired data to cloud equipment in north, and whether the data acquisition gateway is abnormal in the deployment and operation processes can be timely found by monitoring the state of the data acquisition gateway, and the abnormal positioning can be carried out based on the abnormal state of the data acquisition gateway.
Currently, the state of a data acquisition gateway may be determined by looking at the log of the system and equipment in which the data acquisition gateway is located. However, for an ordinary user or some low-level technicians, the legibility and usability of the log are poor, so that the ordinary user or the low-level technicians cannot know the state of the data acquisition gateway.
Disclosure of Invention
In view of the above, the present application provides a gateway supervision and gateway status diagnosis method and related devices, which are used for solving the above technical problems, and the technical scheme is as follows:
A gateway policing method comprising:
Acquiring life cycle data, resource use data and first log data related to a data acquisition process of a data acquisition gateway, and managing the acquired data, wherein the data acquisition process is a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, and managing the acquired data, wherein the platform communication process is a process of reporting the data acquired from the south-oriented equipment to north by the data acquisition gateway, and the second log data comprises log data related to state change of the platform communication process and log data related to the north-oriented data;
the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
Optionally, acquiring life cycle data, resource usage data, and first log data related to a data acquisition process of the data acquisition gateway includes:
acquiring life cycle data, resource use data and first log data related to a data acquisition process of a data acquisition gateway under the condition that a start-stop switch of the data acquisition process is started;
Acquiring lifecycle data, resource usage data, and second log data related to a platform communication process of the data acquisition gateway, comprising:
and under the condition that a start-stop switch of the platform communication process is started, acquiring life cycle data, resource use data and second log data related to the platform communication process of the data acquisition gateway.
Optionally, acquiring lifecycle data, resource usage data, and first log data related to a data acquisition process of the data acquisition gateway, and acquiring lifecycle data, resource usage data, and second log data related to a platform communication process of the data acquisition gateway includes:
And responding to an instruction of starting and stopping a switch of a monitoring daemon, acquiring life cycle data, resource use data and first log data related to a data acquisition process of a data acquisition gateway, and acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, wherein the monitoring daemon is used for carrying out health daemon on the data acquisition process and the platform communication process, and restarting the abnormally interrupted process when the data acquisition process and/or the platform communication process is abnormally interrupted.
Optionally, the method further comprises:
Acquiring summary information of a data acquisition process, a platform communication process and a monitoring daemon, wherein the summary information of a process comprises one or more of life cycle data related to the process, resource use data, message queue telemetry transmission MQTT connection and heartbeat data representing whether the process normally operates, version information of the process and operation time of the process, the life cycle data related to the process comprises one or more of process state, change time of the process state, process identification, a process exit code and an exit message, and the resource use data related to the process comprises one or more of CPU use data, memory use data and disk use data of the process;
acquiring resource use data of a server where a data acquisition gateway is located;
And displaying the obtained summary information and the resource use data of the server where the data acquisition gateway is located on a front-end page.
Optionally, the method further comprises:
determining a trend curve of the capacity of the database corresponding to the data acquisition gateway along with the time change during the operation of the monitoring daemon;
responding to an instruction of a detail page entering a monitoring daemon, and displaying a trend curve of the capacity of a data acquisition gateway corresponding to the database along with the change of time on a front-end page.
Optionally, the target log data includes a plurality of pieces of log data, each piece of log data in the plurality of pieces of log data is composed of data generation time, data level and data title;
Displaying a plurality of pieces of log data according to the sequence from the near to the far of the time;
The target log data is first log data or second log data.
A gateway supervision device comprises a process management unit;
the process management unit comprises a data acquisition process management unit and a platform communication process management unit;
The data acquisition process management unit is used for acquiring life cycle data, resource use data and first log data related to a data acquisition process of the data acquisition gateway and managing the acquired data, wherein the data acquisition process is a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
The platform communication process management unit is used for acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway and managing the acquired data, wherein the platform communication process is a process of reporting the data acquired from the south-oriented equipment to the north by the data acquisition gateway, and the second log data comprises log data related to state change of the platform communication process and log data related to the north-oriented data;
the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
A gateway status diagnostic method, comprising:
Acquiring life cycle data, resource use data and first log data related to a data acquisition process of a data acquisition gateway, wherein the data acquisition process is a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, wherein the platform communication process is a process of reporting data acquired from the south-oriented equipment to north by the data acquisition gateway, and the second log data comprises log data related to state change of the platform communication process and log data related to north-oriented data;
And determining the state of the data acquisition gateway according to the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process.
A gateway status diagnostic device, comprising:
The first data acquisition unit is used for acquiring life cycle data, resource use data and first log data related to a data acquisition process of the data acquisition gateway, wherein the data acquisition process is a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
The second data acquisition unit is used for acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, wherein the platform communication process is a process of reporting data acquired from the south-oriented equipment to the north by the data acquisition gateway, and the second log data comprises log data related to state change of the platform communication process and log data related to the north-oriented data;
the gateway state diagnosis unit is used for determining the state of the data acquisition gateway according to the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process.
A gateway supervision system comprises gateway supervision equipment and a data acquisition gateway;
the data acquisition gateway is used for acquiring data from the south equipment through a data acquisition process and reporting the data acquired from the south equipment to the cloud equipment through a platform communication process;
and the gateway supervision equipment is used for realizing the gateway supervision method according to any one of the above in the process of collecting and reporting the data by the data collecting gateway.
According to the technical scheme, the gateway supervision method provided by the application can acquire the life cycle data, the resource use data and the first log data related to the data acquisition process of the data acquisition gateway, manage the acquired data, acquire the life cycle data, the resource use data and the second log data related to the platform communication process of the data acquisition gateway, and manage the acquired data. The life cycle data, the resource use data and the first log data related to the data acquisition process, the life cycle data, the resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a gateway supervision method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a front page containing summary information of processes and resource usage data of a server where a data acquisition gateway is located;
fig. 3 is a schematic structural diagram of a gateway supervision device according to an embodiment of the present application;
Fig. 4 is a schematic structural diagram of a gateway supervision system according to an embodiment of the present application;
fig. 5 is a flow chart of a gateway status diagnosis method according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of a gateway status diagnosing apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The application provides a gateway supervision method, and the gateway supervision method provided by the application is described in detail through the following embodiments.
Referring to fig. 1, a flow chart of a gateway supervision method according to an embodiment of the present application is shown, where the gateway supervision method may include:
Step S101, acquiring life cycle data, resource use data and first log data related to a data acquisition process of a data acquisition gateway, and managing the acquired data, and acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, and managing the acquired data.
The data acquisition process is a process of acquiring data from southbound equipment by the data acquisition gateway, the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data, the platform communication process is a process of reporting the data acquired from southbound equipment to north by the data acquisition gateway, the second log data comprises log data related to state change of the platform communication process and log data related to reporting data to north, and life cycle data, resource use data and the first log data related to the data acquisition process, and life cycle data, resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
In this embodiment, the state of the process includes, but is not limited to, the state of running, aborting (e.g., abort), shutdown, and startup.
Specifically, the data collection gateway can collect data from the southbound device in the southbound direction, and the northbound direction can upload the collected data to the cloud device. Here, the data collection gateway realizes the southbound collection of data through the data collection process, and the northbound data is uploaded to the cloud end equipment and is realized through the platform communication process. Therefore, by supervising the data related to the data acquisition process and the platform communication process, the gateway state can be determined based on the supervised data. Alternatively, the gateway state may be, for example, a ready state, a restart state, an abnormal state, etc.
The supervision refers to monitoring of data related to the data acquisition process and the platform communication process to acquire the data related to the data acquisition process and the platform communication process, and the management refers to managing the acquired data related to the data acquisition process and the platform communication process.
In an alternative embodiment, the data related to the data collection process supervised by this step at least includes life cycle data, resource usage data and first log data related to the data collection process.
The life cycle data refers to data reflecting the life cycle of the data acquisition process, and optionally, the life cycle data related to the data acquisition process comprises one or more of the following data, namely the state of the data acquisition process, the change time of the process state, the process identification, the exit code of the process and the exit message. The exit code of the process refers to an identification code representing the exit condition of the data acquisition process, the exit message refers to a message for literally describing the exit condition of the data acquisition process, for example, if the data acquisition process exits normally, the exit code is 1, the exit message is "the data acquisition process exits normally", if the data acquisition process exits abnormally, the exit code (may also be referred to as an error code) is 0, and the exit message is "the data acquisition process exits abnormally".
Of course, the above-mentioned exit code and exit message are merely examples, and in practical application, the exit situation may include multiple situations (for example, the currently achievable exit situation includes more than 10 types), and the embodiment is not specifically limited.
Optionally, when the life cycle data related to the data acquisition process includes the change time of the process state, the life cycle data can be displayed in the sequence from the near to the far according to the change time, and optionally, the life cycle data related to the data acquisition process can be stored in a list format so as to be convenient for a user to check.
The resource usage data related to the data acquisition process refers to data reflecting the resource condition occupied by the data acquisition process, and optionally, the resource usage data related to the data acquisition process comprises one or more of CPU usage data, memory usage data and disk usage data of the data acquisition process.
The first log data includes log data related to a change in a state of a data collection process and log data related to the collected data. Specifically, each change of the state of the data collection process generates a related piece of log data, and each time the data collection process collects data, the data collection process may also generate a piece of log data related to the collected data, that is, the first log data includes a plurality of pieces of log data.
Optionally, each of the plurality of pieces of log data included in the first log data is composed of a data generation time, a data level, and a data header. Here, the data level of one log data reflects the alarm level of the log data, wherein the data level of the log data generated when the data acquisition process is abnormal is higher than the data level of the log data generated when the data acquisition process is normal, and the data title of the log data is a brief introduction of the log data.
Optionally, when the first log data includes a plurality of pieces of log data, the log data may be displayed in order from the near to the far according to the data generation time, and optionally, the first log data related to the data acquisition process may be stored in a list format, so as to be convenient for the user to view.
Similar to the data associated with the data collection process, in another alternative embodiment, the data associated with the platform communication process governed by this step includes at least lifecycle data, resource usage data, and second log data associated with the platform communication process.
The life cycle data refers to data reflecting the life cycle of the platform communication process, and optionally, the life cycle data related to the platform communication process comprises one or more of the following data, namely the state of the platform communication process, the change time of the process state, the process identification, the exit code of the process and the exit message. The exit code of the process refers to an identification code for representing the exit condition of the platform communication process, and the exit message refers to a message for performing text description on the exit condition of the platform communication process.
In practical applications, the exit situation of the platform communication may include multiple situations (for example, the exit situation that can be realized at present includes more than 10 types), and the embodiment is not limited specifically.
Optionally, when the life cycle data related to the platform communication process includes the change time of the process state, the life cycle data can be displayed in the sequence from the near to the far according to the change time, and optionally, the life cycle data related to the platform communication process can be stored in a list format so as to be convenient for a user to check.
The resource usage data related to the platform communication process refers to data reflecting the resource condition occupied by the platform communication process, and optionally, the resource usage data related to the platform communication process includes one or more of CPU usage data, memory usage data and disk usage data of the platform communication process.
The second log data includes log data related to a status change of the platform communication process and log data related to north report data. Specifically, each state change of the platform communication process generates a related log data, and each reporting data of the platform communication process may also generate a log data related to the reporting data, that is, the second log data includes a plurality of log data.
Optionally, each of the plurality of pieces of log data included in the second log data is composed of a data generation time, a data level, and a data header. The details of the description of the data level and the data header may refer to the description of the first log data, and will not be described herein.
Optionally, when the second log data includes a plurality of pieces of log data, the log data may be displayed in order from the near to the far according to the data generation time, and optionally, the second log data related to the platform communication process may be stored in a list format, so as to be convenient for the user to view.
It should be noted that, the specific data included in the lifecycle data, the log data (i.e., the first log data and the second log data) and the resource usage data related to the two processes are only examples, and other specific data may be included in addition to the above specific data, which is not specifically limited in the present application.
In summary, the gateway supervision method provided by the application can acquire the life cycle data, the resource usage data and the first log data related to the data acquisition process of the data acquisition gateway, manage the acquired data, and can acquire the life cycle data, the resource usage data and the second log data related to the platform communication process of the data acquisition gateway, and manage the acquired data. The life cycle data, the resource use data and the first log data related to the data acquisition process, the life cycle data, the resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
In one embodiment of the present application, considering that in some scenarios, it may not be necessary to monitor the process related data of the gateway acquisition number (i.e. acquiring data from the south device) and the upper number (i.e. reporting data to the cloud device), for this reason, the present embodiment may set start-stop switches for the data acquisition process and the platform communication process respectively, so that the user may turn on or off the start-stop switches corresponding to the data acquisition process and/or the platform communication process according to the actual requirement, so as to obtain the data related to the corresponding process when turned on, and no longer obtain the data related to the corresponding process when turned off.
That is, optionally, the process of acquiring the lifecycle data, the resource usage data, and the first log data related to the data acquisition process of the data acquisition gateway in step S101 may include acquiring the lifecycle data, the resource usage data, and the first log data related to the data acquisition process of the data acquisition gateway when the start-stop switch of the data acquisition process is turned on, and the corresponding process of acquiring the lifecycle data, the resource usage data, and the second log data related to the platform communication process of the data acquisition gateway in step S101 may include acquiring the lifecycle data, the resource usage data, and the second log data related to the platform communication process of the data acquisition gateway when the start-stop switch of the platform communication process is turned on.
The embodiment can only monitor the data related to the corresponding process under the condition that the data acquisition process and/or the platform communication process are started, thereby meeting the requirement of user diversity and being more friendly to users.
In another embodiment of the present application, the present embodiment further includes a monitoring daemon for health daemon for the data acquisition process and the platform communication process, where the monitoring daemon refers to a process required for the gateway supervisory device to operate, may operate with windows services, and is automatically started when the operating system is started. Gateway supervision equipment (which can be regarded as an instrument panel of an IOT product on the edge side) refers to equipment for executing the gateway supervision method provided by the embodiment of the application.
The health daemon comprises restarting the process which is interrupted abnormally in the case that the data acquisition process and/or the platform communication process is interrupted abnormally.
Optionally, in this embodiment, a start-stop switch may be set for the monitoring daemon, and only when the user starts the start-stop switch corresponding to the monitoring daemon, the monitoring daemon (i.e. the gateway monitoring device) may operate, and the embodiment may acquire data related to the data acquisition process and the platform communication process, that is, step S101 "acquire the life cycle data, the resource usage data, and the first log data related to the data acquisition process of the data acquisition gateway" and "acquire the life cycle data, the resource usage data, and the second log data related to the platform communication process of the data acquisition gateway" may include, in response to an instruction for starting the start-stop switch of the monitoring daemon, acquiring the life cycle data, the resource usage data, and the first log data related to the data acquisition process of the data acquisition gateway, and acquiring the life cycle data, the resource usage data, and the second log data related to the platform communication process of the data acquisition gateway.
That is, the present embodiment monitors the data related to the data acquisition process and the platform communication process only when the gateway supervisory device starts to operate.
In yet another embodiment of the present application, the gateway supervision method provided in this embodiment further includes the following step S102 on the basis of the foregoing embodiment.
Step S102, obtaining the summary information of the data acquisition process, the platform communication process and the monitoring daemon, obtaining the resource use data of the server where the data acquisition gateway is located, and displaying the obtained summary information and the resource use data of the server where the data acquisition gateway is located on a front-end page.
The summary information of a process comprises one or more of life cycle data, resource use data, message queue telemetry transmission MQTT connection and heartbeat data representing whether the process operates normally, version information of a data acquisition gateway and operation time (preferably, the operation time refers to effective operation time) of the process, the life cycle data of the process comprises one or more of process state, change time of the process state, process identification, exit code and exit message of the process, and the resource use data of the process comprises one or more of CPU use data, memory use data and disk use data of the process.
Of course, the summary information described above is only an example, and other information such as the latest start-up time and the like may be included in addition to the summary information.
Optionally, the step of displaying the obtained summary information on the front-end page includes displaying the summary information of the data acquisition process, the platform communication process and the monitoring daemon, which are obtained at the current moment, on the front-end interface respectively.
Optionally, if the resource usage data of the server where the data acquisition gateway is located is CPU usage data or memory usage data, the "displaying the resource usage data of the server where the data acquisition gateway is located on the front page" in this embodiment includes displaying a trend curve of the resource usage data of the server where the data acquisition gateway is located changing with time during the operation of the monitor daemon on the front page.
Taking the example that the resource usage data of the server where the data acquisition gateway is located includes system CPU usage data, memory usage data and disk usage data, reference may be made to the schematic diagram of the front page containing the summary information of the process and the resource usage data of the server where the data acquisition gateway is located shown in fig. 2.
Fig. 2 shows system CPU occupation data (i.e., CPU usage data of a server where the data acquisition gateway is located) and system memory occupation data (i.e., memory usage data of a server where the data acquisition gateway is located) in 10:40 to 10:45, and disk usage conditions of the server at the current time (10:45).
Meanwhile, fig. 2 shows summary information of a data acquisition process, a platform communication process and a monitoring daemon, taking the data acquisition process as an example, the data acquisition process is in a running state in the current moment, the data acquisition process is in a running state in 11 minutes and 53 seconds, the V1.3.1185 process is version information of the data acquisition process, namely version information of gateway supervision equipment, the CPU is 0.00% and represents that the CPU usage data of the data acquisition process in the current moment is 0.00%, the memory is 0.09% and represents that the memory usage data of the data acquisition process in the current moment is 0.09%, the disk usage data of the data acquisition process in the current moment is 14.0M, the MQTT connection is normal, the heartbeat data is the MQTT connection and the heartbeat data, and the data represents that the data acquisition process is in normal running, and the latest start time of the latest start of the data acquisition process is 2020-12-03:36:58 is 2020 12 months and 36 minutes and 58 seconds in 3 days in the latest start time of the data acquisition process.
Optionally, as shown in fig. 2, this embodiment further provides a "detail" entry of the data acquisition process, the platform communication process, and the monitoring daemon, and the user may enter the front page of the corresponding process by clicking "detail", where the embodiment may display data related to the corresponding process, for example, lifecycle data, resource usage data, log data, and the like acquired in step S101. Here, the page of the resource usage data related to the corresponding process shown in the front page is similar to that of fig. 2, and the description will not be repeated in this embodiment.
It should be noted that, the front-end page of the monitoring daemon will also display a trend curve of the capacity of the database corresponding to the data acquisition gateway over time, that is, the gateway supervision method provided in this embodiment may also determine the trend curve of the capacity of the database corresponding to the data acquisition gateway over time during the operation of the monitoring daemon, and respond to the instruction of the detail page entering the monitoring daemon to display the trend curve of the capacity of the database corresponding to the data acquisition gateway over time on the front-end page (i.e., the detail page).
Alternatively, in this embodiment, each front-end page mentioned above is compiled by the react-based front-end and then called a static resource, and supervises the monitoring daemon. Because the static front-end page obtained by compiling the compact technology is the prior art, the description of the static front-end page is not described in detail in the patent.
In summary, the embodiment can display summary information of each process and resource usage data of a server where the data acquisition gateway is located on a front end interface, so that a user can conveniently and quickly determine whether the data acquisition gateway is in an abnormal state based on the summary information of each process and the resource usage data of the server where the data acquisition gateway is located, and can quickly diagnose an abnormal position of the data acquisition gateway, for example, if the summary information of the data acquisition process shows that 'MQTT is not connected and heartbeat is abnormal', it can be judged that the data acquisition process of the data acquisition gateway is abnormal, namely, the current data acquisition gateway cannot normally acquire data due to the abnormal data acquisition process.
Meanwhile, the detail page of each process is entered, the data related to each process can be seen, and the abnormal position of the data acquisition gateway can be rapidly diagnosed according to the data, for example, if the memory usage data of the data acquisition process is larger than the memory threshold value of the normal acquisition number, the current data acquisition gateway can be determined because of the failure of normally acquiring the data due to insufficient memory.
The embodiment of the application also provides a gateway supervision device, please refer to fig. 3, which shows a schematic structural diagram of the gateway supervision device provided by the embodiment of the application, and as shown in fig. 3, the gateway supervision device may include a process management unit 301, where the process management unit 301 may include a data acquisition process management unit 3011 and a platform communication process management unit 3012.
The data acquisition process management unit 3011 is configured to acquire lifecycle data, resource usage data, and first log data related to a data acquisition process of the data acquisition gateway, and manage the acquired data, where the data acquisition process is a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data includes log data related to a state change of the data acquisition process and log data related to the acquired data;
The platform communication process management unit 3012 is configured to obtain lifecycle data, resource usage data, and second log data related to a platform communication process of the data acquisition gateway, and manage the obtained data, where the platform communication process is a process in which the data acquisition gateway reports north to south data acquired from the south device, and the second log data includes log data related to a state change of the platform communication process and log data related to the north report data;
the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
The working principle of the gateway supervision device provided by the embodiment of the application is the same as that of the gateway supervision method described above, and the detailed description of the gateway supervision method can be referred to, so that the description is omitted here.
Corresponding to the foregoing gateway supervision method and apparatus, the present application also provides a gateway supervision system, as shown in fig. 4, which includes a gateway supervision device 41 and a data acquisition gateway 42.
Specifically, the data acquisition gateway 42 is configured to acquire data from the southbound device through a data acquisition process, and report the data acquired from the southbound device to the cloud device through a platform communication process;
The gateway supervision device 41 is configured to implement the gateway supervision method in the above embodiment during the process of collecting and reporting data by the data collecting gateway.
More specifically, the gateway supervisory device 41 at least includes a data collection process management module 411 and a platform communication process management module 412, where the data collection process management module 411 may be configured to obtain lifecycle data, resource usage data, and first log data related to a data collection process of the data collection gateway, and manage the obtained data, and the platform communication process management module 412 may be configured to obtain lifecycle data, resource usage data, and second log data related to a platform communication process of the data collection gateway, and manage the obtained data.
Optionally, the data collection process management module 411 includes a start-stop switch of the data collection process, through which start-stop management of the data collection process can be implemented, and optionally, the platform communication process management module 412 includes a start-stop switch of the platform communication process, through which start-stop management of the platform communication process can be implemented.
Optionally, the gateway supervision device provided by the present application may further include a monitoring daemon management module 413.
Optionally, the monitoring daemon management module 413 may be configured to obtain lifecycle data, resource usage data, and third log data related to the monitoring daemon of the gateway supervisory device, and obtain system parameter data. The life cycle data and the resource usage data related to the monitoring daemon are similar to those related to the data acquisition process, and detailed description thereof will be omitted herein.
The third log data is similar to the first log data and the second log data, and the only difference is that the third log data only includes log data related to the state change of the monitoring daemon, so that the third log data may refer to the description of the first log data and the second log data, and will not be described herein.
The above-mentioned system parameter data refers to attribute data related to the operation of the gateway supervisory device 41, and for example, the system parameter data may be data describing the operation environment of the data acquisition process and/or the platform communication process and/or the monitoring daemon, the IP address (Internet Protocol Address ) of the data acquisition gateway, the state of the overall link, the retention time of the first log data and/or the second log data and/or the third log data, the retention time of the process-related data acquired by the present application, and the like.
Optionally, the monitoring daemon management module 413 includes a start-stop switch of the monitoring daemon, and the start-stop management of the monitoring daemon can be implemented through the start-stop switch. The gateway supervisory device 41 may operate to monitor data related to the data collection process and the platform communication process when the start-stop switch is turned on, and the gateway supervisory device 41 may not monitor data related to the data collection process and the platform communication process when the start-stop switch is turned off.
Optionally, the monitoring daemon management module 413 may also graphically display a trend curve of the capacity of the database corresponding to the data collection gateway over time, and specifically, the monitoring daemon management module 413 may be configured to determine, during operation of the monitoring daemon, the trend curve of the capacity of the database corresponding to the data collection gateway over time, and respond to an instruction entering a detail page of the monitoring daemon to display the trend curve of the capacity of the database corresponding to the data collection gateway over time on a front page.
Optionally, the gateway supervision device provided by the present application may further include a data visualization module 414 (also referred to as a Dashboard module in the present application), where the data visualization module 414 may be configured to obtain summary information of a data collection process, a platform communication process, and a monitoring daemon, obtain resource usage data of a server where the data collection gateway is located, and display the obtained summary information and the resource usage data of the server where the data collection gateway is located on a front page.
Optionally, the data visualization module 414 may also provide a detail portal for data acquisition processes, platform communication processes, and monitoring daemons.
To sum up, the functional implementation of the data visualization module 414, the data collection process management module 411, the platform communication process management module 412, and the monitoring daemon management module 413 described above is summarized as shown in table 1 below.
Table 1 gateway supervisory equipment contains each functional module and description of functions
From the above description, the gateway supervisory device 41 provided by the present application is used for managing the life cycle of the process, managing the relevant service processes and programs, providing detail settings for various situations including the first start of the north service, the manual stop, the north restart, the manual start, the system upgrade, and the exit, the management of cpu, memory, and disk monitoring for the process operation, and various detail settings for the new and start of the south local system, the connection of the local system drive, the manual restart, the manual shutdown, the manual start, the system upgrade, and the process exit.
Optionally, the present application may support clients accessing the web front-end interface described above through a browser after installing gateway supervisory device 41.
In addition, in the gateway supervisory system described above, the gateway supervisory device 41 is a device independent of the data acquisition gateway 42. Optionally, in the present application, the gateway supervision device 41 may also be provided in the data acquisition gateway 42.
Through the gateway supervision system, particularly the gateway supervision device 41, the application can save operation and maintenance personnel of the data acquisition gateway 42 from complex and complicated log analysis tasks, the gateway supervision device 41 can intuitively and simply embody the current operation state and error reporting condition of the data acquisition gateway, the operation and maintenance personnel can realize timely diagnosis when deploying the data acquisition gateway and common users use the data acquisition gateway, and powerful guarantee is provided for safe and stable operation of data acquisition.
Meanwhile, the application also reduces the technical capability threshold requirement on operation and maintenance personnel, can complete log analysis and problem positioning without high technical literacy, and saves talent culture cost and labor input cost.
On the basis of the gateway supervision method, the gateway supervision device and the gateway supervision system, the application further provides a gateway state diagnosis method and a gateway state diagnosis device for intuitively determining the gateway state.
The gateway state diagnosis method provided by the application is first described in detail through the following embodiments. Referring to fig. 5, a flow chart of a gateway status diagnosis method according to an embodiment of the present application may include:
Step S501, acquiring life cycle data, resource usage data and first log data related to a data acquisition process of the data acquisition gateway, and acquiring life cycle data, resource usage data and second log data related to a platform communication process of the data acquisition gateway.
The data acquisition process is a process of acquiring data from southbound equipment by the data acquisition gateway, the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data, the platform communication process is a process of reporting the data acquired from southbound equipment to north by the data acquisition gateway, and the second log data comprises log data related to state change of the platform communication process and log data related to reporting data to north.
The process of this step corresponds to the description in the foregoing gateway supervision method, device and system, and the detailed description may refer to the foregoing description, which is not repeated here.
Step S502, determining the state of the data acquisition gateway according to the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process.
The gateway state diagnosis method provided by the application can acquire the data related to the data acquisition process and the platform communication process, and can determine the state of the data acquisition gateway based on the acquired data, so that a user does not need to determine the gateway state by himself, the time of the user is saved, and the user experience is better.
The application also provides a gateway state diagnosis device, please refer to fig. 6, which shows a schematic structural diagram of the gateway state diagnosis device provided in the embodiment of the application, as shown in fig. 6, the gateway state diagnosis device may include a first data acquisition unit 601, a second data acquisition unit 602, and a gateway state diagnosis unit 603.
The first data obtaining unit 601 is configured to obtain life cycle data, resource usage data, and first log data related to a data collection process of the data collection gateway, where the data collection process is a process of collecting data from a southbound device by the data collection gateway, and the first log data includes log data related to a state change of the data collection process and log data related to the collected data.
And a second data obtaining unit 602, configured to obtain life cycle data, resource usage data and second log data related to a platform communication process of the data collection gateway, where the platform communication process is a process of north reporting data of data collected from the south device by the data collection gateway, and the second log data includes log data related to a status change of the platform communication process and log data related to north reporting data.
The gateway state diagnosing unit 603 is configured to determine a state of the data collecting gateway according to the lifecycle data, the resource usage data, and the first log data related to the data collecting process, and the lifecycle data, the resource usage data, and the second log data related to the platform communication process.
The working principle of the gateway state diagnosis device provided by the embodiment of the application is the same as that of the gateway state diagnosis method described above, and reference may be made in detail to the description of the gateway state diagnosis method described above, which is not repeated here.
Finally, it is further noted that relational terms such as second, and the like are 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. Moreover, 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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of gateway supervision, comprising:
Acquiring life cycle data, resource use data and first log data related to a data acquisition process of a data acquisition gateway, and managing the acquired data, wherein the data acquisition process refers to a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, and managing the acquired data, wherein the platform communication process refers to a process that the data acquisition gateway reports the data acquired from the south-oriented equipment to the north, and the second log data comprises the log data related to the state change of the platform communication process and the log data related to the north-oriented data;
the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
2. The gateway policing method of claim 1, wherein the acquiring lifecycle data, resource usage data, and first log data related to a data collection process of a data collection gateway comprises:
Acquiring life cycle data, resource use data and first log data related to a data acquisition process of the data acquisition gateway under the condition that a start-stop switch of the data acquisition process is started;
The acquiring life cycle data, resource usage data and second log data related to the platform communication process of the data acquisition gateway includes:
And under the condition that a start-stop switch of the platform communication process is started, acquiring life cycle data, resource use data and second log data related to the platform communication process of the data acquisition gateway.
3. The gateway supervision method according to claim 2, wherein the acquiring the lifecycle data, the resource usage data, and the first log data related to the data collection process of the data collection gateway, the acquiring the lifecycle data, the resource usage data, and the second log data related to the platform communication process of the data collection gateway, comprises:
And responding to an instruction of starting and stopping a switch of a monitoring daemon, acquiring life cycle data, resource use data and first log data related to a data acquisition process of the data acquisition gateway, and acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, wherein the monitoring daemon is used for health daemon on the data acquisition process and the platform communication process, and restarting an abnormally interrupted process when the data acquisition process and/or the platform communication process is abnormally interrupted.
4. The gateway policing method of claim 3, further comprising:
The method comprises the steps of acquiring summary information of a data acquisition process, a platform communication process and a monitoring daemon, wherein the summary information of a process comprises one or more of life cycle data related to the process, resource use data, message queue telemetry transmission MQTT connection and heartbeat data representing whether the process normally operates, version information of the process and operation time of the process, the life cycle data related to the process comprises one or more of process state, change time of the process state, process identification, a process exit code and an exit message, and the resource use data related to the process comprises one or more of CPU use data, memory use data and disk use data of the process;
Acquiring resource use data of a server where the data acquisition gateway is located;
and displaying the obtained summary information and the resource use data of the server where the data acquisition gateway is located on a front-end page.
5. The gateway policing method of claim 4, further comprising:
determining a trend curve of the capacity of the database corresponding to the data acquisition gateway over time during the operation of the monitoring daemon;
And responding to an instruction of entering a detail page of the monitoring daemon, and displaying a trend curve of the capacity of the data acquisition gateway corresponding to the database along with the change of time on a front page.
6. The gateway supervision method according to claim 1, wherein the target log data includes a plurality of pieces of log data each of which is composed of a data generation time, a data level, and a data header;
The log data are displayed according to the sequence from the near to the far of the time;
wherein the target log data is the first log data or the second log data.
7. The gateway supervision device is characterized by comprising a process management unit;
the process management unit comprises a data acquisition process management unit and a platform communication process management unit;
The data acquisition process management unit is used for acquiring life cycle data, resource use data and first log data related to a data acquisition process of the data acquisition gateway and managing the acquired data, wherein the data acquisition process refers to a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
The platform communication process management unit is configured to obtain lifecycle data, resource usage data, and second log data related to a platform communication process of the data acquisition gateway, and manage the obtained data, where the platform communication process is a process in which the data acquisition gateway reports north of data acquired from the south-oriented device, and the second log data includes log data related to a state change of the platform communication process and log data related to north-oriented data;
the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process are used for determining the state of the data acquisition gateway.
8. A gateway status diagnostic method, comprising:
Acquiring life cycle data, resource use data and first log data related to a data acquisition process of a data acquisition gateway, wherein the data acquisition process refers to a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
Acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, wherein the platform communication process refers to a process that the data acquisition gateway reports the data acquired from the south-oriented equipment to the north, and the second log data comprises log data related to state change of the platform communication process and log data related to north-oriented data;
And determining the state of the data acquisition gateway according to the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process.
9. A gateway condition diagnosing apparatus, comprising:
The first data acquisition unit is used for acquiring life cycle data, resource use data and first log data related to a data acquisition process of the data acquisition gateway, wherein the data acquisition process refers to a process of acquiring data from southbound equipment by the data acquisition gateway, and the first log data comprises log data related to state change of the data acquisition process and log data related to the acquired data;
The second data acquisition unit is used for acquiring life cycle data, resource use data and second log data related to a platform communication process of the data acquisition gateway, wherein the platform communication process refers to a process that the data acquisition gateway reports the data acquired from the south-oriented equipment to the north, and the second log data comprises log data related to state change of the platform communication process and log data related to the north-oriented data;
And the gateway state diagnosis unit is used for determining the state of the data acquisition gateway according to the life cycle data, the resource use data and the first log data related to the data acquisition process, and the life cycle data, the resource use data and the second log data related to the platform communication process.
10. The gateway supervision system is characterized by comprising gateway supervision equipment and a data acquisition gateway;
The data acquisition gateway is used for acquiring data from the south equipment through a data acquisition process and reporting the data acquired from the south equipment to the cloud equipment through a platform communication process;
the gateway supervision device is configured to implement the gateway supervision method according to any one of claims 1 to 6 in a process of collecting and reporting data by the data collecting gateway.
CN202211281561.4A 2022-10-19 2022-10-19 A gateway monitoring, gateway status diagnosis method and related device Active CN115580552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211281561.4A CN115580552B (en) 2022-10-19 2022-10-19 A gateway monitoring, gateway status diagnosis method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211281561.4A CN115580552B (en) 2022-10-19 2022-10-19 A gateway monitoring, gateway status diagnosis method and related device

Publications (2)

Publication Number Publication Date
CN115580552A CN115580552A (en) 2023-01-06
CN115580552B true CN115580552B (en) 2025-04-08

Family

ID=84587753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211281561.4A Active CN115580552B (en) 2022-10-19 2022-10-19 A gateway monitoring, gateway status diagnosis method and related device

Country Status (1)

Country Link
CN (1) CN115580552B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798460A (en) * 2019-10-23 2020-02-14 国家计算机网络与信息安全管理中心 Media gateway detection method, device and readable storage medium
CN111090562A (en) * 2019-11-25 2020-05-01 广东科徕尼智能科技有限公司 Business process monitoring method, equipment and storage medium of edge intelligent gateway

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8639989B1 (en) * 2011-06-30 2014-01-28 Amazon Technologies, Inc. Methods and apparatus for remote gateway monitoring and diagnostics
CN110267129B (en) * 2019-05-30 2022-05-06 广东九联科技股份有限公司 Fault detection method of PON gateway
CN111106955B (en) * 2019-12-17 2022-10-18 山东鲁软数字科技有限公司智慧能源分公司 Intelligent station communication gateway machine and communication method
KR102376433B1 (en) * 2020-06-15 2022-03-18 주식회사 시옷 A method of secure monitoring for multi network devices
CN112051816A (en) * 2020-09-03 2020-12-08 珠海格力智能装备有限公司 Data acquisition system and method
CN113037589B (en) * 2021-03-01 2022-04-22 广东睿住智能科技有限公司 Pressure testing method and device of gateway equipment, testing platform and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798460A (en) * 2019-10-23 2020-02-14 国家计算机网络与信息安全管理中心 Media gateway detection method, device and readable storage medium
CN111090562A (en) * 2019-11-25 2020-05-01 广东科徕尼智能科技有限公司 Business process monitoring method, equipment and storage medium of edge intelligent gateway

Also Published As

Publication number Publication date
CN115580552A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
US20220129287A1 (en) Alerting, diagnosing, and transmitting computer issues to a technical resource in response to an indication of occurrence by an end user
US9077736B2 (en) Systems and methods for providing a client agent for delivery of remote services
US6321348B1 (en) System for remote internet consulting, servicing and repair
CN100549975C (en) Computer maintenance help system and analysis server
EP1480128A2 (en) Computer service using automated local diagnostic data collection and automated remote analysis
US10269235B2 (en) System and method to assist building automation system end user based on alarm parameters
JP2021036247A (en) Diagnostic analyzer related information aggregation method and aggregation system
KR20220121008A (en) How to provide an integrated device failure management platform
CN115580552B (en) A gateway monitoring, gateway status diagnosis method and related device
JP2005071191A (en) User support system, method and server, and computer-executable program
Marins et al. Improving High Availability and Reliability of Health Interoperability Systems
JP2009009538A (en) Driving condition analysis method and driving condition analysis system
Huang et al. PDA: A Tool for Automated Problem Determination.
CN111066038A (en) Alert-enabled passive application integration
US20060123302A1 (en) Remote diagnosis device, remote diagnosis system and program product
CN117806902B (en) A state monitoring management system, method, device and storage medium
JP2005266919A (en) System analysis device and analysis system
JP2004259036A (en) Device, method and program for monitoring operation of software, and computer-readable storage medium
CN120122606A (en) Vehicle diagnostic system, method, storage medium and vehicle
US8595172B2 (en) Ensuring high availability of services via three phase exception handling
Forman et al. Automated whole-system diagnosis of distributed services using model-based reasoning
CN114756331A (en) Cluster operation index obtaining method and device and storage medium
JP2007052756A (en) Learning type diagnostic database applied to trouble diagnosis in wireless device
CN118672797A (en) A method and system for adaptive event forwarding
CN119292863A (en) Data platform monitoring method, device 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