Method for realizing full-link detection
Through object-oriented programming methods and cross-platform nodejs client, full-link monitoring of heterogeneous environments is realized, the problem of difficulty in monitoring heterogeneous systems in the existing technology is solved, the comprehensiveness and accuracy of monitoring are improved, and through The intelligent fault warning mechanism improves business stability.
Patent Information
- Application Number
- CN202411012885.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing link detection technology is difficult to effectively monitor heterogeneous monomer systems, heterogeneous network environments and heterogeneous operating systems, and cannot achieve comprehensive and accurate monitoring in these complex environments, resulting in inefficiency in fault location and problem detection. .
Using object-oriented programming method, the system is divided into a client and a server. The client communicates with the server through the http protocol, collects basic information and reports data, and the server performs threshold comparison and alarm processing, and combines with nodejs Cross-platform clients and extended scripts to realize monitoring, data display and intelligent fault warning of heterogeneous environments.
It realizes full-link monitoring of heterogeneous monomer systems, heterogeneous network environments, and heterogeneous operating systems, ensures the comprehensiveness and accuracy of monitoring, promptly discovers potential problems, improves business stability and reliability, and through The intelligent fault warning mechanism reduces the risk of business interruption.
Smart Images

Figure CN118885355A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of application performance management (APM) and application security, and in particular to a method for implementing full-link detection, which is used for real-time monitoring of the operation status, server status, and system docking status of various application systems, and for fault warning. Background Art
[0002] For traditional enterprises, especially mining enterprises, various production systems, automation systems, and configuration software have often been running for many years without the ability to be transformed. To manage these production systems, automation systems, and configuration software in a unified manner, it is necessary to build an intelligent integrated management and control platform. In addition to the ability of the automation system to report data, the intelligent integrated management and control platform also needs to detect the operating environment of the automation system itself, so that when data interruptions or other failures occur, the fault point can be quickly located to improve the stability and reliability of business operations.
[0003] At present, the link detection technology on the market mainly detects microservice architectures, is applicable to the same network environment, and uses data points for collection. However, it is powerless in the case of heterogeneous single systems, heterogeneous network environments, and heterogeneous operating systems. Therefore, a new link detection method is needed to overcome these defects. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for implementing full-link detection to monitor heterogeneous monomer systems, heterogeneous network environments, and heterogeneous operating systems, ensure the comprehensiveness and accuracy of monitoring, and discover potential problems in a timely manner.
[0005] The object of the present invention is achieved through the following technical solution: a method for implementing full-link detection, characterized in that it includes the following contents: 1) Overall system structure: The system structure is divided into client and server, object-oriented programming method is adopted, and the client and server communicate with each other using HTTP protocol; 2) Client: The client first loads the configuration information config.json, which is used to collect basic information of the local machine and is divided into the following processing situations: a) License information is automatically written using the salted MD5 algorithm. When communicating with the server, the license information will be automatically carried to confirm whether it is a legitimate client; b) Client process list information, only the process information in the list will be pushed to the server; c) Service detection information: For programs with HTTP access interfaces, if they have survival verification interfaces, configure the corresponding interface address in this item. The program will automatically load the address and trigger a get request. If the return value code is 200, the authentication is valid, otherwise it is invalid. d) Expand the script list and put the execution script of the plug-in program into the parameter to realize the monitoring of specific programs. It is used to monitor the connectivity status of other servers. Put the execution script of the program in the script list. The client program will automatically execute the script and report the result value to the server in JSON format using the http protocol; 3) Server side: After the client submits the data to the server program, the server ETL program compares it according to the preset threshold information. If it exceeds the threshold range, an abnormal alarm will be issued and the warning information will be stored in the library table.
[0006] The basic information includes memory, CPU usage, operating system type, system startup time, whether the monitored application process is alive, whether the monitored application port is normally accessed, and whether the monitored application service is normal.
[0007] It also includes 4) data display: loading indicators and alarm data are displayed in the form of a monitoring panel, and indicator cards are automatically generated for each connected application.
[0008] It also includes 5) security optimization: the server uses uuid to randomly generate a unique number as the client's license content and writes it into the configuration file; the data reported by the client can only be received if and only if the client is configured with a license and the unique number is consistent with that stored on the server.
[0009] It also includes 6) cross-platform design: the client program is written in nodejs and packaged into an executable program using pkg, supporting windows, Mac, and linux operating systems, so that you can code in one place and run everywhere.
[0010] It also includes 7) the extended script return value structure: the return value of the extended script should be a JSON structure, including the result code code, the value of 200 represents normal; the service name servicename, such as "memory monitoring", the specific monitoring content array content, each item of the array should include the monitoring point name, monitoring value, monitoring status, and alarm information.
[0011] The beneficial effects of the present invention are: 1. Full-link monitoring: Compared with the traditional link monitoring system, the present invention deploys a lightweight nodejs service on the client and uses the systeminformation module to collect a series of information from the client, including CPU, memory information, process information and extended monitoring information. The monitoring data is sent to the server by sending an http request, thereby monitoring heterogeneous monomer systems, heterogeneous network environments and heterogeneous operating systems. This ensures the comprehensiveness and accuracy of monitoring and can detect potential problems in a timely manner. 2. Data analysis and display: By providing a visual interface on the server side, the JSON structured data reported by the client is parsed and displayed, and the monitoring data of the entire business operation link is intuitively viewed, including the server CPU, operating system, boot time, memory usage, whether the system process is alive, whether the system port is normal, and whether the system is serving normally. This makes the monitoring data more intuitive and easy to understand, making it easier for managers and developers to quickly understand the system status; 3. Intelligent fault warning: Through the preset alarm rules and algorithms, the background performs regular calculations through scheduled tasks. When key indicators exceed the preset thresholds, alarm data is generated and alarm reminders are triggered. The intelligent early warning mechanism can greatly improve the efficiency of problem handling and reduce the risk of business interruption. 4. Flexibility and scalability: The system architecture of the present invention is flexible. By customizing the extension program script on the client, it is only necessary to provide the return value data according to the specifications. The program will push the return value to the server for presentation by default, so as to easily adapt to business systems of different scales and complexities. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a system structure block diagram of the present invention; Figure 2 This is the client principle block diagram; Figure 3 This is the server principle block diagram. DETAILED DESCRIPTION
[0013] The present invention is described in detail below with reference to the accompanying drawings.
[0014] A method for implementing full-link detection includes the following contents: 1) Overall system structure: Figure 1 As shown, object-oriented programming is adopted, functions are divided according to business modules, and HTTP protocol is used for communication between the client and the server; 2) Client side: Figure 2As shown, the client first loads the configuration information config.json, which is used to collect the local memory, CPU usage, operating system type, system startup time, whether the monitored application process is alive, whether the monitored application port is normally accessed, and whether the monitored application service is normal, and is divided into the following processing situations: a) License information is automatically written using the salted MD5 algorithm. When communicating with the server, the license information will be automatically carried to confirm whether it is a legitimate client; b) Client process list information, only the process information in the list will be pushed to the server; c) Service detection information: For programs with HTTP access interfaces, if they have survival verification interfaces, configure the corresponding interface address in this item. The program will automatically load the address and trigger a get request. If the return value code is 200, the authentication is valid, otherwise it is invalid. d) Expand the script list and put the execution script of the plug-in program into the parameter to realize the monitoring of specific programs. It is used to monitor the connectivity status of other servers. Put the execution script of the program in the script list. The client program will automatically execute the script and report the result value to the server in JSON format using the http protocol; 3) Server side: Figure 3 As shown, after the client sends the data to the server, the server ETL program compares it according to the preset threshold information. If it exceeds the threshold range, an abnormal alarm is issued and the warning information is stored in the library table; 4) Data display: by loading indicators and alarm data, the system displays them in the form of a monitoring panel, and automatically generates an indicator card for each connected application; 5) Security optimization: To ensure data quality, data reported by non-authenticated client monitoring programs should not be received, so an authentication system needs to be added; the client uses the salted MD5 algorithm to generate a unique number as the client's license content and writes it into the configuration file. This content will be automatically generated each time the program is started. This content should be submitted to the server for authorization. After the server authorizes it, the client's data can be reported to the server normally; 6) Cross-platform design: The client program is written in nodejs and packaged into an executable program using pkg, supporting operating systems such as Windows, Mac, and Linux, so that you can code in one place and run everywhere; 7) Scalability design: Users can configure an extended script list to achieve flexible and autonomous monitoring.
[0015] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions of the technical solution of the present invention by ordinary technicians in this field do not deviate from the essence and scope of the technical solution of the present invention.
Claims
1. A method for implementing full-link detection, characterized in that It includes the following: 1) Overall system structure: The system structure is divided into client and server, object-oriented programming method is adopted, and the client and server communicate with each other using HTTP protocol; 2) Client: The client first loads the configuration information config.json, which is used to collect basic information of the local machine and is divided into the following processing situations: a) License information is automatically written using the salted MD5 algorithm. When communicating with the server, the license information will be automatically carried to confirm whether it is a legitimate client; b) Client process list information, only the process information in the list will be pushed to the server; c) Service detection information: For programs with HTTP access interfaces, if they have survival verification interfaces, configure the corresponding interface address in this item. The program will automatically load the address and trigger a get request. If the return value code is 200, the authentication is valid, otherwise it is invalid. d) Expand the script list and put the execution script of the plug-in program into the parameter to realize the monitoring of specific programs. It is used to monitor the connectivity status of other servers. Put the execution script of the program in the script list. The client program will automatically execute the script and report the result value to the server in JSON format using the http protocol; 3) Server side: After the client submits the data to the server program, the server ETL program compares it according to the preset threshold information. If it exceeds the threshold range, an abnormal alarm will be issued and the warning information will be stored in the library table.
2. The method for implementing full-link detection according to claim 1, characterized in that: The basic information includes memory, CPU usage, operating system type, system startup time, whether the monitored application process is alive, whether the monitored application port is normally accessed, and whether the monitored application service is normal.
3. The method for implementing full-link detection according to claim 2, characterized in that: It also includes 4) data display: loading indicators and alarm data are displayed in the form of a monitoring panel, and indicator cards are automatically generated for each connected application.
4. The method for implementing full-link detection according to claim 3, characterized in that: It also includes 5) security optimization: the client uses the salted MD5 algorithm to generate a unique number as the client's license content and writes it into the configuration file. This content will be automatically generated each time the program is started. The content should be submitted to the server for authorization. After the server authorizes it, the client's data can be reported to the server normally.
5. The method for implementing full-link detection according to claim 4, characterized in that: It also includes 6) cross-platform design: the client program is written in nodejs and packaged into an executable program using pkg, supporting windows, Mac, and linux operating systems, so that you can code in one place and run everywhere.
6. A method for implementing full-link detection according to claim 5, characterized in that: It also includes 7) Extended script return value structure: The return value of the extended script should be a JSON structure, including the result code, and the value 200 represents normal.
Citation Information
Patent Citations
Full-link tracking method and system, storage medium and equipment
CN114116396A
Resource monitoring system and method applied to micro-service architecture
CN115118623A
Link log monitoring method, monitoring platform and computer readable storage medium
CN116800597A
Cross-platform equipment monitoring method and system based on OPC UA protocol
CN116886516A
Communications enterprise server monitor
US20090144413A1
