CN114356699A - Embedded equipment alarm method, device, equipment and storage medium - Google Patents

Embedded equipment alarm method, device, equipment and storage medium Download PDF

Info

Publication number
CN114356699A
CN114356699A CN202111569469.3A CN202111569469A CN114356699A CN 114356699 A CN114356699 A CN 114356699A CN 202111569469 A CN202111569469 A CN 202111569469A CN 114356699 A CN114356699 A CN 114356699A
Authority
CN
China
Prior art keywords
alarm
equipment
state information
information
triggered
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.)
Pending
Application number
CN202111569469.3A
Other languages
Chinese (zh)
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.)
Dongtu Science And Technology Yichang Co ltd
Original Assignee
Dongtu Science And Technology Yichang 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 Dongtu Science And Technology Yichang Co ltd filed Critical Dongtu Science And Technology Yichang Co ltd
Priority to CN202111569469.3A priority Critical patent/CN114356699A/en
Publication of CN114356699A publication Critical patent/CN114356699A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses an embedded equipment alarming method, an embedded equipment alarming device, equipment and a storage medium. The method comprises the following steps: acquiring state information of a monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored; if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object; and sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested. The technical scheme of the embodiment of the invention realizes that the alarm information can be quickly transmitted when the embedded equipment abnormally operates.

Description

Embedded equipment alarm method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of industrial gateways, in particular to an embedded device alarming method, an embedded device alarming device, equipment and a storage medium.
Background
The existing embedded system can detect the abnormity of the embedded device, and the operation of one device can be influenced by hardware logic, software logic or external factors to generate abnormity. For a large system, the large system has a large amount of devices and high complexity, and when a device is abnormal, a system abnormality may be caused, and at this time, a device manager needs to quickly locate the abnormal device and analyze the cause of the abnormality, and if abnormal information cannot be obtained in time to process the abnormal device, a significant loss may be caused.
Disclosure of Invention
The embodiment of the invention provides an alarm method, an alarm device, equipment and a storage medium of embedded equipment, so that alarm information can be quickly transmitted when the embedded equipment runs abnormally.
In a first aspect, an embodiment of the present invention provides an embedded device alarm method, including:
acquiring state information of a monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored;
if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object;
and sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested.
Optionally, the power supply parameter includes a voltage signal, and the operation parameter at least includes: device memory and CPU interrupt rate;
if the state information of the monitoring object is abnormal, determining the alarm type triggered by the state information of the monitoring object, wherein the alarm type comprises the following steps:
if a voltage interrupt signal is acquired from a chip pin of the CPU, triggering a power failure alarm; alternatively, the first and second electrodes may be,
if the interruption rate of the equipment memory and/or the CPU reaches an abnormal critical value, triggering a basic alarm; alternatively, the first and second electrodes may be,
and triggering the mail alarm if the time interval for acquiring the state information of the monitored object reaches a preset period or other types of alarms are triggered.
Optionally, the sending the device state information and the alarm information corresponding to the alarm type to the management device of the device to be tested includes:
and if the power failure alarm is triggered, acquiring the power failure state of the equipment and simplest alarm information configured in advance in real time, and sending the simplest alarm information to the Management equipment of the equipment to be tested through a Simple Network Management Protocol (SNMP).
Optionally, the sending the device state information and the alarm information corresponding to the alarm type to the management device of the device to be tested includes:
if the basic alarm is triggered, acquiring the pre-configured state information of the key equipment and the key alarm information in real time, and sending the key equipment state information and the key alarm information to a monitoring port of the management equipment of the equipment to be tested through a Transmission Control Protocol (TCP)/User Datagram Protocol (UDP).
Optionally, the sending the device state information and the alarm information corresponding to the alarm type to the management device of the device to be tested includes:
and if the Mail alarm is triggered, sending the configured complete equipment state information and the complete alarm information to a mailbox of the management equipment of the equipment to be tested by adopting a Simple Mail Transfer Protocol (SMTP).
Optionally, before acquiring the state information of the monitoring object in real time, the method further includes:
aiming at basic alarm, configuring an equipment monitoring object, an abnormal critical value for triggering the alarm and a monitoring port for receiving alarm information by management equipment;
and configuring the address of the SMTP server, the account password logged in the server, the mailbox of a mail sender, the mailbox of a mail receiver, the mail subject, the equipment state information to be sent and the mail sending period aiming at the mail alarm.
Optionally, the method further includes:
and if the power failure alarm is triggered, periodically storing the specified sensitive data, or executing preset sensitive operation, or finishing the safe exit of a preset process.
In a second aspect, an embodiment of the present invention further provides an embedded device alarm apparatus, including:
the data acquisition module is used for acquiring the state information of the monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored;
the type determining module is used for determining the alarm type triggered by the state information of the monitored object if the state information of the monitored object is abnormal;
and the alarm module is used for sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the embedded device alerting method provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an embedded device alarm method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the state information of the monitored object is acquired in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored; if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object; the equipment state information and the alarm information corresponding to the alarm type are sent to the management equipment of the equipment to be tested, the problem that the embedded equipment cannot be processed in time when abnormal in the prior art is solved, and the alarm information can be quickly transmitted when the embedded equipment runs abnormally.
Drawings
Fig. 1a is a flowchart of an embedded device alarm method according to a first embodiment of the present invention;
FIG. 1b is a flowchart illustrating a power down alarm processing according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an embedded device alarm apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of an embedded device alarm method in an embodiment of the present invention, where this embodiment is applicable to a situation of a quick alarm when an embedded device is abnormal, and the method may be executed by an embedded device alarm apparatus, where the apparatus may be implemented by hardware and/or software, and may generally be integrated in a computer device that provides an embedded device abnormal alarm service. Specifically, referring to fig. 1a, the method may include the steps of:
and step 110, acquiring the state information of the monitored object in real time.
The monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored. The device to be tested can be an embedded device, and the power supply parameter comprises a voltage signal and can be used for judging whether the device to be tested is powered off or not; the operating parameters include at least: device memory and CPU interrupt rate. The device memory may be the total amount of physical memory currently free, equal to the sum of the memory allocated to standby (cached), free, and zero paging lists. If the memory of the equipment is reduced, the system is indicated to frequently call the disk page file; if the memory of the equipment is very small, the system consumes most time on the operation page file; if the device memory is too small, it may be a memory shortage or memory leak. The CPU interrupt rate may represent the number of times per second the device under test interrupts the processor. If the CPU interrupt rate is increased significantly and the system activity is not increased correspondingly, it indicates that the device under test has a hardware problem and needs to check the network adapter, disk or other hardware causing the interrupt.
It should be noted that the device operation parameters monitored in this embodiment may include not only the device memory and the CPU interrupt rate, but also other parameters that affect the system performance, such as the CPU utilization, that is, the percentage of time for the processor to execute the non-idle thread.
And step 120, if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object.
In this embodiment, three alarm types, namely a power-down alarm, a basic alarm and a mail alarm, are set for the emergency degree of the equipment abnormality, wherein the emergency degree of the power-down alarm is the highest, the basic alarm is the second, and the emergency degree of the mail alarm is the lowest. When the state information of the monitored object is determined to be abnormal, the triggered alarm type can be determined according to the state information of the abnormal monitored object, so that the equipment abnormal alarm can be rapidly performed in a mode corresponding to the alarm type.
Optionally, if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object may include: if a voltage interrupt signal is acquired from a chip pin of the CPU, triggering a power failure alarm; or, if the device memory and/or CPU interrupt rate reaches an abnormal critical value, triggering a basic alarm; or triggering the mail alarm if the time interval for acquiring the state information of the monitored object reaches a preset period or other types of alarms are triggered.
In this embodiment, the current power state of the device to be tested may be obtained by monitoring the chip pin of the CPU. For example, as shown in fig. 1b, assuming that the CPU chip is an STM32F103ZET6 chip, after acquiring a user-configured chip pin GPIO _ a7 to be monitored, pin GPIO _ a7 is initialized, and voltage state information of pin GPIO _ a7 is monitored. If the voltage threshold is 3V, a voltage interrupt signal is generated when the voltage collected from the pin is 2.5V, and at this time, the device is considered to be powered off, and a power failure alarm is triggered.
In this embodiment, an abnormal critical value is preset for each operation parameter, and is used to determine whether each operation parameter is normal. For example, if the operation parameters include a device memory and a CPU interrupt rate, a basic alarm is triggered as long as the state information of one of the operation parameters reaches an abnormal critical value.
In this embodiment, the email alert may be an alert mode triggered periodically at regular time, that is, an email sending period is preset, and if the time interval for acquiring the state information of the monitored object reaches the email sending period, the email alert is triggered, and the device state information is sent to the management device of the device to be tested by an email. Or, the alarm can be set according to requirements, and when the power failure alarm or the basic alarm is triggered, the mail alarm is triggered at the same time.
And step 130, sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested.
In this embodiment, because the emergency degree of each alarm type is different, the alarm information needs to be transmitted to the outside more quickly for higher emergency degree, and the amount of information that can be transmitted is less, so that the corresponding device state information and the corresponding alarm information can be set for several alarm types in advance. Therefore, after the alarm type is determined, the equipment state information and the alarm information corresponding to the alarm type are obtained and sent to the management equipment of the equipment to be tested.
Optionally, sending the device state information and the alarm information corresponding to the alarm type to the management device of the device to be tested may include: and if the power failure alarm is triggered, acquiring the power failure state of the equipment and the simplest alarm information configured in advance in real time, and sending the simplest alarm information to the management equipment of the equipment to be tested through the SNMP.
In this embodiment, since the device to be tested is equipped with the large capacitor, the running time of 10-20ms is still available after the power failure of the device to be tested, and in this period of time, the device to be tested can obtain the device state information during the power failure and the simplest set alarm information, such as the power failure state and the voltage interruption signal, in real time, and send these information to the management device of the device to be tested by using protocols such as SNMP and UDP, and write these information into the log, as shown in fig. 1 b. The power failure alarm only transmits a small amount of alarm information capable of reflecting the current power failure state to the outside, so that the alarm action can be completed only by microsecond-level processing time.
SNMP is a network management standard based on the TCP/IP protocol suite, which is a standard protocol for managing network nodes such as servers, workstations, routers, switches, etc. in an IP network. The network administrator can receive the notification message and the alarm event report of the network node through the SNMP to know the problem of the network.
Optionally, the method may further include: and if the power failure alarm is triggered, periodically storing the specified sensitive data, or executing preset sensitive operation, or finishing the safe exit of a preset process.
In this embodiment, because there is about 10ms of operation time after the power failure of the device to be tested, some key operations can be completed while completing the power failure alarm action, including: carrying out periodical tray falling on the specified sensitive information, for example, carrying out tray falling on a part of sensitive information every 2 ms; or some safe and sensitive operations are executed, such as immediate storage of information such as system login account numbers and passwords; or complete a secure exit of some designated process, etc.
Optionally, sending the device state information and the alarm information corresponding to the alarm type to the management device of the device to be tested may include: and if the basic alarm is triggered, acquiring the pre-configured state information of the key equipment and the key alarm information in real time, and sending the key equipment state information and the key alarm information to a monitoring port of the management equipment of the equipment to be tested through TCP/UDP.
In this embodiment, when the factors affecting the system running state, such as the memory of the device to be tested and the CPU interrupt rate, are detected in real time, and a basic alarm is determined to be triggered, an alarm operation is immediately performed, some preset key device state information and key alarm information, such as device noise, device temperature, relative humidity, basic alarm state, device memory, CPU occupancy, CPU interrupt rate, process state, etc., are obtained in real time, and the obtained information is sent to the specified monitoring port of the management device of the device to be tested through the TCP/UDP protocol, so that the management device can timely process the abnormal device to be tested. The device to be tested cannot be powered off, so that the state information and the key alarm information of the key device corresponding to the basic alarm are more than the transmitted information amount of the state information and the alarm information of the device corresponding to the power-off alarm.
Optionally, sending the device state information and the alarm information corresponding to the alarm type to the management device of the device to be tested may include: and if the mail alarm is triggered, the configured complete equipment state information and the complete alarm information are sent to a mailbox of the management equipment of the equipment to be tested by adopting an SMTP protocol.
In this embodiment, the mail alarm can send the status information of the device to the preset receiving mailbox of the management device of the device to be tested in a mail manner. For example, the device to be tested may use an SMTP protocol, and periodically send complete device state information and complete alarm information to be obtained to a receiver mailbox through information, such as a sender mailbox, a receiver mailbox, an SMTP server address, a server account password, and the like, set by a user. The mail alarm can acquire all relevant equipment state information and alarm information and send the information to the management equipment of the equipment to be managed, namely, the information quantity of mail alarm transmission is more and more comprehensive than the information quantity of power failure alarm and basic alarm transmission.
It should be noted that the mail alarm may also be in a form of setting an abnormal critical value, and when detecting that the device to be detected is abnormal, the device abnormal information is obtained in real time and sent to the mailbox of the receiving party.
Among them, SMTP is a protocol for providing reliable and efficient e-mail transfer, is a mail service established on the FTP file transfer service, is mainly used for mail information transfer between systems, and provides notification about incoming messages.
In the embodiment, the parameters of the equipment are monitored in real time, various alarm types are set, when the embedded equipment runs abnormally, the alarm information transmitted by the equipment can be quickly received, and the accurate positioning, the abnormal reason determination and the establishment of a solution aiming at the abnormality of the abnormal embedded equipment can be quickly completed according to the abnormal information generated when the embedded equipment is abnormal, so that the normal running of the embedded equipment can be recovered as quickly as possible.
On the basis of the foregoing embodiment, optionally, before acquiring the state information of the monitoring object in real time, the method may further include: aiming at basic alarm, configuring an equipment monitoring object, an abnormal critical value for triggering the alarm and a monitoring port for receiving alarm information by management equipment; and configuring the address of the SMTP server, the account password logged in the server, the mailbox of a mail sender, the mailbox of a mail receiver, the mail subject, the equipment state information to be sent and the mail sending period aiming at the mail alarm.
In this embodiment, in order to implement basic alarm for the operating parameter of the device to be tested, information such as a device monitoring object, an abnormal critical value for triggering alarm, and a monitoring port through which the management device receives alarm information is preconfigured, so that when the device to be tested is in an abnormal state, an alarm lamp of the device to be tested flashes, and the monitoring port receives the alarm information from the device to be tested. If the monitoring port is not set, the warning lamp begins to flash when the equipment to be tested is in an abnormal state. In addition, in order to enable the receiver mailbox to periodically receive a pre-configured mail or enable the device to send a configured mail to the management device of the device to be tested in real time when the alarm is triggered, the address of the SMTP server, the account password of the login server, the mail sender mailbox, the mail receiver mailbox, the mail subject, the device state information to be sent, the mail sending period and other information can be configured for the mail alarm in advance.
According to the technical scheme of the embodiment of the invention, the state information of the monitored object is acquired in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored; if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object; the equipment state information and the alarm information corresponding to the alarm type are sent to the management equipment of the equipment to be tested, so that the problem that the embedded equipment cannot be processed in time when abnormal in the prior art is solved, the alarm information can be quickly transmitted when the embedded equipment runs abnormally, and the equipment positioning and abnormal reason searching efficiency is improved.
Example two
Fig. 2 is a schematic structural diagram of an embedded device alarm apparatus in a second embodiment of the present invention, which is applicable to a case of rapid alarm when a device is abnormal, and the apparatus may be implemented by hardware and/or software, and may be generally integrated in a computer device providing a device abnormal alarm service. Specifically, referring to fig. 2, the apparatus may include:
the data acquisition module 210 is configured to acquire state information of a monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored;
the type determining module 220 is configured to determine an alarm type triggered by the state information of the monitored object if the state information of the monitored object is abnormal;
the alarm module 230 is configured to send the device state information and the alarm information corresponding to the alarm type to the management device of the device under test.
According to the technical scheme of the embodiment of the invention, the state information of the monitored object is acquired in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored; if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object; the equipment state information and the alarm information corresponding to the alarm type are sent to the management equipment of the equipment to be tested, the problem that the embedded equipment cannot be processed in time when abnormal in the prior art is solved, and the alarm information can be quickly transmitted when the embedded equipment runs abnormally.
Optionally, the power supply parameter includes a voltage signal, and the operation parameter at least includes: device memory and CPU interrupt rate;
a type determination module 220 for:
if a voltage interrupt signal is acquired from a chip pin of the CPU, triggering a power failure alarm; alternatively, the first and second electrodes may be,
if the interruption rate of the equipment memory and/or the CPU reaches an abnormal critical value, triggering a basic alarm; alternatively, the first and second electrodes may be,
and triggering the mail alarm if the time interval for acquiring the state information of the monitored object reaches a preset period or other types of alarms are triggered.
Optionally, the alarm module 230 is configured to:
and if the power failure alarm is triggered, acquiring the power failure state of the equipment and the simplest alarm information configured in advance in real time, and sending the simplest alarm information to the management equipment of the equipment to be tested through a Simple Network Management Protocol (SNMP).
Optionally, the alarm module 230 is configured to:
and if the basic alarm is triggered, acquiring the pre-configured state information of the key equipment and the key alarm information in real time, and sending the key equipment state information and the key alarm information to a monitoring port of the management equipment of the equipment to be tested through TCP/UDP.
Optionally, the alarm module 230 is configured to:
and if the mail alarm is triggered, the configured complete equipment state information and the complete alarm information are sent to a mailbox of the management equipment of the equipment to be tested by adopting an SMTP protocol.
Optionally, the method further includes: a configuration module used for acquiring the state information of the monitored object in real time,
aiming at basic alarm, configuring an equipment monitoring object, an abnormal critical value for triggering the alarm and a monitoring port for receiving alarm information by management equipment;
and configuring the address of the SMTP server, the account password logged in the server, the mailbox of a mail sender, the mailbox of a mail receiver, the mail subject, the equipment state information to be sent and the mail sending period aiming at the mail alarm.
Optionally, the method further includes: and the key operation module is used for periodically storing the specified sensitive data, or executing the preset sensitive operation, or finishing the safe exit of the preset process if the power failure alarm is triggered.
The embedded equipment warning device provided by the embodiment of the invention can execute the embedded equipment warning method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. Fig. 3 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 3 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in FIG. 3, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing the embedded device alert method provided by embodiments of the present invention, by running programs stored in the system memory 28.
Namely: the embedded equipment alarm method comprises the following steps:
acquiring state information of a monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored;
if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object;
and sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested.
Example four
The fourth embodiment of the invention also discloses a computer storage medium, wherein a computer program is stored on the computer storage medium, and when the program is executed by a processor, the method for realizing the alarm of the embedded equipment comprises the following steps:
acquiring state information of a monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored;
if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object;
and sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An embedded device alarm method is characterized by comprising the following steps:
acquiring state information of a monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored;
if the state information of the monitored object is abnormal, determining the alarm type triggered by the state information of the monitored object;
and sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested.
2. The method of claim 1, wherein the power supply parameter comprises a voltage signal, and the operating parameter comprises at least: device memory and CPU interrupt rate;
if the state information of the monitoring object is abnormal, determining the alarm type triggered by the state information of the monitoring object, wherein the alarm type comprises the following steps:
if a voltage interrupt signal is acquired from a chip pin of the CPU, triggering a power failure alarm; alternatively, the first and second electrodes may be,
if the interruption rate of the equipment memory and/or the CPU reaches an abnormal critical value, triggering a basic alarm; alternatively, the first and second electrodes may be,
and triggering the mail alarm if the time interval for acquiring the state information of the monitored object reaches a preset period or other types of alarms are triggered.
3. The method according to claim 2, wherein sending the device state information and the alarm information corresponding to the alarm type to a management device of the device under test comprises:
and if the power failure alarm is triggered, acquiring the power failure state of the equipment and the simplest alarm information configured in advance in real time, and sending the simplest alarm information to the management equipment of the equipment to be tested through a Simple Network Management Protocol (SNMP).
4. The method according to claim 2, wherein sending the device state information and the alarm information corresponding to the alarm type to a management device of the device under test comprises:
and if the basic alarm is triggered, acquiring the pre-configured state information of the key equipment and the key alarm information in real time, and sending the key equipment state information and the key alarm information to a monitoring port of the management equipment of the equipment to be tested through a Transmission Control Protocol (TCP)/User Datagram Protocol (UDP).
5. The method according to claim 2, wherein sending the device state information and the alarm information corresponding to the alarm type to a management device of the device under test comprises:
and if the mail alarm is triggered, sending the configured complete equipment state information and the complete alarm information to a mailbox of the management equipment of the equipment to be tested by adopting a Simple Mail Transfer Protocol (SMTP).
6. The method according to claim 1, before obtaining the status information of the monitored object in real time, further comprising:
aiming at basic alarm, configuring an equipment monitoring object, an abnormal critical value for triggering the alarm and a monitoring port for receiving alarm information by management equipment;
and configuring the address of the SMTP server, the account password logged in the server, the mailbox of a mail sender, the mailbox of a mail receiver, the mail subject, the equipment state information to be sent and the mail sending period aiming at the mail alarm.
7. The method of claim 2, further comprising:
and if the power failure alarm is triggered, periodically storing the specified sensitive data, or executing preset sensitive operation, or finishing the safe exit of a preset process.
8. An embedded device alarm apparatus, comprising:
the data acquisition module is used for acquiring the state information of the monitored object in real time; the monitoring object comprises a power supply parameter and at least one operation parameter of the equipment to be monitored;
the type determining module is used for determining the alarm type triggered by the state information of the monitored object if the state information of the monitored object is abnormal;
and the alarm module is used for sending the equipment state information and the alarm information corresponding to the alarm type to the management equipment of the equipment to be tested.
9. A computer device, the device comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the embedded device alert method as recited in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the embedded device alerting method of any one of claims 1-7.
CN202111569469.3A 2021-12-21 2021-12-21 Embedded equipment alarm method, device, equipment and storage medium Pending CN114356699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111569469.3A CN114356699A (en) 2021-12-21 2021-12-21 Embedded equipment alarm method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111569469.3A CN114356699A (en) 2021-12-21 2021-12-21 Embedded equipment alarm method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114356699A true CN114356699A (en) 2022-04-15

Family

ID=81101628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111569469.3A Pending CN114356699A (en) 2021-12-21 2021-12-21 Embedded equipment alarm method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114356699A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116386295A (en) * 2022-12-02 2023-07-04 东土科技(宜昌)有限公司 Hierarchical linkage method and device for monitoring alarm, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116386295A (en) * 2022-12-02 2023-07-04 东土科技(宜昌)有限公司 Hierarchical linkage method and device for monitoring alarm, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN106961352B (en) Monitoring system and monitoring method
WO2020029407A1 (en) Alarm data management method and apparatus, and computer device and storage medium
US20110119372A1 (en) Message management and suppression in a monitoring system
US8244943B2 (en) Administering the polling of a number of devices for device status
CN108092836A (en) The monitoring method and device of a kind of server
CN113687969A (en) Alarm information generation method and device, electronic equipment and readable storage medium
CN112596568B (en) Method, system, device and medium for reading error information of voltage regulator
US8943191B2 (en) Detection of an unresponsive application in a high availability system
KR102176028B1 (en) System for Real-time integrated monitoring and method thereof
CN111694707A (en) Small server cluster management system and method
CN114356699A (en) Embedded equipment alarm method, device, equipment and storage medium
CN111625386A (en) Monitoring method and device for power-on overtime of system equipment
US10176033B1 (en) Large-scale event detector
US20230359514A1 (en) Operation-based event suppression
CA2365427A1 (en) Internal product fault monitoring apparatus and method
JP2012079212A (en) Information processor and failure recovery method
CN115102838B (en) Emergency processing method and device for server downtime risk and electronic equipment
CN114978883B (en) Network wakeup management method and device, electronic equipment and storage medium
CN115114118A (en) Server monitoring method and related equipment
CN114374627A (en) Method, device and system for restarting baseboard management controller and server
CN115934453A (en) Troubleshooting method, troubleshooting device and storage medium
US20200366428A1 (en) Estimate bit error rates of network cables
KR20090052418A (en) Apparatus having function for managing restart information
CN111258845A (en) Detection of event storms
CN111414274A (en) Far-end eliminating method for abnormal state of cabinet applied to data center

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