CN114024819B - Event information reporting method and device - Google Patents
Event information reporting method and device Download PDFInfo
- Publication number
- CN114024819B CN114024819B CN202111151464.9A CN202111151464A CN114024819B CN 114024819 B CN114024819 B CN 114024819B CN 202111151464 A CN202111151464 A CN 202111151464A CN 114024819 B CN114024819 B CN 114024819B
- Authority
- CN
- China
- Prior art keywords
- information
- event
- reported
- event information
- sending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 102
- 230000008569 process Effects 0.000 claims abstract description 48
- 230000005540 biological transmission Effects 0.000 claims description 44
- 230000015654 memory Effects 0.000 claims description 15
- 230000006870 function Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000007689 inspection Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0681—Configuration of triggering conditions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method and a device for reporting event information, wherein the method comprises the following steps: acquiring event information generated by an event program, wherein the event information comprises a process number and event occurrence time; if the process number in the event information is smaller than or equal to the maximum process number of the system where the event program is located, and the event occurrence time is earlier than the current time, generating information to be reported according to the event information, and storing the information to be reported in a sending queue; and sending the information to be reported in the sending queue to the management equipment. On the basis of executing the method, the event program can be simplified, the rationality of the event information is detected, the reasonable event information is reported, useless workload when the event information is reported is reduced, and the sending efficiency of the real event information is improved.
Description
Technical Field
The invention relates to the technical field of network management, in particular to an event information reporting method and device.
Background
The simple network management protocol (Simple Network Management Protocol, SNMP) is a standard protocol specifically designed for managing network nodes (servers, workstations, routers, switches, hub, etc.) in an IP network, which is an application layer protocol. In a network management system using an SNMP protocol, the network management system comprises managed devices and a manager, the manager can check the state of each managed device in an active inspection mode, the managed devices can report the state to the manager actively, and because a large number of servers exist in the system, the manager is very time-consuming in inspection of the state of each server, the manager can manage the managed devices in an active event reporting mode, the manager can send information to the manager in a unified event reporting mode, agents in the managed devices can report error conditions to a network management workstation at any time, and report the error conditions without waiting for the manager to poll for inspection, thereby improving the timeliness of event reporting.
However, in the prior art, when the managed device actively reports the state to the manager, the event program of the managed device needs to have an active reporting function, so that the complexity of the event program is increased.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect that event programs of managed equipment are required to have an active reporting function when the managed equipment actively reports the state to a manager in the prior art, and the event programs have great complexity, so that the event information reporting method and device are provided.
The first aspect of the present invention provides a method for reporting event information, including: acquiring event information generated by an event program, wherein the event information comprises a process number and event occurrence time; if the process number in the event information is smaller than or equal to the maximum process number of the system where the event program is located, and the event occurrence time is earlier than the current time, generating information to be reported according to the event information, and storing the information to be reported in a sending queue; and sending the information to be reported in the sending queue to the management equipment.
Optionally, in the event information reporting method provided by the present invention, the step of acquiring event information generated by an event program includes: scanning an event information table, and acquiring the event information through the event information table; event information in the event information table is written by the event program.
Optionally, the event information reporting method provided by the invention further includes: comparing the information to be reported in the sending queue with each other; and if the occurrence number of the same information to be reported in the sending queue is larger than a preset value, deleting the information to be reported, of which the occurrence number of parts is larger than the preset value, so that the occurrence number of the same information to be reported in the sending queue is smaller than or equal to the preset value.
Optionally, in the event information reporting method provided by the present invention, the step of generating the information to be reported according to the event information and storing the information to be reported in a sending queue includes: generating information to be reported according to the object identifier, the data type, the data and the event occurrence time; generating a hash value corresponding to the information to be reported according to the information to be reported; and correspondingly storing the information to be reported and the hash value in the sending queue.
Optionally, the event information reporting method provided by the invention further includes: comparing hash values in the transmit queues with each other; if the occurrence number of the same hash value in the sending queue is larger than a preset value, deleting the hash value with the occurrence number of part larger than the preset value and the information to be reported corresponding to the hash value, so that the occurrence number of the same hash value in the sending queue is smaller than or equal to the preset value.
Optionally, in the event information reporting method provided by the present invention, sending information to be reported in the sending queue to a management device includes: and if the address of the management equipment belongs to a virtual router, sending the information to be reported in the queue to the management equipment through the virtual router.
Optionally, in the event information reporting method provided by the present invention, the event information includes a target reporting type, and if the target reporting type of the event information is notification type, after the step of sending the information to be reported in the sending queue to the management device, the method further includes: receiving reporting feedback information sent by the management equipment; and if the reported feedback information is the transmission failure, the information to be reported is sent again until the transmission is successful, or the number of times of sending the information to be reported exceeds a sending threshold.
The second aspect of the present invention provides an event information reporting device, including: the event information acquisition module is used for acquiring event information generated by an event program, wherein the event information comprises a process number and event occurrence time; the information to be reported generation module is used for generating information to be reported according to the event information and storing the information to be reported in a sending queue if the process number in the event information is smaller than or equal to the system maximum process number of a system where the event program is located and the event occurrence time is smaller than the current time; and the information reporting module is used for sending the information to be reported in the sending queue to the management equipment.
A third aspect of the present invention provides a computer apparatus comprising: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so as to execute the event information reporting method provided in the first aspect of the present invention.
A fourth aspect of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the event information reporting method as provided in the first aspect of the present invention.
The technical scheme of the invention has the following advantages:
according to the event information reporting method and device provided by the invention, the event information is not transmitted by the event program, the event program acquires the event information after generating the event information, the reporting program firstly detects the rationality of the event information according to the process number and the event occurrence time in the event information after acquiring the event information, the event information is generated according to the event information and is stored in the transmission queue only when the event information is reasonable, and the information to be reported in the transmission queue is transmitted to the management equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a specific example of an event information reporting method provided in an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a specific example of an event information reporting apparatus provided in an embodiment of the present invention;
fig. 3 is a schematic block diagram of a specific example of a computer device provided in an embodiment of the present invention.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments, the exemplary embodiments of the present application and the descriptions thereof are used to explain the present application and do not constitute undue limitations of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that, in this document, 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 the element.
The embodiment of the invention provides an event information reporting method, as shown in fig. 1, comprising the following steps:
step S11: event information generated by an event program is acquired, wherein the event information comprises a process number and event occurrence time.
In an alternative embodiment, the event information refers to information of events generated by the event program during execution.
Step S12: judging whether the process number in the event information is smaller than or equal to the maximum process number of the system where the event program is located and whether the event occurrence time is earlier than the current time.
If the process number in the event information is smaller than the system maximum process number of the system where the event program is located, and the event occurrence time is earlier than the current time, executing step S13 and step S14; if the process number in the event information is larger than the maximum process number of the system where the event program is located, or the event occurrence time is later than the current time, judging that the event information is abnormal, and not processing the event information.
In an alternative embodiment, the process number in the event information is the process number corresponding to the event program when the event information is generated, the maximum process number of the system in the system where the event program is located is dynamically changed, the processes are dynamically generated and dynamically eliminated, when the processes are generated, the system allocates a number for the processes in sequence, and the process number in the event information is also allocated to the system where the event program is located, so that under normal conditions, the situation that the process code in the event information is larger than the maximum process number of the system does not occur, and abnormal event information can be eliminated by comparing the process number in the event information with the maximum process number of the system.
In normal cases, the time at which the event occurs must be before the current time, and thus, by comparing the event occurrence time in the event information with the current time, the abnormal event information can be excluded.
In the embodiment of the invention, the event information is detected by combining the process number in the event information and the event occurrence event, and the abnormal event information is filtered.
Step S13: and generating information to be reported according to the event information, and storing the information to be reported in a sending queue.
In an alternative embodiment, the event information includes, in addition to the event occurrence time and the process number, an object identifier (Object Identifier, OID), a data type, a data, a target transmission type, and the like of the event, and when generating the information to be reported, part or all of the information in the event information may be arranged in sequence, and format conversion may be performed to form the information to be reported.
Step S14: and sending the information to be reported in the sending queue to the management equipment.
In an optional embodiment, the information to be reported in the sending queue may be sent to the management device periodically, or when the information to be reported exists in the sending queue, the information to be reported in the sending queue may be sent to the management device in real time.
In an alternative embodiment, after one piece of information to be reported in the transmission queue is transmitted, the information to be reported can be deleted from the transmission queue, so that repeated transmission is avoided, and interference is caused to data analysis of the management device.
According to the event information reporting method provided by the embodiment of the invention, the event information is not transmitted by the event program, the event program acquires the event information by the reporting program after generating the event information, the reporting program detects the rationality of the event information according to the process number and the event occurrence time in the event information after acquiring the event information, the information to be reported is generated according to the event information and stored in the transmission queue only when the event information is reasonable, and the information to be reported in the transmission queue is transmitted to the management equipment.
In an alternative embodiment, the step S11 specifically includes:
scanning an event information table, and acquiring event information through the event information table; event information in the event information table is written by the event program.
In the embodiment of the invention, after the event program generates the event information, the event information is written into the event information table, and the program responsible for reporting the event information acquires the event information from the event information table, so that the event program and the program used for reporting the event information are not interfered with each other.
In an alternative embodiment, when a managed device includes a plurality of event programs, event information generated by each event program may be written into the same event information table, and the program for reporting event information acquires event information generated by the plurality of event programs by scanning one event information table.
In an alternative embodiment, when a managed device includes a plurality of event programs, event information generated by each event program may be written into different event information tables, and the program for reporting event information acquires the event information generated by the plurality of event programs by scanning the different event information tables.
In an alternative embodiment, in order to distinguish event information generated by different event programs, when each event program writes the respective generated event information into the event information table, a respective identifier may be added to the event program, and the program for reporting the event information is combined with the identifier to generate information to be reported, and after receiving the information to be reported, the management device may determine the event program for generating the event information according to the identifier carried in the information to be reported.
In an alternative embodiment, the event information may be obtained by periodically scanning an event information table.
In an alternative embodiment, the event information table is stored in the database, and a reminding mechanism of the database can be used, when new event information is written in the event information table, prompt information sent by the database is received, and the event information table is scanned after the prompt information is received to obtain the event information.
The periodic scanning event information table is lower in requirement on equipment computing capacity for acquiring event information, the event information table is scanned according to prompt information sent by a database to acquire the event information, timeliness of acquiring the event information is stronger, and a proper scanning mechanism can be selected according to actual requirements in a specific implementation process.
In an optional embodiment, the event information reporting method provided by the embodiment of the present invention further includes:
and comparing the information to be reported in the transmission queue with each other, and if the occurrence number of the same information to be reported in the transmission queue is larger than a preset value, deleting the information to be reported, of which the occurrence number of parts is larger than the preset value, so that the occurrence number of the same information to be reported in the transmission queue is smaller than or equal to the preset value.
In an alternative embodiment, the information to be reported in the sending queue may be compared with each other periodically, for example, the information to be reported in the sending queue may be compared with each other every 1 s.
Because the information to be reported in the sending queue can be continuously sent, the data in the sending queue can be updated at a higher speed, when a large amount of the same information to be reported exists in the sending queue at the same time, the event program is indicated to generate a large amount of the same event information in a very short time, the event program may have abnormality, and the management equipment can judge that the event program has abnormality according to the same information with the preset value, and does not need to judge through more identical information, so when the occurrence number of the same information to be reported in the sending queue is larger than the preset value, part of the information to be reported can be deleted, so that the number of the same information to be reported is controlled within the preset value, and the influence on the sending of other information to be reported is avoided.
In an alternative embodiment, the preset value may be determined according to the actual requirement and the device computing capability, and may be set to 100, 200, or the like, for example.
In an alternative embodiment, the step S13 specifically includes:
first, information to be reported is generated according to the object identifier, the data type, the data and the event occurrence time. For example, the object identifier, the data type, the data and the event occurrence time can be sequenced and then converted into a specific form to form the information to be reported, and the converted form needs to be restored by the management device, so that the management device can analyze the event program based on the received information to be reported.
And then, generating a hash value corresponding to the information to be reported according to the information to be reported. In the embodiment of the invention, the hash value is generated according to the information to be reported in order to uniquely identify the information to be reported. In other embodiments, the unique identifier of the information to be reported may be generated in other ways.
And finally, correspondingly storing the information to be reported and the hash value in a transmission queue.
In an optional embodiment, if a hash value corresponding to the information to be reported is generated according to the information to be reported, and the information to be reported and the hash value are correspondingly stored in the sending queue, the event information reporting method provided by the embodiment of the invention further includes:
and comparing the hash values in the transmission queue with each other, and if the occurrence number of the same hash value in the transmission queue is larger than a preset value, deleting the hash value of which the occurrence number of parts is larger than the preset value and the information to be reported corresponding to the hash value, so that the occurrence number of the same hash value in the transmission queue is smaller than or equal to the preset value.
In the embodiment of the invention, the hash value with the occurrence number of the part being larger than the preset value and the information to be reported corresponding to the hash value are deleted, so that the occurrence number of the same hash value in the transmission queue is smaller than or equal to the preset value, namely, the occurrence number of the same information to be reported in the transmission queue is smaller than or equal to the preset value.
In the embodiment of the invention, the same information to be reported is determined by comparing the hash values, so that the calculated amount is smaller and the comparison process is faster.
In an alternative embodiment, when the information to be reported is sent to the management device in step S14, if the address of the management device belongs to the virtual router, the information to be reported in the queue is sent to the management device through the virtual router. When the information to be reported is sent to the management equipment through the virtual router, a specific field is added into the data packet in the process of packaging the information to be reported so as to send the information through the virtual router.
If the address of the management device does not belong to the virtual router, the management device normally transmits. When the information to be reported is normally sent, a specific field corresponding to the virtual router does not need to be added into the data packet.
In an optional embodiment, the event information includes a target reporting type, and if the target reporting type of the event information is an informing type (form), in the event information reporting method provided in the embodiment of the present invention, after executing the step S14, the method further includes:
and receiving the reporting feedback information sent by the management equipment, and if the reporting feedback information is failed to be sent, re-sending the information to be reported until the sending is successful, or sending times of the information to be reported exceeds a sending threshold value. And the management equipment feeds back the reporting feedback information only when the target reporting type is the form.
In an alternative embodiment, the reporting types of the event information include two types: and a notification type (description) and a description type (trap), wherein if the report type is the description type, the management device is required to return the report feedback information after the event information is reported, and if the report type is the trap, the management device is not required to return the report feedback information after the event information is reported.
The event program may set different transmission types for event information according to the importance level of the event, set the transmission type to form for important information, and set the transmission type to trap for relatively unimportant information.
In an alternative embodiment, if the event information with the target reporting type of form is obtained by scanning the event information table, the event information is deleted from the event information table only when the information to be reported generated by the event information is successfully transmitted, or the number of times of transmitting the information to be reported exceeds a transmission threshold, and a log of transmission success is recorded.
The transmission threshold may be set according to actual requirements, and illustratively, the transmission threshold may be 3, that is, the information to be reported generated by the event information with the target reporting type of form has 3 opportunities to be transmitted.
In an alternative embodiment, the execution process of the steps in any of the above embodiments may be encapsulated as a function and stored in a function library, and after the event program generates the time information, the event program may call the function formed by the steps other than the step S11, so as to complete reporting of the event information.
The embodiment of the invention also provides an event information reporting device, as shown in fig. 2, comprising:
the event information obtaining module 21 is configured to obtain event information generated by an event program, where the event information includes a process number and an event occurrence time, and details are described in the above method embodiments, and are not described herein again.
The to-be-reported information generating module 22 is configured to generate to-be-reported information according to the event information if the process number in the event information is less than or equal to the system maximum process number of the system where the event program is located, and the event occurrence time is less than the current time, and store the to-be-reported information in the transmission queue, which is described in detail in the above method embodiment, and will not be described herein.
The information reporting module 23 is configured to send the information to be reported in the sending queue to the management device, and details of the information reporting module are described in the above method embodiments, which are not described herein.
The event information reporting device provided by the embodiment of the invention is characterized in that the event information is not transmitted by an event program, the event program acquires the event information by the reporting program after generating the event information, the reporting program detects the rationality of the event information according to the process number and the event occurrence time in the event information after acquiring the event information, the event information is generated according to the event information and stored in a transmission queue only when the event information is reasonable, and the information to be reported in the transmission queue is transmitted to the management equipment.
In an alternative embodiment, in the event information reporting device provided in the embodiment of the present invention, the event information obtaining module 21 specifically includes:
the event information table scanning sub-module is used for scanning the event information table and acquiring event information through the event information table; the event information in the event information table is written by the event program, and details are described in the above method embodiments, which are not repeated here.
In an optional embodiment, the event information reporting device provided by the embodiment of the present invention further includes:
the information comparison module is used for comparing the information to be reported in the sending queue with each other;
and the first information deleting module is used for deleting the information to be reported, of which the number of times of occurrence is larger than a preset value, if the number of times of occurrence of the same information to be reported in the transmission queue is larger than the preset value, so that the number of times of occurrence of the same information to be reported in the transmission queue is smaller than or equal to the preset value, and details are described in the embodiment of the method and are not repeated.
In an alternative embodiment, in the event information reporting device provided in the embodiment of the present invention, the to-be-reported information generating module 22 specifically includes:
the information to be reported generation sub-module is configured to generate information to be reported according to the object identifier, the data type, the data, and the event occurrence time, and details of the information to be reported are described in the above method embodiments, which are not described herein.
The hash value calculation sub-module is configured to generate a hash value corresponding to the information to be reported according to the information to be reported, and details of the hash value calculation sub-module are described in the above method embodiments, and are not described herein again.
The information to be reported storage sub-module is configured to store the information to be reported and the hash value in the transmission queue correspondingly, and details refer to the description in the above method embodiment, and are not repeated herein.
In an optional embodiment, the event information reporting device provided by the embodiment of the present invention further includes:
the hash value comparison module is configured to compare hash values in the transmission queue with each other, and details of the hash value comparison module are described in the above method embodiments, which are not described herein.
And the second information deleting module is used for deleting the hash value with the occurrence number of the same hash value being larger than the preset value and the information to be reported corresponding to the hash value if the occurrence number of the same hash value in the transmission queue is larger than the preset value, so that the occurrence number of the same hash value in the transmission queue is smaller than or equal to the preset value, and details are described in the embodiment of the method and are not repeated.
In an alternative embodiment, in the event information reporting device provided in the embodiment of the present invention, the information reporting module 23 includes:
and the virtual sending sub-module is used for sending the information to be reported in the queue to the management equipment through the virtual router if the address of the management equipment belongs to the virtual router, and details are described in the embodiment of the method and are not repeated herein.
In an optional embodiment, the event information includes a target report type, and the event information reporting device provided in the embodiment of the present invention further includes:
the detailed content of the feedback information receiving module, configured to receive the reporting feedback information sent by the management device, is described in the foregoing method embodiment, and is not described herein again.
And the information retransmission module is used for retransmitting the information to be reported until the transmission is successful or the transmission times of the information to be reported exceeds a transmission threshold value if the feedback information to be reported is failed to be transmitted, and details are described in the embodiment of the method and are not repeated.
An embodiment of the present invention provides a computer device, as shown in fig. 3, where the computer device mainly includes one or more processors 31 and a memory 32, and one processor 31 is illustrated in fig. 3.
The computer device may further include: an input device 33 and an output device 34.
The processor 31, the memory 32, the input device 33 and the output device 34 may be connected by a bus or otherwise, in fig. 3 by way of example.
The processor 31 may be a central processing unit (Central Processing Unit, CPU). The processor 31 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 32 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the event information reporting apparatus, and the like. In addition, the memory 32 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 32 may optionally include memory located remotely from processor 31, which may be connected to the event information reporting device via a network. The input device 33 may receive a user entered calculation request (or other numeric or character information) and generate key signal inputs associated with the event information reporting device. The output device 34 may include a display device such as a display screen for outputting the calculation result.
The embodiment of the invention provides a computer readable storage medium which stores computer instructions and computer executable instructions, wherein the computer executable instructions can execute the event information reporting method in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.
Claims (10)
1. An event information reporting method executed by a reporting program, comprising:
acquiring event information generated by an event program, wherein the event information comprises a process number and event occurrence time;
if the process number in the event information is smaller than or equal to the maximum process number of the system where the event program is located, and the event occurrence time is earlier than the current time,
generating information to be reported according to the event information, and storing the information to be reported in a sending queue;
and sending the information to be reported in the sending queue to the management equipment.
2. The event information reporting method according to claim 1, wherein the step of acquiring event information generated by an event program comprises:
scanning an event information table, and acquiring the event information through the event information table; event information in the event information table is written by the event program.
3. The event information reporting method according to claim 1, wherein after the step of generating information to be reported from the event information and storing the information to be reported in a transmission queue, the method further comprises:
comparing the information to be reported in the sending queue with each other;
and if the occurrence number of the same information to be reported in the sending queue is larger than a preset value, deleting the information to be reported, of which the occurrence number of parts is larger than the preset value, so that the occurrence number of the same information to be reported in the sending queue is smaller than or equal to the preset value.
4. The event information reporting method according to claim 1, wherein the step of generating information to be reported according to the event information and storing the information to be reported in a transmission queue includes:
generating information to be reported according to the object identifier, the data type, the data and the event occurrence time;
generating a hash value corresponding to the information to be reported according to the information to be reported;
and correspondingly storing the information to be reported and the hash value in the sending queue.
5. The event information reporting method according to claim 4, wherein after the step of generating information to be reported from the event information and storing the information to be reported in a transmission queue, the method further comprises:
comparing hash values in the transmit queues with each other;
if the occurrence number of the same hash value in the sending queue is larger than a preset value, deleting the hash value with the occurrence number of part larger than the preset value and the information to be reported corresponding to the hash value, so that the occurrence number of the same hash value in the sending queue is smaller than or equal to the preset value.
6. The event information reporting method according to claim 1, wherein sending the information to be reported in the send queue to a management device includes:
and if the address of the management equipment belongs to a virtual router, sending the information to be reported in the queue to the management equipment through the virtual router.
7. The method for reporting event information according to claim 1, wherein the event information includes a target reporting type, and further comprising, after the step of sending the information to be reported in the transmission queue to the management device, if the target reporting type of the event information is notification type:
receiving reporting feedback information sent by the management equipment;
and if the reported feedback information is the transmission failure, the information to be reported is sent again until the transmission is successful, or the number of times of sending the information to be reported exceeds a sending threshold.
8. An event information reporting device, belonging to a reporting program, comprising:
the event information acquisition module is used for acquiring event information generated by an event program, wherein the event information comprises a process number and event occurrence time;
the information to be reported generation module is used for generating information to be reported according to the event information and storing the information to be reported in a sending queue if the process number in the event information is smaller than or equal to the system maximum process number of a system where the event program is located and the event occurrence time is smaller than the current time;
and the information reporting module is used for sending the information to be reported in the sending queue to the management equipment.
9. A computer device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to perform the event information reporting method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the event information reporting method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111151464.9A CN114024819B (en) | 2021-09-29 | 2021-09-29 | Event information reporting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111151464.9A CN114024819B (en) | 2021-09-29 | 2021-09-29 | Event information reporting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114024819A CN114024819A (en) | 2022-02-08 |
CN114024819B true CN114024819B (en) | 2023-08-08 |
Family
ID=80055281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111151464.9A Active CN114024819B (en) | 2021-09-29 | 2021-09-29 | Event information reporting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114024819B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116028508B (en) * | 2023-03-27 | 2023-07-21 | 青岛鼎信通讯股份有限公司 | Reporting storage method and device, electric energy meter equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020976A (en) * | 2016-05-13 | 2016-10-12 | 北京百度网讯科技有限公司 | Method and apparatus for offloading out of memory processing process to user space |
CN106452840A (en) * | 2016-09-09 | 2017-02-22 | 青岛海信宽带多媒体技术有限公司 | Method and apparatus for reporting network terminal events |
CN111352790A (en) * | 2020-02-20 | 2020-06-30 | Oppo(重庆)智能科技有限公司 | Test method and device for reporting input event, mobile terminal and storage medium |
CN111782416A (en) * | 2020-06-08 | 2020-10-16 | Oppo广东移动通信有限公司 | Data reporting method, device, system, terminal and computer readable storage medium |
CN111865691A (en) * | 2020-07-22 | 2020-10-30 | 平安证券股份有限公司 | Alarm file distribution method, device, equipment and medium based on artificial intelligence |
CN112799925A (en) * | 2021-01-25 | 2021-05-14 | 北京嘀嘀无限科技发展有限公司 | Data acquisition method and device, electronic equipment and readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2952563A1 (en) * | 2014-06-16 | 2015-12-23 | Kinderguardian Inc. | System and method for managing behavior |
-
2021
- 2021-09-29 CN CN202111151464.9A patent/CN114024819B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020976A (en) * | 2016-05-13 | 2016-10-12 | 北京百度网讯科技有限公司 | Method and apparatus for offloading out of memory processing process to user space |
CN106452840A (en) * | 2016-09-09 | 2017-02-22 | 青岛海信宽带多媒体技术有限公司 | Method and apparatus for reporting network terminal events |
CN111352790A (en) * | 2020-02-20 | 2020-06-30 | Oppo(重庆)智能科技有限公司 | Test method and device for reporting input event, mobile terminal and storage medium |
CN111782416A (en) * | 2020-06-08 | 2020-10-16 | Oppo广东移动通信有限公司 | Data reporting method, device, system, terminal and computer readable storage medium |
CN111865691A (en) * | 2020-07-22 | 2020-10-30 | 平安证券股份有限公司 | Alarm file distribution method, device, equipment and medium based on artificial intelligence |
CN112799925A (en) * | 2021-01-25 | 2021-05-14 | 北京嘀嘀无限科技发展有限公司 | Data acquisition method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114024819A (en) | 2022-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102681644B1 (en) | Blockchain message processing methods and devices, computers and readable storage media | |
CN111262938B (en) | DNS server selection method and proxy server | |
CN104753994B (en) | Method of data synchronization and its device based on aggregated server system | |
US10680874B2 (en) | Network service fault handling method, service management system, and system management module | |
US10601643B2 (en) | Troubleshooting method and apparatus using key performance indicator information | |
US6941367B2 (en) | System for monitoring relevant events by comparing message relation key | |
US20090037573A1 (en) | System and method of health monitoring and fault monitoring in a network system | |
CN110545260A (en) | Cloud management platform construction method based on mimicry structure | |
CN109960634B (en) | Application program monitoring method, device and system | |
US20070168201A1 (en) | Formula for automatic prioritization of the business impact based on a failure on a service in a loosely coupled application | |
CN114024819B (en) | Event information reporting method and device | |
EP2381630B1 (en) | Monitoring a mobile data service associated with a mailbox | |
US8077699B2 (en) | Independent message stores and message transport agents | |
US7673035B2 (en) | Apparatus and method for processing data relating to events on a network | |
CN108880994B (en) | Method and device for retransmitting mails | |
CN115987827B (en) | Equipment monitoring method and device, electronic equipment and readable medium | |
US12034793B2 (en) | Retrieving operational command response text from network devices | |
CN112929191B (en) | Service monitoring method, system, related equipment and device | |
US9172596B2 (en) | Cross-network listening agent for network entity monitoring | |
CN117041172B (en) | White box switch interface request processing method and device | |
WO2019164428A1 (en) | Method and first node for managing transmission of probe messages | |
WO2022105685A1 (en) | Memory management method and device for optical transmission device, and storage medium | |
CN110569120B (en) | Processing method and device for timing task | |
CN115865612A (en) | Network fault processing method and device, storage medium and electronic equipment | |
CN112866359A (en) | Data uplink method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |