An Internet service state detection method, device, equipment and storage medium
By storing public and private network information in a local database and configuring network mapping and information association, the flexibility and data integrity issues of existing Internet service status detection platforms are resolved, enabling customized monitoring and data accuracy.
Patent Information
- Application Number
- CN202311227033.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-09-21
AI Technical Summary
Existing internet business status detection platforms lack flexibility, cannot customize monitoring metrics, and suffer from data integrity issues.
By acquiring public and private network information from the internet, storing it in a local database, configuring network mapping, calling APIs to associate information, using pre-set monitoring software for monitoring, and pushing monitoring data to administrators.
It ensures the accuracy and integrity of internet service status, allows for the customization of monitoring items, and improves the flexibility of detection.
Smart Images

Figure CN117041119B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of Internet service status detection, specifically relating to a method, apparatus, device, and storage medium for detecting the status of Internet services. Background Technology
[0002] In daily operations, various enterprise application services need to be published on the internet for users to access. The status of these applications and the integrity of the internet connection directly impact the end-user experience. Detecting the IP address and port used by an application to access the internet is crucial in determining whether application access is functioning correctly. Therefore, quickly identifying issues with the status of internet services presents a significant challenge.
[0003] Existing technologies mostly rely on third-party application performance monitoring platforms to monitor the performance of clients, servers, and networks. This involves monitoring and analyzing data such as network requests from terminals and the elements in interactive pages, loading times, throughput, and error module information to obtain the business status of the internet. However, this business status detection method lacks flexibility, cannot customize monitoring metrics for internet ports, and requires platform maintenance for each port. Furthermore, third-party application performance monitoring platforms intelligently configure public IP addresses and monitoring ports, failing to associate the corresponding internal IP addresses, responsible personnel, public network data centers, and ISPs, resulting in incomplete monitoring data. Summary of the Invention
[0004] Therefore, this application provides a method, apparatus, device, and storage medium for detecting the status of Internet services, which helps to solve the problems of poor flexibility and lack of data integrity in existing Internet status detection platforms.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] Firstly, this application provides a method for detecting the status of Internet services, including:
[0007] Obtain public network information and intranet information from the Internet, and store the public network information and intranet information in a local database;
[0008] Configure network mapping for network devices;
[0009] Call the API to read the network mapping configuration in the network device, and associate the network mapping configuration with the public network information and internal network information in the local database;
[0010] The system invokes preset monitoring software to start preset monitoring items on the Internet, and monitors the Internet service interaction information in the network device according to the preset monitoring items to obtain Internet service status data.
[0011] According to the preset data push method, the Internet service status data is pushed to the administrator.
[0012] Furthermore, the acquisition of public network information and internal network information of the Internet includes:
[0013] Collect public network information and intranet information from Internet business systems, and pre-enter the public network information and intranet information into the local database of the preset operation and management platform;
[0014] The public network information includes the public IP address, the data center to which the public network belongs, the operator to which the public network belongs, and the person in charge of the public IP address; the internal network information includes the internal network IP address and the services to which the internal network belongs.
[0015] The local database is used to manage and record information on IT infrastructure, equipment, software, and personnel configuration within the internet business organization.
[0016] Furthermore, the network mapping configuration for the network device includes:
[0017] Based on the public IP address, internal IP address, and port of the Internet business system, configure the mapping relationship between the public IP address, port, and internal IP address and port in the network device to publish the business belonging to the internal network to the public network.
[0018] Furthermore, the step of calling the API to read the network mapping configuration in the network device and associating the network mapping configuration with public network information and internal network information in the local database includes:
[0019] Call the API function of the network device to read the network mapping configuration from the network device and obtain the mapping relationship between public IP and port and internal IP and port;
[0020] Based on the mapping relationship, data association is performed between the public network IP, the data center to which the public network belongs, the operator to which the public network belongs, and the person in charge of the public network IP in the local database, and the internal network IP and the business to which the internal network belongs.
[0021] Secondly, this application also provides a device for detecting the status of Internet services, comprising:
[0022] The data entry module is used to acquire public network information and intranet information from the Internet, and store the public network information and intranet information in a local database;
[0023] The mapping configuration module is used to configure network mapping for network devices;
[0024] The data association module is used to call the API to read the network mapping configuration in the network device and associate the network mapping configuration with the public network information and internal network information in the local database.
[0025] The service monitoring module is used to call the preset monitoring software to start the preset monitoring items of the Internet, monitor the Internet service interaction information in the network device according to the preset monitoring items, and obtain Internet service status data.
[0026] The data push module is used to push the Internet service status data to the administrator according to a preset data push method.
[0027] Thirdly, this application provides a computer device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0028] Fourthly, a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the method described in the first aspect.
[0029] The application employs the above technical solution and has at least the following beneficial effects:
[0030] This application provides a method for detecting the status of internet services. The method acquires public and private network information and stores it in a local database. Simultaneously, it reads the network mapping configuration from network devices and associates this configuration with the public and private network information in the local database. This allows for the simultaneous acquisition of information such as the private IP address, the person in charge of the service, the data center to which the public network belongs, and operational details during the detection of internet service status. This ensures the accuracy and integrity of the detected monitoring data. Furthermore, by configuring network mapping on network devices, this application allows for customization of the port corresponding to the public IP address and flexible setting and activation of internet monitoring items, improving the flexibility of internet service status detection.
[0031] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
[0033] Figure 1 This is a flowchart illustrating a method for detecting the status of Internet services according to an exemplary embodiment;
[0034] Figure 2 This is an architectural diagram of an Internet service status detection device according to an exemplary embodiment. Detailed Implementation
[0035] To make the purpose, technical solution and advantages of this application clearer, the technical solution of this application will be described in detail below.
[0036] Currently, internet companies typically use APM (Application Performance Management) purchases, such as "Tingyun," to probe the status of their internet services. While this method has some effectiveness, it also has its limitations:
[0037] 1. High price: These products cannot be purchased in a lump sum; they require long-term payment based on the amount of monitoring performed. The number of monitored items and the monitoring frequency directly affect the cost. The cost is very high.
[0038] 2. Low level of automation: The isolated platform requires manual maintenance of monitoring data. The amount of monitoring data is directly proportional to the business volume, resulting in a large workload. Furthermore, the accuracy and timeliness of the data are also challenged.
[0039] 3. Privacy and security issues: When using a third-party APM (Application Performance Management / Monitoring) platform to monitor business operations, the security and privacy of the data may not be guaranteed.
[0040] 4. Lack of data integrity: Third-party APM platforms can only configure public IP addresses and port monitoring, and cannot associate the corresponding internal IP address, responsible person, data center, and ISP of the public network. This is not conducive to troubleshooting and communication.
[0041] 5. Flexibility: Monitoring switches all need to be maintained on the platform. In particular, since a public IP address corresponds to multiple ports, the flexibility in switching individual ports, monitoring frequency, and monitoring metrics cannot be flexibly defined.
[0042] 6. Alarm content readability: The alarm content of commercial products cannot be customized, resulting in poor readability.
[0043] To address the problems existing in the prior art, this invention provides a method, apparatus, device, and storage medium for detecting the status of internet services. When detecting the status of internet services, it can simultaneously acquire information such as the internal network IP address, the person in charge of the service, the public network server room, and operational details, ensuring the accuracy and integrity of the detected monitoring data. Furthermore, it allows for customization of the port corresponding to the public network IP address and flexible configuration and activation of internet monitoring items, improving the flexibility of service status detection. Detailed implementation of this invention is illustrated in the following embodiments.
[0044] Example 1
[0045] Please see Figure 1 , Figure 1 A method for detecting the status of Internet services is shown, including:
[0046] S1: Obtain public network information and intranet information from the Internet, and store the public network information and intranet information in a local database;
[0047] S2: Configure network mapping for network devices;
[0048] S3: Call the API to read the network mapping configuration in the network device, and associate the network mapping configuration with the public network information and internal network information in the local database;
[0049] S4: Invoke the preset monitoring software to start the preset monitoring items of the Internet, monitor the Internet service interaction information in the network device according to the preset monitoring items, and obtain Internet service status data.
[0050] S5: Push the Internet service status data to the administrator according to the preset data push method.
[0051] Furthermore, in one embodiment, obtaining public network information and internal network information of the Internet includes:
[0052] Collect public network information and intranet information from internet business systems, and pre-enter the public network information and intranet information into the local database of the preset operation and management platform.
[0053] Public network information includes the public IP address, the data center to which the public network belongs, the ISP to which the public network belongs, and the person in charge of the public IP address. Internal network information includes the internal IP address and the services associated with the internal network.
[0054] The local database is used to manage and record information on IT infrastructure, equipment, software, and personnel configuration within the internet business organization.
[0055] Specifically, the pre-configured operation and management platform of this invention is an infrastructure network management platform provided to users. This platform includes a local database, referred to as CMDB. This invention manages the acquisition of public and internal network information from internet business systems by storing it in the local database of the pre-configured operation and management platform, enabling subsequent data association and ensuring the integrity of the probe data.
[0056] Furthermore, in one embodiment, the network mapping configuration of the network device in step S2 of the present invention includes:
[0057] Based on the public IP address, internal IP address, and port of the Internet business system, configure the mapping relationship between the public IP address, port, and internal IP address and port in the network device. That is, publish the business belonging to the internal network to the public network in the way of mapping the public network + port to the internal network + port.
[0058] Among them, network equipment refers to the enterprise's Internet exit equipment, which can be used to configure public network mapping, publish internal network services to the public network, and provide them to users for access.
[0059] This invention solves the problem that traditional third-party APM platforms can only configure public IP addresses and port monitoring by customizing the mapping relationship between public IP addresses, private IP addresses, and ports on network devices, and provides data support for flexible configuration of monitoring items in the future.
[0060] Further, in one embodiment, step S3 of the present invention involves calling an API to read the network mapping configuration in the network device and associating the network mapping configuration with public network information and internal network information in a local database, including:
[0061] Call the API function of the network device to read the network mapping configuration from the network device and obtain the mapping relationship between public IP and port and internal IP and port;
[0062] Based on the mapping relationship, data association is performed between the public network IP, the data center to which the public network belongs, the operator to which the public network belongs, and the person in charge of the public network IP in the local database, and the internal network IP and the business to which the internal network belongs.
[0063] When calling the API functions of a network device, the network device needs to enable the API function first. The API defines the interface and interaction methods between software components, including the data format, protocol, authentication, parameters, and operations of requests and responses. The pre-defined operation and management platform can obtain the mapping information configured in the network device by calling the API. This invention associates the network mapping configuration with public and private network information in a local database, connecting public and private IP addresses with business names, business owners, and other information to achieve data association. This ensures that complete business-related information can be obtained when subsequently probing internet business status data, guaranteeing data integrity.
[0064] Furthermore, in one embodiment, when the preset monitoring software is called to start the preset monitoring item of the Internet in step S4 of the present invention, the preset monitoring software is deployed on a public cloud. The preset monitoring item is started by calling the monitoring software through the public cloud. This allows for flexible control of the public IP address or configuration of whether a specific port of the public IP address is monitored, thereby enabling customized monitoring templates, monitoring frequencies, monitoring thresholds, etc., and improving the flexibility of Internet service status detection.
[0065] The pre-installed monitoring software can be open-source software such as Zabbix. Zabbix can monitor various network parameters to ensure the secure operation of the server system and provides a flexible notification mechanism.
[0066] Furthermore, in one embodiment, step S5 of the present invention pushes the Internet service status data to the administrator according to a preset data push method, specifically including: the preset operation and management platform calls preset monitoring software to monitor and detect the Internet service status, and controls the opening or closing of monitoring items, and pushes the monitoring data obtained from the monitoring and detection to the administrator.
[0067] In addition, administrators can pre-set alarm templates. When detecting the status of Internet services through preset monitoring software, if the alarm templates detect abnormal data, alarms can be triggered through preset data push methods.
[0068] Specifically, the pre-installed monitoring software can interface with webhooks. If an alert is triggered, it will be pushed to internal communication groups, such as DingTalk groups and WeChat groups. A webhook is an application programming interface (API) design pattern used to implement real-time data transmission and event notification. It allows applications to send data to a specified URL via the HTTP protocol and trigger event handlers registered on a remote server.
[0069] In this embodiment, refer to Figure 2 As shown, this application also provides a device for detecting the status of Internet services, including:
[0070] The data entry module is used to acquire public network information and intranet information from the Internet, and store the public network information and intranet information in a local database;
[0071] The mapping configuration module is used to configure network mapping for network devices;
[0072] The data association module is used to call the API to read the network mapping configuration in the network device and associate the network mapping configuration with the public network information and internal network information in the local database.
[0073] The service monitoring module is used to call the preset monitoring software to start the preset monitoring items of the Internet, monitor the Internet service interaction information in the network device according to the preset monitoring items, and obtain Internet service status data.
[0074] The data push module is used to push the Internet service status data to the administrator according to a preset data push method.
[0075] This invention's internet service status detection device can simultaneously acquire information such as internal network IP, service manager, public network server room, and operational status while detecting internet service status, ensuring the accuracy and integrity of the detected monitoring data. It also allows for customization of the port corresponding to the public network IP and flexible configuration and activation of internet monitoring items, improving the flexibility of service status detection.
[0076] In addition, the present invention also provides a computer device, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method for detecting the Internet service status in Embodiment 1 above.
[0077] Furthermore, the present invention also provides a readable storage medium storing a program or instructions, which, when executed by a processor, implement the steps of the Internet service status detection method in Embodiment 1 above.
[0078] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.
[0079] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for detecting the status of Internet services, characterized in that, The method is applied to an operations management platform, including: Collect public network information and intranet information from Internet business systems, and pre-enter the public network information and intranet information into the local database of the preset operation and management platform; The public network information includes the public IP address, the data center to which the public network belongs, the operator to which the public network belongs, and the person in charge of the public IP address; the internal network information includes the internal network IP address and the services to which the internal network belongs. The local database is used to manage and record information on IT infrastructure, equipment, software, and personnel configuration within the Internet business organization; Call the API function of the network device to read the network mapping configuration from the network device and obtain the mapping relationship between public IP and port and internal IP and port; Based on the mapping relationship, data association is performed between the public network IP, the data center to which the public network belongs, the operator to which the public network belongs, and the person in charge of the public network IP in the local database, and the internal network IP and the business to which the internal network belongs; The preset monitoring software deployed in the public cloud is invoked to start preset monitoring items on the Internet, so that the preset monitoring software monitors the Internet service interaction information in the network device according to the preset monitoring items and obtains Internet service status data. The internet service status data obtained by the preset monitoring software is pushed to the management personnel according to the preset data push method.
2. A device for detecting the status of Internet services, characterized in that, include: The data entry module is used to collect public network information and intranet information from Internet business systems, and to pre-enter the public network information and intranet information into the local database of the preset operation and management platform; The public network information includes the public IP address, the data center to which the public network belongs, the operator to which the public network belongs, and the person in charge of the public IP address; the internal network information includes the internal network IP address and the business to which the internal network belongs; the local database is used to manage and record information on the IT infrastructure, equipment, software, and personnel configuration within the internet business organization; The data association module is used to call the API functions of the network device, read the network mapping configuration from the network device, and obtain the mapping relationship between the public IP and port and the internal IP and port; based on the mapping relationship, it performs data association between the public IP, the data center to which the public network belongs, the operator to which the public network belongs, and the person in charge of the public IP in the local database and the internal IP and the business to which the internal network belongs; The business monitoring module is used to call the preset monitoring software deployed in the public cloud to start preset monitoring items on the Internet, so that the preset monitoring software can monitor the Internet business interaction information in the network device according to the preset monitoring items and obtain Internet business status data. The data push module is used to push the Internet service status data obtained by the preset monitoring software to the administrators according to the preset data push method.
3. A computer device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in claim 1.
4. A readable storage medium, characterized in that, A program or instructions are stored on the readable storage medium, which, when executed by a processor, implement the steps of the method as described in claim 1.
Citation Information
Patent Citations
Configuration management system and method based on automatic discovery
CN105490826A
Method and device for self-service query of exit public network IP address, and storage medium
CN116599926A
