CN113612622A - Method and device for alarming each module under network operating system - Google Patents

Method and device for alarming each module under network operating system Download PDF

Info

Publication number
CN113612622A
CN113612622A CN202110722962.8A CN202110722962A CN113612622A CN 113612622 A CN113612622 A CN 113612622A CN 202110722962 A CN202110722962 A CN 202110722962A CN 113612622 A CN113612622 A CN 113612622A
Authority
CN
China
Prior art keywords
module
alarm
information
database
state information
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.)
Granted
Application number
CN202110722962.8A
Other languages
Chinese (zh)
Other versions
CN113612622B (en
Inventor
徐于晋
王全璞
紀柏雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110722962.8A priority Critical patent/CN113612622B/en
Publication of CN113612622A publication Critical patent/CN113612622A/en
Application granted granted Critical
Publication of CN113612622B publication Critical patent/CN113612622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for alarming each module in a network operating system, wherein the method comprises the following steps: acquiring registration information of each module; judging whether a callback function is provided or not during module registration, if so, acquiring state information of each module, processing the acquired state information, writing the processed alarm information into an alarm database, and monitoring the alarm database; if not, directly monitoring the alarm database. And when detecting that the data in the database table in the alarm database changes, sending alarm data to the collector. The time cost of network developers can be effectively reduced, alarms and log records are sent by the alarm system in a modularized and unified manner, the waste of system resources is reduced, and the requirements of guests are clearly and efficiently finished.

Description

Method and device for alarming each module under network operating system
Technical Field
The invention relates to the technical field of alarm design of modules of a network operating system, in particular to an alarm method and device for each module under the network operating system.
Background
SONiC (software for Open Networking in the cloud) is an Open source network operating system provided to routers and switches on the basis of Linux. Telemetrology is a remote technique for collecting data from physical or virtual devices at high speed.
With the increasing scale of the device of the SDN network, the carrying service is more and more, and the user puts higher requirements on the intelligent operation and maintenance of the SDN network, including that the monitoring data has higher precision so as to detect and quickly adjust the micro-burst traffic in time, and meanwhile, the monitoring process has little influence on the function and performance of the device so as to improve the utilization rate of the device and the network.
SONiC-platform-daemons provided by SONiC can only send out alarm log for hardware problem, alarm problem of other software module needs module developer to write by oneself, when module is out of order, the requirement of sending alarm through Telemetry must be connected to the server of collector by oneself, and data is put in specific database, so that Telemetry helps to send out data to collector. If many modules need to be warned, each module will take much labor and time to do the same thing. The time cost of network operators is increased by sending alarms from each module through telemetrology.
Disclosure of Invention
The alarm is needed for a plurality of modules, and each module needs to spend much labor and time to do the same things. The invention provides a method and a device for alarming each module under a network operating system, which solve the problem that the time cost of network workers is increased when each module sends an alarm.
The technical scheme of the invention is as follows:
in a first aspect, a technical solution of the present invention provides a method for alarming each module in a network operating system, including the following steps:
acquiring registration information of each module;
judging whether a callback function is provided or not during module registration, if so, acquiring state information of each module, processing the acquired state information, writing the processed alarm information into an alarm database, and monitoring the alarm database; if not, directly monitoring the alarm database.
And when detecting that the data in the alarm database changes, sending alarm data to the collector.
After the alarm data is finished, the time cost of a network developer can be effectively reduced, the alarm data is sent through the change of the data in the alarm database in a unified mode, the waste of system resources is reduced, and the requirements are finished clearly and efficiently.
Further, the step of obtaining the registration information of each module includes:
and setting registration information of each module and registering each module to the system. All modules need to be registered in the system first, and then the alarm can be given through the method.
Further, the step of directly monitoring the alarm database further comprises:
and when the module fails, writing the data to be sent into a database table of the alarm database. When the module fails, the data to be sent is actively written into a database table of the alarm database, and when the data change in the database table is monitored, the data is sent out.
Further, the steps of acquiring state information of each module, processing the acquired state information, and writing the processed alarm information into an alarm database specifically include:
judging whether a threshold value and monitoring time are set or not;
if yes, when the monitoring time is up, acquiring the state information of each module through a callback function, processing the acquired state information, and writing the processed alarm information into an alarm database;
otherwise, setting a threshold value and monitoring time, and executing the following steps: and when the monitoring time is up, acquiring the state information of each module through a callback function, processing the acquired state information, and writing the processed alarm information into an alarm database.
A user is required to set a threshold value, an alarm system judges whether to send an alarm or not according to the threshold value of the user, and the purpose of setting the monitoring time is to conveniently acquire the state information of each module through a callback function at regular time.
Further, when the monitoring time is up, acquiring state information of each module through a callback function, processing the acquired state information, and writing the processed alarm information into an alarm database specifically includes:
when the monitoring time is up, acquiring the state information of each module through a callback function;
comparing the acquired state information with a set threshold value,
judging whether the acquired state information is in a set threshold range, if so, executing the following steps: when the monitoring time is up, acquiring the state information of each module through a callback function; otherwise, writing the alarm information into an alarm database.
In a second aspect, the present invention further provides an alarm device for each module in a network operating system, including a registration information obtaining module, a determining module, a processing module, and an alarm module;
the registration information acquisition module is used for acquiring the registration information of each module;
the judging module is used for judging whether the module provides a callback function or not when registering the registration information acquired by the registration information acquiring module;
the processing module is used for acquiring the state information of each module through the callback function when the callback function is provided during module registration, processing the acquired state information and writing the processed alarm information into an alarm database;
the alarm module is used for monitoring an alarm database when the callback function is not provided during module registration; and when detecting that the data in the database table in the alarm database changes, sending alarm data to the collector. And setting registration information of each module and registering each module to the system. All modules need to be registered in the system first, and then the alarm can be given through the method.
Further, the device also comprises a registration module, and the registration module is used for setting the registration information of each module and registering each module to the system.
Further, the device also comprises a data receiving module, wherein the data receiving module is used for writing the data to be sent into the database table in the alarm database by the fault receiving module when the module has a fault. When the module fails, the data to be sent is actively written into a database table of the alarm database, and when the data change in the database table is monitored, the data is sent out.
Furthermore, the device also comprises a setting module and a judging module, wherein the setting module is also used for judging whether a threshold value and monitoring time are set;
the processing module is specifically used for acquiring the state information of each module through the callback function when the monitoring time is up, processing the acquired state information and writing the processed alarm information into an alarm database;
and the setting module is used for setting a threshold value and monitoring time. A user is required to set a threshold value, an alarm system judges whether to send an alarm or not according to the threshold value of the user, and the purpose of setting the monitoring time is to conveniently acquire the state information of each module through a callback function at regular time.
Furthermore, the processing module comprises a control unit, a comparison processing unit and a writing unit;
the control unit is used for controlling the state information of each module to be acquired through the callback function when the monitoring time is up;
the comparison processing unit is used for comparing the acquired state information with a set threshold value and judging whether the acquired state information is in the set threshold value range or not;
and the writing unit is used for writing the alarm information into the alarm database when the state information output and acquired by the comparison processing unit is not in the set threshold range.
In a third aspect, a technical solution of the present invention further provides an electronic device, including: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for information transmission between the test equipment and the communication equipment of the display device; the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the module alarm method under the network operating system according to the first aspect.
In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the method for alarming each module in the network operating system according to the first aspect.
According to the technical scheme, the invention has the following advantages: the method can be used by both hardware modules and software modules, can effectively reduce the time cost of network developers after completion, modularly and uniformly sends alarms and records logs by the alarm system, reduces the waste of system resources, and clearly and efficiently completes the requirements of guests.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
Fig. 2 is a schematic flow diagram of a method of another embodiment of the invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
SONiC-platform-daemons provided by SONiC can only send out alarm log for hardware problem, alarm problem of other software module needs module developer to write by oneself, when module is out of order, the requirement of sending alarm through Telemetry must be connected to the server of collector by oneself, and data is put in specific database, so that Telemetry helps to send out data to collector.
Telemetrology is a remote technique for collecting data from physical or virtual devices at high speed. The device periodically and actively sends data information to the collector through the push mode, and provides a real-time and high-speed data acquisition function compared with the question-answer interaction of the traditional pull mode.
As shown in fig. 1, an embodiment of the present invention provides a method for alarming each module in a network operating system, which includes the following steps:
step 11: acquiring registration information of each module;
step 12: judging whether a callback function is provided during module registration, if so, executing a step 13, otherwise, executing a step 15;
step 13: acquiring state information of each module;
step 14: processing the acquired state information, and writing the processed alarm information into an alarm database;
step 15: monitoring an alarm database;
step 16: and when detecting that the data in the alarm database changes, sending alarm data to the collector.
After the alarm data is finished, the time cost of a network developer can be effectively reduced, the alarm data is sent through the change of the data in the alarm database in a unified mode, the waste of system resources is reduced, and the requirements are finished clearly and efficiently.
Another embodiment of the present invention provides a method for alarming each module in a network operating system, which includes the following steps:
step 21: setting the registration information of each module and registering each module to the system;
step 22: acquiring registration information of each module;
step 23: judging whether a callback function is provided during module registration, if so, executing a step 24, otherwise, executing a step 26;
step 24: acquiring state information of each module;
step 25: processing the acquired state information, and writing the processed alarm information into an alarm database;
step 26: monitoring an alarm database;
step 27: and when detecting that the data in the alarm database changes, sending alarm data to the collector.
All modules need to be registered in the system first, and then the alarm can be given through the method. After the alarm data is finished, the time cost of a network developer can be effectively reduced, the alarm data is sent through the change of the data in the alarm database in a unified mode, the waste of system resources is reduced, and the requirements are finished clearly and efficiently.
As shown in fig. 2, another embodiment of the present invention provides a method for alarming each module in a network operating system, which includes the following steps:
step 31: setting the registration information of each module and registering each module to the system; when the module registration information is set, the module is divided into an active alarm module and a passive alarm module, and when the active module fails, data to be sent is written into a database table of an alarm database;
step 32: acquiring registration information of each module;
step 33: judging whether a callback function is provided during module registration, if so, executing step 34, otherwise, executing step 40; in the step, a module which does not provide the callback function is defaulted as an active alarm module;
step 34: judging whether a threshold value and monitoring time are set or not; if yes, go to step 36, otherwise go to step 35;
step 35: setting a threshold value and monitoring time; a user setting threshold value is required to be provided, an alarm system judges whether to send an alarm or not according to the threshold value of the user, and the purpose of setting monitoring time is to conveniently acquire the state information of each module through a callback function at regular time;
step 36: when the monitoring time is up, acquiring the state information of each module through a callback function;
step 37: comparing the acquired state information with a set threshold value;
step 38: judging whether the acquired state information is in a set threshold range, if so, executing a step 36, otherwise, executing a step 39;
step 39: writing the alarm information into an alarm database;
step 40: monitoring an alarm database;
step 41: and when detecting that the data in the alarm database changes, sending alarm data to the collector.
All modules need to be registered in the system first, and then the alarm can be given through the method. After the alarm data is finished, the time cost of a network developer can be effectively reduced, the alarm data is sent through the change of the data in the alarm database in a unified mode, the waste of system resources is reduced, and the requirements are finished clearly and efficiently.
The method provided by the application mainly has the function of implementing a set of alarm system, the alarm system is provided for the responsible person of each module to use, the module of the module is basically required to be registered with the system, the module can execute the subsequent step method only after being registered, the scheme provides two modes for developers to determine, one mode is a module for actively sending an alarm, the other mode is a module for passively sending an alarm, the alarm system determines whether to send an alarm or not for passive alarm, and the following detailed description explains two using conditions.
And an active alarming module:
when the module is in failure or abnormal, the module needs to actively send an alarm without providing a threshold set by a user, and the module automatically determines whether to send the alarm. The module of active alarm must register with the system before using, let the system know this module is the function that needs to send alarm and send the log.
For example, the Loop prediction module needs to send an alarm and log when a Loop occurs, first, the Loop prediction module is registered in the system, when the Loop occurs, alarm information to be sent out in the module is added to an alarm database, data change of a database table in the alarm database is monitored, and when Telemetry detects that the database changes, data is sent out to the collector.
When the module knows that an abnormity or a fault occurs, data which needs to be sent is written into the alarm database, and an alarm and a log are sent when the database is monitored to be changed.
Module of passive warning:
the passive module is registered with an alarm system before being used, a callback function is required to be provided to enable the system to take the currently monitored value at any time, a user can set a threshold value and monitoring time, when the monitoring time is up, the callback function provided by the passive module is used to take the currently monitored value, the currently monitored value is compared with the threshold value set by the user, and when the currently monitored value exceeds the high threshold value or is lower than the low threshold value, an alarm and a log are sent.
For example: the Psu _ power module has a requirement that when the power exceeds a user-defined high threshold or falls below a user-defined low threshold, an alarm and log are sent. Firstly, registering a psu _ power module in a system, setting a high threshold value and a low threshold value, setting a monitoring time, comparing the current power value of the psu with the threshold value set by a user through a callback function when the monitoring time is up, writing alarm information into an alarm database monitored by Telemetry when the power value exceeds the power high threshold value set by the user or is lower than the power low threshold value set by the user, and sending data to a collector when the Telemetry detects that the database is changed.
The invention also provides a warning device for each module under the network operating system, which comprises a registration information acquisition module, a judgment module, a processing module and a warning module;
the registration information acquisition module is used for acquiring the registration information of each module;
the judging module is used for judging whether the module provides a callback function or not when registering the registration information acquired by the registration information acquiring module;
the processing module is used for acquiring the state information of each module through the callback function when the callback function is provided during module registration, processing the acquired state information and writing the processed alarm information into an alarm database;
the alarm module is used for monitoring an alarm database when the callback function is not provided during module registration; and when detecting that the data in the database table in the alarm database changes, sending alarm data to the collector. And setting registration information of each module and registering each module to the system. All modules need to be registered in the system first, and then the alarm can be given through the method.
The invention also provides a warning device for each module under the network operating system, which comprises a registration information acquisition module, a judgment module, a processing module and a warning module;
the registration information acquisition module is used for acquiring the registration information of each module;
the judging module is used for judging whether the module provides a callback function or not when registering the registration information acquired by the registration information acquiring module;
the processing module is used for acquiring the state information of each module through the callback function when the callback function is provided during module registration, processing the acquired state information and writing the processed alarm information into an alarm database;
the alarm module is used for monitoring an alarm database when the callback function is not provided during module registration; and when detecting that the data in the database table in the alarm database changes, sending alarm data to the collector. And setting registration information of each module and registering each module to the system. All modules need to be registered in the system first, and then the alarm can be given through the method. The device also comprises a registration module, a registration module and a registration module, wherein the registration module is used for setting the registration information of each module and registering each module to the system.
The device also comprises a data receiving module, wherein the data receiving module is used for writing the data to be sent into the database table in the alarm database by the fault receiving module when the module has a fault. When the module fails, the data to be sent is actively written into a database table of the alarm database, and when the data change in the database table is monitored, the data is sent out.
The invention also provides a warning device for each module under the network operating system, which comprises a registration information acquisition module, a judgment module, a processing module and a warning module;
the registration information acquisition module is used for acquiring the registration information of each module;
the judging module is used for judging whether the module provides a callback function or not when registering the registration information acquired by the registration information acquiring module;
the processing module is used for acquiring the state information of each module through the callback function when the callback function is provided during module registration, processing the acquired state information and writing the processed alarm information into an alarm database;
the alarm module is used for monitoring an alarm database when the callback function is not provided during module registration; and when detecting that the data in the database table in the alarm database changes, sending alarm data to the collector. And setting registration information of each module and registering each module to the system. All modules need to be registered in the system first, and then the alarm can be given through the method. The device also comprises a registration module, a registration module and a registration module, wherein the registration module is used for setting the registration information of each module and registering each module to the system.
The device also comprises a data receiving module, wherein the data receiving module is used for writing the data to be sent into the database table in the alarm database by the fault receiving module when the module has a fault. When the module fails, the data to be sent is actively written into a database table of the alarm database, and when the data change in the database table is monitored, the data is sent out.
The device also comprises a setting module and a judging module, wherein the judging module is also used for judging whether a threshold value and monitoring time are set or not;
the processing module is specifically used for acquiring the state information of each module through the callback function when the monitoring time is up, processing the acquired state information and writing the processed alarm information into an alarm database;
and the setting module is used for setting a threshold value and monitoring time. A user is required to set a threshold value, an alarm system judges whether to send an alarm or not according to the threshold value of the user, and the purpose of setting the monitoring time is to conveniently acquire the state information of each module through a callback function at regular time.
It should be noted that the processing module includes a control unit, a comparison processing unit, and a writing unit;
the control unit is used for controlling the state information of each module to be acquired through the callback function when the monitoring time is up;
the comparison processing unit is used for comparing the acquired state information with a set threshold value and judging whether the acquired state information is in the set threshold value range or not;
and the writing unit is used for writing the alarm information into the alarm database when the state information output and acquired by the comparison processing unit is not in the set threshold range.
Basically, the module of the system is registered, and the module can execute the subsequent step method only after being registered, the scheme provides two modes for developers to decide, wherein one mode is a module for actively sending an alarm, the other mode is a module for passively sending an alarm, and the alarm system decides whether to send an alarm for passive alarm, and the following detailed description explains two using conditions.
And an active alarming module:
when the module is in failure or abnormal, the module needs to actively send an alarm without providing a threshold set by a user, and the module automatically determines whether to send the alarm. The module of active alarm must register with the system before using, let the system know this module is the function that needs to send alarm and send the log.
For example, the Loop prediction module needs to send an alarm and log when a Loop occurs, first, the Loop prediction module is registered in the system, when the Loop occurs, alarm information to be sent out in the module is added to an alarm database, data change of a database table in the alarm database is monitored, and when Telemetry detects that the database changes, data is sent out to the collector.
When the module knows that an abnormity or a fault occurs, data which needs to be sent is written into the alarm database, and an alarm and a log are sent when the database is monitored to be changed.
Module of passive warning:
the passive module is registered with an alarm system before being used, a callback function is required to be provided to enable the system to take the currently monitored value at any time, a user can set a threshold value and monitoring time, when the monitoring time is up, the callback function provided by the passive module is used to take the currently monitored value, the currently monitored value is compared with the threshold value set by the user, and when the currently monitored value exceeds the high threshold value or is lower than the low threshold value, an alarm and a log are sent.
For example: the Psu _ power module has a requirement that when the power exceeds a user-defined high threshold or falls below a user-defined low threshold, an alarm and log are sent. Firstly, registering a psu _ power module in a system, setting a high threshold value and a low threshold value, setting a monitoring time, comparing the current power value of the psu with the threshold value set by a user through a callback function when the monitoring time is up, writing alarm information into an alarm database monitored by Telemetry when the power value exceeds the power high threshold value set by the user or is lower than the power low threshold value set by the user, and sending data to a collector when the Telemetry detects that the database is changed.
Another embodiment of the present invention also provides an electronic device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method for alarming modules under the network operating system provided by the above method embodiments, for example, the method includes:
step 21: setting the registration information of each module and registering each module to the system; step 22: acquiring registration information of each module; step 23: judging whether a callback function is provided during module registration, if so, executing a step 24, otherwise, executing a step 26; step 24: acquiring state information of each module; step 25: processing the acquired state information, and writing the processed alarm information into an alarm database; step 26: monitoring an alarm database; step 27: and when detecting that the data in the alarm database changes, sending alarm data to the collector.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include: step 31: setting the registration information of each module and registering each module to the system; when the module registration information is set, the module is divided into an active alarm module and a passive alarm module, and when the active module fails, data to be sent is written into a database table of an alarm database; step 32: acquiring registration information of each module; step 33: judging whether a callback function is provided during module registration, if so, executing step 34, otherwise, executing step 40; in the step, a module which does not provide the callback function is defaulted as an active alarm module; step 34: judging whether a threshold value and monitoring time are set or not; if yes, go to step 36, otherwise go to step 35; step 35: setting a threshold value and monitoring time; a user setting threshold value is required to be provided, an alarm system judges whether to send an alarm or not according to the threshold value of the user, and the purpose of setting monitoring time is to conveniently acquire the state information of each module through a callback function at regular time; step 36: when the monitoring time is up, acquiring the state information of each module through a callback function; step 37: comparing the acquired state information with a set threshold value; step 38: judging whether the acquired state information is in a set threshold range, if so, executing a step 36, otherwise, executing a step 39; step 39: writing the alarm information into an alarm database; step 40: monitoring an alarm database; step 41: and when detecting that the data in the alarm database changes, sending alarm data to the collector.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for alarming each module in a network operating system is characterized by comprising the following steps:
acquiring registration information of each module;
judging whether a callback function is provided or not during module registration, if so, acquiring state information of each module, processing the acquired state information, writing the processed alarm information into an alarm database, and monitoring the alarm database; if not, directly monitoring an alarm database;
and when detecting that the data in the database table in the alarm database changes, sending alarm data to the collector.
2. The method according to claim 1, wherein the step of obtaining the registration information of each module comprises:
and setting registration information of each module and registering each module to the system.
3. The method for alarming of each module under the network operating system as recited in claim 2, wherein the step of directly monitoring the alarm database further comprises:
and when the module fails, writing the data to be sent into a database table of the alarm database.
4. The method according to claim 3, wherein the step of obtaining the status information of each module, processing the obtained status information, and writing the processed alarm information into the alarm database specifically comprises:
judging whether a threshold value and monitoring time are set or not;
if yes, when the monitoring time is up, acquiring the state information of each module through a callback function, processing the acquired state information, and writing the processed alarm information into an alarm database;
otherwise, setting a threshold value and monitoring time, and executing the following steps: and when the monitoring time is up, acquiring the state information of each module through a callback function, processing the acquired state information, and writing the processed alarm information into an alarm database.
5. The method for alarming each module in a network operating system according to claim 4, wherein the step of acquiring the state information of each module through the callback function when the monitoring time is up, processing the acquired state information, and writing the processed alarm information into the alarm database specifically comprises:
when the monitoring time is up, acquiring the state information of each module through a callback function;
comparing the acquired state information with a set threshold value,
judging whether the acquired state information is in a set threshold range, if so, executing the following steps: when the monitoring time is up, acquiring the state information of each module through a callback function; otherwise, writing the alarm information into an alarm database.
6. The alarm device for each module in a network operating system is characterized by comprising a registration information acquisition module, a judgment module, a processing module and an alarm module;
the registration information acquisition module is used for acquiring the registration information of each module;
the judging module is used for judging whether the module provides a callback function or not when registering the registration information acquired by the registration information acquiring module;
the processing module is used for acquiring the state information of each module through the callback function when the callback function is provided during module registration, processing the acquired state information and writing the processed alarm information into an alarm database;
and the alarm module is used for monitoring the alarm database when the callback function is not provided during module registration, and sending alarm data to the collector when detecting that the data in the database table in the alarm database changes.
7. The apparatus of claim 6, further comprising a registration module for setting registration information of each module and registering each module with the system.
8. The device for alarming each module in a network operating system according to claim 7, further comprising a data receiving module, wherein when a module fails, the data receiving module is configured to write data to be sent to a database table in the alarm database by the receiving failure module.
9. The apparatus of claim 8, further comprising a setting module, wherein the setting module is configured to set a threshold and a monitoring time;
the judging module is used for judging whether a threshold value and monitoring time are set or not;
and the processing module is specifically used for acquiring the state information of each module through the callback function when the monitoring time is up, processing the acquired state information and writing the processed alarm information into the alarm database.
10. The warning device for each module under the network operating system according to claim 9, wherein the processing module comprises a control unit, a comparison processing unit, and a writing unit;
the control unit is used for controlling the state information of each module to be acquired through the callback function when the monitoring time is up;
the comparison processing unit is used for comparing the acquired state information with a set threshold value and judging whether the acquired state information is in the set threshold value range or not;
and the writing unit is used for writing the alarm information into the alarm database when the state information output and acquired by the comparison processing unit is not in the set threshold range.
CN202110722962.8A 2021-06-28 2021-06-28 Method and device for alarming each module under network operating system Active CN113612622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110722962.8A CN113612622B (en) 2021-06-28 2021-06-28 Method and device for alarming each module under network operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110722962.8A CN113612622B (en) 2021-06-28 2021-06-28 Method and device for alarming each module under network operating system

Publications (2)

Publication Number Publication Date
CN113612622A true CN113612622A (en) 2021-11-05
CN113612622B CN113612622B (en) 2023-01-24

Family

ID=78336854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110722962.8A Active CN113612622B (en) 2021-06-28 2021-06-28 Method and device for alarming each module under network operating system

Country Status (1)

Country Link
CN (1) CN113612622B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079594A1 (en) * 2010-09-27 2012-03-29 Hyun Cheol Jeong Malware auto-analysis system and method using kernel callback mechanism
CN106844165A (en) * 2016-12-16 2017-06-13 华为技术有限公司 Alarm method and device
CN107172643A (en) * 2017-05-05 2017-09-15 电子科技大学 A kind of base station monitoring method that alarm is realized based on database trigger
CN110557295A (en) * 2019-09-26 2019-12-10 深圳市钮为通信技术有限公司 Alarm positioning method and device for network equipment
CN110704283A (en) * 2019-09-05 2020-01-17 北京浪潮数据技术有限公司 Method, device and medium for uniformly generating alarm information
CN111200526A (en) * 2019-12-31 2020-05-26 中国建设银行股份有限公司 Monitoring system and method of network equipment
CN112769602A (en) * 2020-12-30 2021-05-07 网络通信与安全紫金山实验室 System and method for unified configuration management of white box switch and network operating system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079594A1 (en) * 2010-09-27 2012-03-29 Hyun Cheol Jeong Malware auto-analysis system and method using kernel callback mechanism
CN106844165A (en) * 2016-12-16 2017-06-13 华为技术有限公司 Alarm method and device
CN107172643A (en) * 2017-05-05 2017-09-15 电子科技大学 A kind of base station monitoring method that alarm is realized based on database trigger
CN110704283A (en) * 2019-09-05 2020-01-17 北京浪潮数据技术有限公司 Method, device and medium for uniformly generating alarm information
CN110557295A (en) * 2019-09-26 2019-12-10 深圳市钮为通信技术有限公司 Alarm positioning method and device for network equipment
CN111200526A (en) * 2019-12-31 2020-05-26 中国建设银行股份有限公司 Monitoring system and method of network equipment
CN112769602A (en) * 2020-12-30 2021-05-07 网络通信与安全紫金山实验室 System and method for unified configuration management of white box switch and network operating system

Also Published As

Publication number Publication date
CN113612622B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
CN110661659B (en) Alarm method, device and system and electronic equipment
CN102937930B (en) Application program monitoring system and method
CN111176879A (en) Fault repairing method and device for equipment
CN115809183A (en) Method for discovering and disposing information-creating terminal fault based on knowledge graph
CN107239388A (en) A kind of monitoring alarm method and system
CN103067209B (en) A kind of heartbeat module self-sensing method
CN114978883B (en) Network wakeup management method and device, electronic equipment and storage medium
CN110784352B (en) Data synchronous monitoring and alarming method and device based on Oracle golden gate
CN114356499A (en) Kubernetes cluster alarm root cause analysis method and device
CN112910733A (en) Full link monitoring system and method based on big data
CN112084087A (en) Industrial equipment state monitoring and operation and maintenance management method and system
CN111679950B (en) Interface-level dynamic data sampling method and device
CN113468023A (en) Monitoring method, monitoring device, monitoring medium and electronic equipment
CN113656252B (en) Fault positioning method, device, electronic equipment and storage medium
CN110750425A (en) Database monitoring method, device and system and storage medium
CN111130867A (en) Intelligent household equipment alarm method and device based on Internet of things
CN110569140A (en) operation and maintenance method and device
CN114401207A (en) Positioning method and device for communication abnormal terminal equipment and electronic equipment
CN116781757B (en) Data monitoring method, device, platform, electronic equipment and storage medium
CN113612622B (en) Method and device for alarming each module under network operating system
CN106706000B (en) Theodolite intelligent network monitoring method and system
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN107612755A (en) The management method and its device of a kind of cloud resource
CN110851316B (en) Abnormality early warning method, abnormality early warning device, abnormality early warning system, electronic equipment and storage medium
CN116260703A (en) Distributed message service node CPU performance fault self-recovery method and device

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