Server software and hardware information diagnosis system and method
By combining hardware and software fault diagnosis modules in the server diagnosis system, comprehensive monitoring and diagnosis of hardware and software faults is achieved, and the problem of missing hardware faults in the existing technology is solved, improving the accuracy of diagnostic results and server availability .
Patent Information
- Application Number
- CN202411206296.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In the fault diagnosis, the prior art usually only focuses on software failures and ignores hardware failures, resulting in poor accuracy of diagnostic results and affecting the availability of servers.
Design a server software and hardware information diagnosis system to monitor the hardware operation status in real time through the hardware information monitoring module, and the software information monitoring module monitors the software status in real time, and combines the hardware fault diagnosis module and the software fault diagnosis module to realize the comprehensive hardware and software fault failures. diagnosis.
It improves the accuracy of fault diagnosis results, improves the stability and availability of server systems, and ensures simultaneous monitoring and diagnosis of hardware and software failures.
Smart Images

Figure CN118708418B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the computer field, and in particular to a server software and hardware information diagnosis system and method. Background Art
[0002] Servers are now widely used in various fields of social life, mainly for processing key business. System data loss or abnormal server downtime will have serious consequences for related fields. Therefore, high requirements are placed on the availability of servers. High availability requires efficient fault monitoring, fault diagnosis, fault recovery and other technologies to achieve.
[0003] At present, in order to achieve efficient fault monitoring and diagnosis, the design is mainly focused on fault diagnosis methods or algorithms. However, the design of methods or algorithms alone is not combined with the hardware system design. When a single server has a system failure, the hardware failure is easily ignored, which affects the final diagnosis results and reduces the accuracy of the diagnosis results. Summary of the invention
[0004] The purpose of this application is to provide a server software and hardware information diagnosis system and method, which is used to solve the technical problem in the prior art that only the fault diagnosis method or algorithm is designed and developed while ignoring the impact of hardware failures on the final diagnosis results, resulting in poor accuracy of the diagnosis results. By simultaneously monitoring and diagnosing software failures and hardware failures, the accuracy of the diagnosis results of a single fault diagnosis method can be improved, thereby improving the stability of the server system operation.
[0005] The present application provides a server hardware and software information diagnosis system, including: a hardware information monitoring module, which monitors the hardware operation status in real time to obtain hardware information; a software information monitoring module, which monitors the service status and system resource usage status in real time to obtain software information; a hardware fault diagnosis module, which performs fault diagnosis on hardware information to obtain hardware fault diagnosis results; a software fault diagnosis module, which performs fault diagnosis on software information to obtain software fault diagnosis results; and a fault processing module, which obtains a comprehensive fault diagnosis result based on the hardware fault diagnosis results and the software fault diagnosis results.
[0006] According to a server hardware and software information diagnostic system provided by the present application, the hardware information includes the temperature of the central processing unit and the memory status; the hardware information monitoring module includes a baseboard management control unit, an I 2 C switch and sensor, wherein: the baseboard management control unit monitors the temperature of the central processing unit by monitoring the temperature bus, obtains the temperature of the central processing unit, and sends the temperature of the central processing unit to the hardware fault diagnosis module; the baseboard management control unit is connected to the dual in-line memory module to monitor the state of the dual in-line memory module, obtains the memory state, and sends the memory state to the hardware fault diagnosis module.
[0007] According to a server hardware and software information diagnostic system provided by the present application, the hardware information includes the temperature of the motherboard; the hardware information monitoring module also includes a complex programmable logic device, and the complex programmable logic device includes I 2 C slave module; I 2 The C switch is connected to the baseboard management control unit and connected to the I 2 C slave module communicates with complex programmable logic devices, I 2 C switch receives sensor based on I 2 C bus, and based on preset rules, sends the motherboard temperature to the I 2 C slave device module; the complex programmable logic device compares the received motherboard temperature with the preset motherboard temperature threshold, and based on the motherboard temperature exceeding the preset motherboard temperature threshold, the I 2 C sends the corresponding motherboard temperature from the device module to I 2 C switch, and utilizes I 2 The C switch transmits the mainboard temperature to the baseboard management control unit; the baseboard management control unit sends the received mainboard temperature to the hardware fault diagnosis module.
[0008] According to a server hardware and software information diagnostic system provided by the present application, the hardware information also includes voltage information, and the hardware information monitoring module also includes a complex programmable logic device, which includes an analog-to-digital conversion module, a sequence module and a serial peripheral interface module, wherein: the sequence module is respectively connected to the voltage regulator and the analog-to-digital conversion module, the sequence module controls the operation of the voltage regulator according to preset logic and timing, and sends an activation instruction to the analog-to-digital conversion module; the analog-to-digital conversion module is connected to the voltage regulator, and the analog-to-digital conversion module samples and converts the voltage signal output by the voltage regulator based on the activation instruction to obtain voltage information, and sends the voltage information to the complex programmable logic device; the complex programmable logic device determines whether the voltage information is greater than the preset voltage based on the preset programming logic, and if the voltage information is greater than the preset voltage, the voltage information is sent to the hardware fault diagnosis module through the serial peripheral interface module.
[0009] According to a server hardware and software information diagnostic system provided by the present application, the hardware information also includes an enable signal and a first power normal signal; when started, the sequence module sends an enable signal to the voltage regulator according to preset logic and timing control, and determines whether it can receive the first power normal signal returned by the voltage regulator based on the enable signal. If it cannot be received, the corresponding fault information is reported to the hardware fault diagnosis module based on the serial peripheral interface module.
[0010] According to a server software and hardware information diagnostic system provided by the present application, the hardware information also includes at least one of a memory overheat signal, an overheat protection signal, a throttling signal, a second power normal signal and a reset signal, and the complex programmable logic device is connected to the central processing unit, the dual in-line memory module and the power module respectively through preset interfaces, wherein: the complex programmable logic device monitors the memory temperature of the dual in-line memory module, and based on the memory temperature of the dual in-line memory module exceeding the preset memory temperature threshold, generates a memory overheat signal, and sends it to the hardware fault diagnosis module through the serial peripheral interface module; the complex programmable logic device monitors the motherboard temperature, and based on the motherboard temperature exceeding the preset overheat threshold, generates an overheat protection signal, and sends it to the hardware through the serial peripheral interface module Fault diagnosis module; the complex programmable logic device monitors the load and temperature of the dual in-line memory module, the load and temperature of the central processing unit, and the current of the power module, and generates a throttling signal in combination with a preset strategy, and sends it to the hardware fault diagnosis module through the serial peripheral interface module; the complex programmable logic device monitors the output voltage and output current of the power module, and determines whether the output voltage and output current meet the preset range. If they meet the preset range, a second power normal signal is generated and sent to the hardware fault diagnosis module through the serial peripheral interface module; the complex programmable logic device monitors the power module, and determines whether the power module achieves a stable output within a preset time. If not, a reset signal is generated and sent to the hardware fault diagnosis module through the serial peripheral interface module.
[0011] According to a server hardware and software information diagnostic system provided by the present application, the hardware information also includes fan speed, and the complex programmable logic device also includes a fan module, wherein: the fan module monitors the fan speed and determines whether the monitored fan speed is abnormal. If abnormal, the fan speed is sent to the hardware fault diagnosis module through the serial peripheral interface module.
[0012] According to a server hardware and software information diagnostic system provided by the present application, the software information includes at least one of the central processing unit utilization rate, memory utilization rate, network traffic, core system service status, pre-selected application service status and preset process status to be monitored; the software information monitoring module calls the corresponding kernel module access interface to access the kernel space based on the software information to be monitored, collects the corresponding software running status, and monitors it to obtain the corresponding software information; wherein the software information monitoring module is obtained by compiling and loading the software information collection module that collects the corresponding software information based on the loadable kernel module technology.
[0013] According to a server hardware and software information diagnosis system provided by the present application, the hardware fault diagnosis module includes a control unit, which performs fault rating according to preset hardware fault rating rules based on the hardware information monitored by the hardware information monitoring module to obtain a hardware fault diagnosis result; the software fault diagnosis module compares the software information monitored by the software information monitoring module with a preset status threshold, and performs fault rating on the comparison result according to the preset software fault rating rules to obtain a software fault diagnosis result.
[0014] According to a server hardware and software information diagnostic system provided by the present application, the hardware information includes at least one of the central processing unit temperature, memory status, mainboard temperature and voltage information; the control unit determines the range in which the corresponding hardware information exceeds the rated threshold based on the received hardware information, and determines the corresponding hardware fault diagnosis result in combination with the preset hardware fault rating rules; wherein the preset hardware fault rating rules are used to divide the corresponding fault level based on the range in which the hardware information exceeds the rated value.
[0015] According to a server hardware and software information diagnostic system provided by the present application, the hardware information includes at least one of an enable signal, a first power normal signal, a memory overheat signal, an overheat protection signal, a throttling signal, a second power normal signal and a reset signal; the control unit determines the signal change of the hardware information based on the received hardware information, and determines the corresponding hardware fault diagnosis result in combination with the preset hardware fault rating rule; wherein the preset hardware fault rating rule is used to divide the corresponding fault level according to the signal change of the hardware information.
[0016] According to a server hardware and software information diagnosis system provided by the present application, a comprehensive fault diagnosis result is obtained based on the hardware fault diagnosis results and the software fault diagnosis results, including: based on the hardware fault diagnosis results and the software fault diagnosis results, selecting the fault diagnosis result with the highest fault level as the comprehensive fault diagnosis result.
[0017] The present application also provides a server hardware and software information diagnosis method, including: real-time monitoring of hardware operating status to obtain hardware information; real-time monitoring of service status and system resource usage status to obtain software information; performing fault diagnosis on hardware information to obtain hardware fault diagnosis results; performing fault diagnosis on software information to obtain software fault diagnosis results; and obtaining a comprehensive fault diagnosis result based on the hardware fault diagnosis results and the software fault diagnosis results.
[0018] The present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned server software and hardware information diagnosis methods.
[0019] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned server hardware and software information diagnosis methods are implemented.
[0020] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned server software and hardware information diagnosis methods are implemented.
[0021] The server hardware and software information diagnosis system and method provided in the present application monitor hardware information and software information respectively through a hardware information monitoring module and a software information monitoring module, so as to facilitate the use of the hardware fault diagnosis module to perform fault diagnosis based on the hardware monitoring information, and the software fault diagnosis module to perform fault diagnosis based on the software information, thereby realizing the monitoring and diagnosis of software faults and hardware faults at the same time, so as to improve the correctness of the diagnosis results of a single fault diagnosis method, enhance the stability of the server system operation, and improve the availability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is one of the structural diagrams of the server software and hardware information diagnostic system provided by this application;
[0024] Figure 2 This is the second structural diagram of the server software and hardware information diagnostic system provided by this application;
[0025] Figure 3 This is the third structural diagram of the server hardware and software information diagnostic system provided by this application;
[0026] Figure 4 It is a flow chart of the server software and hardware information diagnosis method provided by this application;
[0027] Figure 5 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0030] The system and method provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0031] like Figure 1 As shown, an embodiment of the present application provides a server software and hardware information diagnosis system, the system comprising:
[0032] The hardware information monitoring module 11 monitors the hardware operation status in real time and obtains hardware information;
[0033] The software information monitoring module 12 monitors the service status and system resource usage status in real time to obtain software information;
[0034] The hardware fault diagnosis module 13 performs fault diagnosis on the hardware information to obtain a hardware fault diagnosis result;
[0035] The software fault diagnosis module 14 performs fault diagnosis on the software information to obtain a software fault diagnosis result;
[0036] The fault processing module 15 obtains a comprehensive fault diagnosis result according to the hardware fault diagnosis result and the software fault diagnosis result.
[0037] In an optional embodiment, the hardware information includes central processing unit (CPU) temperature and memory status. Figure 2The hardware information monitoring module includes the baseboard management control unit (Baseboard Management Controller, referred to as BMC), Intel designed serial communication bus (Inter-Integrated Circuit, referred to as I 2 C) switches and sensors, wherein: the baseboard management control unit monitors the temperature of the central processing unit by monitoring the temperature bus (Platform Environment Control Interface, referred to as PECI), obtains the CPU temperature, and sends the CPU temperature to the hardware fault diagnosis module; the baseboard management control unit is connected to the dual in-line memory module (DIMM) to monitor the DIMM status, obtain the memory status, and send the memory status to the hardware fault diagnosis module.
[0038] In an optional embodiment, the hardware information includes the temperature of the motherboard, and the hardware information monitoring module further includes a complex programmable logic device (Complex Programmable Logic Devic, referred to as CPLD), and the CPLD includes an I 2 C slave module; I 2 The C switch is connected to the baseboard management control unit and connected to the I 2 C slave module communicates with CPLD, I 2 C switch receives sensor based on I 2 C bus, and based on the preset rules, sends the motherboard temperature to the I 2 C slave device module; CPLD compares the received motherboard temperature with the preset motherboard temperature threshold, and based on the motherboard temperature exceeding the preset motherboard temperature threshold, 2 C sends the corresponding motherboard temperature from the device module to I 2 C switch, and utilizes I 2 The C switch transmits the mainboard temperature to the baseboard management control unit; the baseboard management control unit sends the received mainboard temperature to the hardware fault diagnosis module.
[0039] In an optional embodiment, the hardware information also includes voltage information, and the complex programmable logic device also includes an analog-to-digital conversion module (ADC), a sequence module and a serial peripheral interface (SPI) module, wherein: the sequence module is respectively connected to the voltage regulator and the analog-to-digital conversion module, the sequence module controls the operation of the voltage regulator according to preset logic and timing, and sends an activation instruction to the analog-to-digital conversion module; the analog-to-digital conversion module is connected to the voltage regulator, and the analog-to-digital conversion module samples and converts the voltage signal output by the voltage regulator based on the activation instruction to obtain voltage information, and sends the voltage information to the complex programmable logic device; the complex programmable logic device determines whether the voltage information is greater than the preset voltage based on the preset programming logic, and if the voltage information is greater than the preset voltage, the voltage information is sent to the hardware fault diagnosis module through the serial peripheral interface module.
[0040] It should be noted that the voltage regulator (VR) is used to convert the voltage input to the motherboard into the voltage required by the motherboard components. The CPLD obtains the output voltage of the VR through the general-purpose input / output (GPIO) interface, and performs logical judgment after processing by the internal analog-to-digital conversion module (ADC). When the voltage fluctuation exceeds the preset voltage, the voltage information is sent to the hardware fault diagnosis module through the serial peripheral interface module for logging and diagnosis.
[0041] In an optional embodiment, the hardware information also includes fan speed, and the complex programmable logic device also includes a fan module, wherein: the fan module monitors the fan speed and determines whether the monitored fan speed is abnormal. If abnormal, the fan speed is sent to the hardware fault diagnosis module through the serial peripheral interface module.
[0042] It should be added that determining whether the monitored fan speed is abnormal includes: determining whether the fluctuation range of the fan speed within the first target time exceeds the preset fluctuation range, and if so, determining that it is abnormal; and / or determining whether the difference between the fan speed and the preset speed exceeds the preset difference, and if so, determining that it is abnormal; and / or, determining whether the fan stops abnormally based on the fan speed within the second target time, and if so, determining that it is abnormal. In addition, the fan module sends the abnormal fan speed to the hardware fault diagnosis module based on the serial peripheral interface module and using the serial peripheral interface.
[0043] In an optional embodiment, the hardware information also includes an enable signal (ENABLE) and a first power good signal (POWER GOOD); when the sequence module is started, it sends an enable signal to the voltage regulator according to the preset logic and timing control, and determines whether it can receive the first power good signal returned by the voltage regulator based on the enable signal. If it cannot be received, the corresponding fault information is reported to the hardware fault diagnosis module based on the serial peripheral interface. It should be noted that the sequence module implements the transmission and reception of signals with the voltage regulator based on the GPIO interface. In addition, the enable signal is a control signal used to determine whether the voltage regulator is in the start state or in the active state; the first power good signal is an indication signal, indicating that the output voltage of the voltage regulator is as expected and stable.
[0044] In an optional embodiment, the hardware information also includes at least one of a memory overheat signal (MEMHOT), an overheat protection signal (THERMTRIP), a throttling signal (THROTTLE), a second power normal signal (PWRGD) and a reset signal (RESET), and the complex programmable logic device is connected to the CPU, DIMM and power module respectively through preset interfaces, wherein: the complex programmable logic device monitors the memory temperature of the DIMM, generates a memory overheat signal based on the memory temperature of the DIMM exceeding a preset memory temperature threshold, and sends it to the hardware fault diagnosis module through the serial peripheral interface module; the complex programmable logic device monitors the motherboard temperature, generates an overheat protection signal based on the motherboard temperature exceeding a preset overheat threshold, and sends it to the hardware fault diagnosis module through the serial peripheral interface module. The complex programmable logic device monitors the load and temperature of the DIMM, the load and temperature of the CPU, and the current of the power module, and generates a throttling signal in combination with a preset strategy, and sends it to the hardware fault diagnosis module through the serial peripheral interface module; the complex programmable logic device monitors the output voltage and output current of the power module, and determines whether the output voltage and output current meet the preset range. If they meet the preset range, a second power normal signal is generated, and sent to the hardware fault diagnosis module through the serial peripheral interface module; the complex programmable logic device monitors the power module, and determines whether the power module achieves a stable output within a preset time. If not, a reset signal is generated, and sent to the hardware fault diagnosis module through the serial peripheral interface module.
[0045] It should be noted that the overheat protection signal is used to indicate that the motherboard temperature exceeds the preset motherboard temperature threshold, so as to prompt protective measures, such as reducing power consumption or shutting down the device to prevent overheating damage; the memory overheat signal is used to indicate that the memory temperature exceeds the safe range; the throttling signal is used to control the power consumption or energy of the device to prevent overheating or other abnormal conditions; the second power normal signal is used to indicate that the power supply is normal; the reset signal is used to indicate that the device or system is reset to the initial state.
[0046] It should be added that the complex programmable logic device monitors the memory temperature of the DIMM, and further includes: after the baseboard management control unit monitors the DIMM to obtain the memory temperature, the memory temperature is transmitted through the I 2 C switches and I 2 C is sent from the device module to the CPLD. In addition, the complex programmable logic device monitoring the load of the DIMM can refer to the complex programmable logic device monitoring the memory temperature of the DIMM, which will not be repeated here.
[0047] Similarly, the complex programmable logic device monitors the CPU temperature including: after the baseboard management control unit monitors the CPU to obtain the CPU temperature, the CPU temperature is transmitted through the I 2 C switches and I 2 C is sent from the device module to the CPLD. In addition, complex programmable logic devices monitoring CPU load can refer to complex programmable logic devices monitoring CPU temperature, which will not be repeated here.
[0048] In addition, complex programmable logic devices can monitor the motherboard temperature through the above I 2 C switch receives sensor based on I 2 C bus, and based on preset rules, sends the motherboard temperature to the I 2 C is implemented by the slave device module and will not be repeated here.
[0049] Furthermore, the preset interface may adopt a GPIO interface.
[0050] In an optional embodiment, the software information includes at least one of the CPU usage, memory usage, network traffic, core system service status, pre-selected application service status, and preset process status to be monitored; Figure 3 The software information monitoring module calls the corresponding kernel module access interface to access the kernel space based on the software information to be monitored, collects the corresponding software running status, and monitors it to obtain the corresponding software information; wherein, the software information monitoring module is obtained by compiling and loading the software information collection module that collects the corresponding software information based on the Loadable Kernel Module (LKM) technology.
[0051] For example, when the software information is the CPU usage and / or memory usage, the corresponding software information collection module may be a performance monitoring tool, such as a task manager or performance monitor (perfmon); when the software information is network traffic, the corresponding software information collection module may be a resource monitor; when the software information is the core system service status, the corresponding software information collection module may be a service manager; when the software information is the pre-selected application service status, the corresponding software information collection module may be a management module or status page provided by the corresponding application service; when the software information is the preset process status to be monitored, the corresponding software information collection module may be a command line tool of the corresponding system, such as ps (Linux) or tasklist (Windows). It should be noted that the specific software information collection module needs to be determined based on the actual software system involved and the specific software information, and is not further limited here.
[0052] It should be noted that LKM is a technology that can dynamically expand kernel functions in Linux systems. When programming with LKM, only the relevant modules need to be compiled, rather than the entire kernel module. This method can monitor system information more comprehensively.
[0053] In an optional embodiment, the hardware fault diagnosis module includes a control unit, which performs fault rating according to the hardware information monitored by the hardware information monitoring module and a preset hardware fault rating rule to obtain a hardware fault diagnosis result. It should be added that the control unit can be a microprogrammed control unit (MCU).
[0054] Furthermore, the hardware information includes at least one of the central processing unit CPU temperature, memory status, mainboard temperature and voltage information; the control unit determines the range in which the corresponding hardware information exceeds the rated threshold based on the received hardware information, and determines the corresponding hardware fault diagnosis result in combination with the preset hardware fault rating rules; wherein the preset hardware fault rating rules are used to divide the corresponding fault level based on the range in which the hardware information exceeds the rated value.
[0055] For example, the hardware information includes voltage information. If the voltage information exceeds the rated value by 20%, it is determined that the voltage regulator and the line voltage are unstable, and the fault level can be a minor fault. For another example, the hardware information is fan speed. If the fan speed exceeds the rated value by 30%, the fan heat dissipation is abnormal, and the fault level can be a minor fault. If the fan speed stops abnormally, it is located as abnormal fan heat dissipation, and the fault level is a severe fault. The specific fault level can be determined according to the preset hardware fault rating rules of the actual design, and no further limitation is made here.
[0056] In addition, the hardware information includes at least one of an enable signal, a first power normal signal, a memory overheat signal, an overheat protection signal, a throttling signal, a second power normal signal and a reset signal; the control unit determines the signal change of the hardware information based on the received hardware information, and determines the corresponding hardware fault diagnosis result in combination with the preset hardware fault rating rules; wherein the preset hardware fault rating rules are used to divide the corresponding fault levels according to the signal change of the hardware information.
[0057] For example, the hardware information includes an enable signal and a first power normal signal. If the enable signal sent by the sequence module to the voltage regulator exists, but the first power normal signal received by the sequence module is degraded from high to low, it is determined that the voltage regulator and the circuit have abnormal power failure, and the fault level can be set to a severe fault, which is determined according to the preset hardware fault rating rules of the actual design and is not further limited here.
[0058] In an optional embodiment, the hardware fault diagnosis module further includes a storage unit, and the storage unit is used to store the hardware information obtained by the hardware information monitoring module.
[0059] Furthermore, the storage unit may be a flash memory card (TF card), and information is transmitted between the flash memory card and the control unit via a data transmission interface (SDMMC).
[0060] In an optional embodiment, the software fault diagnosis module compares the software information monitored by the software information monitoring module with a preset state threshold, and performs fault rating on the comparison result according to a preset software fault rating rule to obtain a software fault diagnosis result. It should be noted that the software fault diagnosis method can refer to the above-mentioned hardware fault diagnosis method, mainly by comparing the monitored software information with the corresponding set threshold, so as to locate and diagnose the fault position when the software running state exceeds the corresponding set threshold.
[0061] In an optional embodiment, a comprehensive fault diagnosis result is obtained based on the hardware fault diagnosis results and the software fault diagnosis results, including: based on the hardware fault diagnosis results and the software fault diagnosis results, selecting the fault diagnosis result with the highest fault level as the comprehensive fault diagnosis result.
[0062] To summarize, the embodiments of the present invention monitor hardware information and software information respectively through a hardware information monitoring module and a software information monitoring module, so as to utilize a hardware fault diagnosis module to perform fault diagnosis based on hardware monitoring information, and a software fault diagnosis module to perform fault diagnosis based on software information, thereby realizing simultaneous monitoring and diagnosis of software faults and hardware faults, so as to improve the accuracy of the diagnosis results of a single fault diagnosis method, enhance the stability of the server system operation, and improve the availability of the system.
[0063] The server hardware and software information diagnosis method provided by the present application is described below. The server hardware and software information diagnosis system described below and above can be referenced to each other.
[0064] Figure 4 A flow chart of a server hardware and software information diagnosis method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, specifically including:
[0065] S41, real-time monitoring of hardware operation status and obtaining hardware information;
[0066] S42, real-time monitoring of service status and system resource usage status, and obtaining software information;
[0067] S43, performing fault diagnosis on the hardware information to obtain a hardware fault diagnosis result;
[0068] S44, performing fault diagnosis on the software information to obtain a software fault diagnosis result;
[0069] S45, obtaining a comprehensive fault diagnosis result according to the hardware fault diagnosis result and the software fault diagnosis result.
[0070] It should be noted that the step numbers "S4N" in this specification do not represent the sequence of the server hardware and software information diagnosis method. The server hardware and software information diagnosis method of the present invention is described in detail below.
[0071] Step S41, monitor the hardware operation status in real time to obtain hardware information.
[0072] In this embodiment, the hardware information includes the temperature of the central processing unit (CPU) and the memory status; real-time monitoring of the hardware operation status can be achieved by a hardware information monitoring module of the server software and hardware information diagnosis, and the hardware information monitoring module includes a baseboard management control unit (Baseboard Management Controller, referred to as BMC), I 2 C switch and sensor; real-time monitoring of hardware operation status, to obtain hardware information, including: monitoring the temperature of the central processing unit through the baseboard management control unit to obtain the CPU temperature; monitoring the status of the dual in-line memory module (DIMM) through the baseboard management control unit to obtain the memory status.
[0073] In an optional embodiment, the hardware information includes the temperature of the mainboard, and the hardware information monitoring module further includes a complex programmable logic device CPLD, which includes an I 2 C slave device module; real-time monitoring of hardware operation status, obtaining hardware information, and also includes: collecting motherboard temperature through sensors; 2The C switch forwards the motherboard temperature collected by the sensor based on the preset rules; compares the received motherboard temperature with the preset motherboard temperature threshold through the complex programmable logic device, and sends a signal through the I 2 C sends the corresponding motherboard temperature from the device module to I 2 C switch, and utilizes I 2 The C switch transmits the mainboard temperature to the baseboard management control unit; the baseboard management control unit sends the received mainboard temperature to the hardware fault diagnosis module.
[0074] In an optional embodiment, the hardware information also includes voltage information, and the complex programmable logic device also includes an analog-to-digital conversion module (ADC), a sequence module and a serial peripheral interface (SPI) module to monitor the hardware operating status in real time and obtain hardware information, and also includes: controlling the voltage regulator to work according to preset logic and timing through the sequence module, and sending an activation instruction to the analog-to-digital conversion module; sampling and converting the voltage signal output by the voltage regulator based on the activation instruction through the analog-to-digital conversion module to obtain voltage information, and sending the voltage information to the complex programmable logic device; determining whether the voltage information is greater than a preset voltage based on a preset programming logic through the complex programmable logic device, and if the voltage information is greater than the preset voltage, sending the voltage information to the hardware fault diagnosis module through the serial peripheral interface module.
[0075] In an optional embodiment, the hardware information also includes fan speed, and the complex programmable logic device also includes a fan module, which monitors the hardware operating status in real time to obtain hardware information, and also includes: using the fan module to monitor the fan speed, and determining whether the monitored fan speed is abnormal. If abnormal, the fan speed is sent to the hardware fault diagnosis module through the serial peripheral interface module.
[0076] Further, judging whether the monitored fan speed is abnormal includes: judging whether the fluctuation range of the fan speed within the first target time exceeds the preset fluctuation range, and if so, determining that it is abnormal; and / or judging whether the difference between the fan speed and the preset speed exceeds the preset difference, and if so, determining that it is abnormal; and / or, judging whether the fan stops abnormally according to the fan speed within the second target time, and if so, determining that it is abnormal. In addition, the fan module sends the abnormal fan speed to the hardware fault diagnosis module based on the serial peripheral interface module and using the serial peripheral interface.
[0077] In an optional embodiment, the hardware information also includes an enable signal and a first power normal signal; real-time monitoring of the hardware operating status to obtain hardware information also includes: using a sequence module to send an enable signal to the voltage regulator according to preset logic and timing control at startup, and determining whether the first power normal signal returned by the voltage regulator based on the enable signal can be received. If it cannot be received, reporting the corresponding fault information to the hardware fault diagnosis module based on the serial peripheral interface module.
[0078] In an optional embodiment, the hardware information also includes at least one of a memory overheat signal, an overheat protection signal, a throttling signal, a second power normal signal and a reset signal, and the complex programmable logic device is connected to the CPU, DIMM and power module respectively through preset interfaces; real-time monitoring of the hardware operation status to obtain hardware information also includes: using the complex programmable logic device to monitor the memory temperature of the DIMM, generating a memory overheat signal based on the memory temperature of the DIMM exceeding a preset memory temperature threshold, and sending it to the hardware fault diagnosis module through the serial peripheral interface module; using the complex programmable logic device to monitor the motherboard temperature, generating an overheat protection signal based on the motherboard temperature exceeding a preset overheat threshold, and sending it to the hardware fault diagnosis module through the serial peripheral interface module. block; using a complex programmable logic device to monitor the load and temperature of the DIMM, the load and temperature of the CPU, and the current of the power module, and combining with a preset strategy, generating a throttling signal, and sending it to the hardware fault diagnosis module through the serial peripheral interface module; using a complex programmable logic device to monitor the output voltage and output current of the power module, and determine whether the output voltage and output current meet the preset range, if they meet the preset range, generate a second power normal signal, and send it to the hardware fault diagnosis module through the serial peripheral interface module; using a complex programmable logic device to monitor the power module, and determine whether the power module achieves a stable output within a preset time, if not, generate a reset signal, and send it to the hardware fault diagnosis module through the serial peripheral interface module.
[0079] It should be added that the use of complex programmable logic devices to monitor the memory temperature of DIMMs also includes: after the baseboard management control unit monitors the DIMM to obtain the memory temperature, the memory temperature is transmitted through the I 2 C switches and I 2 C is sent from the device module to the CPLD. In addition, the use of complex programmable logic devices to monitor the load of DIMMs can refer to the use of complex programmable logic devices to monitor the memory temperature of DIMMs, which will not be repeated here.
[0080] Similarly, using a complex programmable logic device to monitor the CPU temperature includes: after the baseboard management control unit monitors the CPU to obtain the CPU temperature, the CPU temperature is transmitted through the I 2 C switches and I 2C is sent from the device module to the CPLD. In addition, the use of complex programmable logic devices to monitor CPU load can refer to the use of complex programmable logic devices to monitor CPU temperature, which will not be repeated here.
[0081] In addition, the use of complex programmable logic devices to monitor the motherboard temperature can be achieved through the above I 2 C switch receives sensor based on I 2 C bus, and based on preset rules, sends the motherboard temperature to the I 2 C is implemented by the slave device module and will not be repeated here.
[0082] Step S42, real-time monitoring of service status and system resource usage status to obtain software information.
[0083] In an optional embodiment, the software information includes at least one of the CPU usage, memory usage, network traffic, core system service status, pre-selected application service status, and preset process status to be monitored. It should be noted that real-time monitoring of hardware operating status can be achieved through the hardware information monitoring module of the server software and hardware information diagnosis.
[0084] In this embodiment, the service status and system resource usage status are monitored in real time to obtain software information, including: using the software information monitoring module to call the corresponding kernel module access interface to access the kernel space based on the software information to be monitored, collect the corresponding software running status, and monitor it to obtain the corresponding software information; wherein the software information monitoring module is obtained by compiling and loading the software information collection module that collects the corresponding software information based on the loadable kernel module technology.
[0085] Step S43, performing fault diagnosis on the hardware information to obtain a hardware fault diagnosis result.
[0086] It should be noted that real-time monitoring of the hardware operating status can be achieved through the hardware fault diagnosis module of the server software and hardware information diagnosis.
[0087] In an optional embodiment, the hardware fault diagnosis module includes a control unit, which performs fault diagnosis on hardware information to obtain hardware fault diagnosis results, including: using the control unit to perform fault rating according to preset hardware fault rating rules based on the hardware information monitored by the hardware information monitoring module to obtain hardware fault diagnosis results.
[0088] Furthermore, the hardware information includes at least one of the central processing unit CPU temperature, memory status, mainboard temperature and voltage information; the control unit is used to perform fault rating according to the hardware information obtained by monitoring the hardware information monitoring module according to the preset hardware fault rating rules to obtain a hardware fault diagnosis result, including: using the control unit to determine the range in which the corresponding hardware information exceeds the rated threshold based on the received hardware information, and determine the corresponding hardware fault diagnosis result in combination with the preset hardware fault rating rules; wherein the preset hardware fault rating rules are used to divide the corresponding fault level based on the range of the hardware information exceeding the rated value.
[0089] In addition, the hardware information includes at least one of an enable signal, a first power normal signal, a memory overheat signal, an overheat protection signal, a throttling signal, a second power normal signal and a reset signal; using the control unit to monitor the hardware information obtained by the hardware information monitoring module, and perform fault rating according to preset hardware fault rating rules to obtain a hardware fault diagnosis result, which also includes: using the control unit to determine the signal change of the hardware information based on the received hardware information, and determine the corresponding hardware fault diagnosis result in combination with the preset hardware fault rating rules; wherein the preset hardware fault rating rules are used to divide the corresponding fault levels according to the signal change of the hardware information.
[0090] In an optional embodiment, the hardware fault diagnosis module further includes a storage unit, and after real-time monitoring of the hardware operating status and obtaining the hardware information, the module includes: sending the hardware information to the storage unit for storage.
[0091] Step S44, performing fault diagnosis on the software information to obtain a software fault diagnosis result.
[0092] In an optional embodiment, software information is fault diagnosed to obtain software fault diagnosis results, including: using a software fault diagnosis module to compare the software information monitored by the software information monitoring module with a preset state threshold, and performing fault rating on the comparison result according to a preset software fault rating rule to obtain a software fault diagnosis result. It should be noted that the software fault diagnosis method can refer to the above-mentioned hardware fault diagnosis method, mainly by comparing the monitored software information with the corresponding set threshold, so as to locate and diagnose the fault position when the software running state exceeds the corresponding set threshold.
[0093] Step S45, obtaining a comprehensive fault diagnosis result based on the hardware fault diagnosis result and the software fault diagnosis result.
[0094] In this embodiment, a comprehensive fault diagnosis result is obtained based on the hardware fault diagnosis results and the software fault diagnosis results, including: based on the hardware fault diagnosis results and the software fault diagnosis results, selecting the fault diagnosis result with the highest fault level as the comprehensive fault diagnosis result.
[0095] To summarize, the embodiments of the present invention monitor hardware information and software information separately to facilitate fault diagnosis based on hardware monitoring information, and fault diagnosis based on software information, thereby realizing simultaneous monitoring and diagnosis of software faults and hardware faults, thereby improving the accuracy of the diagnosis results of a single fault diagnosis method, enhancing the stability of the server system operation, and improving the availability of the system.
[0096] It should be noted that the server hardware and software information diagnosis method provided in the embodiment of the present application can be executed by a server hardware and software information diagnosis system, or a control module in the server hardware and software information diagnosis system for executing the server hardware and software information diagnosis method. In the embodiment of the present application, the server hardware and software information diagnosis method provided in the embodiment of the present application is described by taking the server hardware and software information diagnosis system executing the server hardware and software information diagnosis method as an example.
[0097] In addition, in the embodiments of the present application, the server hardware and software information diagnosis methods shown in the above-mentioned method drawings are all illustrative descriptions of an accompanying drawing in the embodiments of the present application. In specific implementation, the server hardware and software information diagnosis methods shown in the above-mentioned method drawings can also be implemented in combination with any other accompanying drawings that can be combined as shown in the above-mentioned embodiments, which will not be repeated here.
[0098] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the server hardware and software information diagnosis method, which includes: real-time monitoring of the hardware operation status to obtain hardware information; real-time monitoring of the service status and the system resource usage status to obtain software information; performing fault diagnosis on the hardware information to obtain hardware fault diagnosis results; performing fault diagnosis on the software information to obtain software fault diagnosis results; and obtaining a comprehensive fault diagnosis result based on the hardware fault diagnosis results and the software fault diagnosis results.
[0099] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0100] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the server hardware and software information diagnosis method provided by the above methods, and the method includes: real-time monitoring of the hardware operation status to obtain hardware information; real-time monitoring of the service status and system resource usage status to obtain software information; performing fault diagnosis on the hardware information to obtain hardware fault diagnosis results; performing fault diagnosis on the software information to obtain software fault diagnosis results; and obtaining a comprehensive fault diagnosis result based on the hardware fault diagnosis results and the software fault diagnosis results.
[0101] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned server hardware and software information diagnosis method, the method comprising: real-time monitoring of the hardware operating status to obtain hardware information; real-time monitoring of the service status and system resource usage status to obtain software information; performing fault diagnosis on the hardware information to obtain hardware fault diagnosis results; performing fault diagnosis on the software information to obtain software fault diagnosis results; and obtaining a comprehensive fault diagnosis result based on the hardware fault diagnosis results and the software fault diagnosis results.
[0102] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0103] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A server software and hardware information diagnostic system, characterized in that: include: Hardware information monitoring module, real-time monitoring of hardware operation status and obtaining hardware information; Software information monitoring module, real-time monitoring of service status and system resource usage status, to obtain software information; A hardware fault diagnosis module performs fault diagnosis on the hardware information to obtain a hardware fault diagnosis result; A software fault diagnosis module performs fault diagnosis on the software information to obtain a software fault diagnosis result; A fault processing module obtains a comprehensive fault diagnosis result according to the hardware fault diagnosis result and the software fault diagnosis result; The software information includes at least one of a CPU usage rate, a memory usage rate, a network flow rate, a core system service status, a pre-selected application service status, and a preset process status to be monitored; The software information monitoring module calls the corresponding kernel module access interface to access the kernel space based on the software information to be monitored, collects the corresponding software running status, and monitors it to obtain the corresponding software information; wherein the software information monitoring module is obtained by compiling and loading the software information collection module that collects the corresponding software information based on the loadable kernel module technology; The hardware fault diagnosis module includes a control unit, which performs fault rating according to the hardware information monitored by the hardware information monitoring module and a preset hardware fault rating rule to obtain a hardware fault diagnosis result; The software fault diagnosis module compares the software information monitored by the software information monitoring module with a preset state threshold, and rates the comparison result according to a preset software fault rating rule to obtain a software fault diagnosis result; According to the hardware fault diagnosis result and the software fault diagnosis result, a comprehensive fault diagnosis result is obtained, including: According to the hardware fault diagnosis result and the software fault diagnosis result, the fault diagnosis result with the highest fault level is selected as the comprehensive fault diagnosis result.
2. The server software and hardware information diagnostic system according to claim 1, characterized in that: The hardware information includes CPU temperature and memory status; The hardware information monitoring module includes a baseboard management control unit, an I 2 C switches and sensors, where: The baseboard management control unit monitors the temperature of the central processing unit by monitoring the temperature bus, obtains the temperature of the central processing unit, and sends the temperature of the central processing unit to the hardware fault diagnosis module; The baseboard management control unit is connected to the dual in-line memory module to monitor the state of the dual in-line memory module, obtain the memory state, and send the memory state to the hardware fault diagnosis module.
3. The server software and hardware information diagnostic system according to claim 2, characterized in that: The hardware information includes the temperature of the motherboard; the hardware information monitoring module also includes a complex programmable logic device, the complex programmable logic device includes I 2 C slave module; I 2 The C switch is connected to the baseboard management control unit and is connected to the baseboard management control unit through the I 2 C slave device module communicates with the complex programmable logic device, the I 2 The C switch receives the sensor based on I 2 C bus, and based on a preset rule, sends the motherboard temperature to the I 2 C slave module; The complex programmable logic device compares the received motherboard temperature with a preset motherboard temperature threshold, and based on the motherboard temperature exceeding the preset motherboard temperature threshold, generates a signal through the I 2 C sends the corresponding motherboard temperature from the device module to the I 2 C switch, and utilize the I 2 The C switch transmits the mainboard temperature to the baseboard management control unit; The baseboard management control unit sends the received mainboard temperature to the hardware fault diagnosis module.
4. The server hardware and software information diagnostic system according to claim 2, characterized in that: The hardware information also includes voltage information, and the hardware information monitoring module also includes a complex programmable logic device, and the complex programmable logic device includes an analog-to-digital conversion module, a sequence module, and a serial peripheral interface module, wherein: The sequence module is connected to the voltage regulator and the analog-to-digital conversion module respectively, and the sequence module controls the voltage regulator to work according to preset logic and timing, and sends an activation instruction to the analog-to-digital conversion module; The analog-to-digital conversion module is connected to the voltage regulator, and based on the activation instruction, the analog-to-digital conversion module samples and converts the voltage signal output by the voltage regulator to obtain voltage information, and sends the voltage information to the complex programmable logic device; The complex programmable logic device determines whether the voltage information is greater than a preset voltage based on a preset programming logic, and if the voltage information is greater than the preset voltage, sends the voltage information to the hardware fault diagnosis module through the serial peripheral interface module.
5. The server software and hardware information diagnostic system according to claim 4, characterized in that: The hardware information also includes an enable signal and a first power normal signal; When started, the sequence module sends an enable signal to the voltage regulator according to preset logic and timing control, and determines whether it can receive the first power normal signal returned by the voltage regulator based on the enable signal. If it cannot be received, the corresponding fault information is reported to the hardware fault diagnosis module based on the serial peripheral interface module.
6. The server hardware and software information diagnostic system according to claim 5, characterized in that: The hardware information also includes at least one of a memory overheat signal, an overheat protection signal, a throttling signal, a second power normal signal, and a reset signal. The complex programmable logic device is connected to the central processing unit, the dual in-line memory module, and the power module through a preset interface, wherein: The complex programmable logic device monitors the memory temperature of the dual in-line memory module, and generates a memory overheat signal based on the memory temperature of the dual in-line memory module exceeding a preset memory temperature threshold, and sends the signal to the hardware fault diagnosis module through the serial peripheral interface module; The complex programmable logic device monitors the temperature of the mainboard, and generates an overheat protection signal based on the mainboard temperature exceeding a preset overheat threshold, and sends the signal to the hardware fault diagnosis module through the serial peripheral interface module; The complex programmable logic device monitors the load and temperature of the dual in-line memory module, the load and temperature of the central processing unit, and the current of the power module, and generates a throttling signal in combination with a preset strategy, and sends it to the hardware fault diagnosis module through the serial peripheral interface module; The complex programmable logic device monitors the output voltage and output current of the power module, and determines whether the output voltage and output current meet the preset range. If they meet the preset range, a second power normal signal is generated and sent to the hardware fault diagnosis module through the serial peripheral interface module; The complex programmable logic device monitors the power module and determines whether the power module achieves stable output within a preset time. If not, a reset signal is generated and sent to the hardware fault diagnosis module through the serial peripheral interface module.
7. The server software and hardware information diagnosis system according to claim 4, characterized in that: The hardware information further includes a fan speed, and the complex programmable logic device further includes a fan module, wherein: The fan module monitors the rotation speed of the fan and determines whether the monitored rotation speed of the fan is abnormal. If abnormal, the fan rotation speed is sent to the hardware fault diagnosis module through the serial peripheral interface module.
8. The server software and hardware information diagnostic system according to claim 1, characterized in that: The hardware information includes at least one of CPU temperature, memory status, motherboard temperature and voltage information; The control unit determines, based on the received hardware information, a range in which the corresponding hardware information exceeds a rated threshold, and determines a corresponding hardware fault diagnosis result in combination with a preset hardware fault rating rule; wherein the preset hardware fault rating rule is used to divide the corresponding fault level based on the range in which the hardware information exceeds the rated value.
9. The server software and hardware information diagnostic system according to claim 1, characterized in that: The hardware information includes at least one of an enable signal, a first power normal signal, a memory overheat signal, an overheat protection signal, a throttling signal, a second power normal signal, and a reset signal; The control unit determines the signal change of the hardware information based on the received hardware information, and determines the corresponding hardware fault diagnosis result in combination with the preset hardware fault rating rule; wherein the preset hardware fault rating rule is used to classify the corresponding fault level according to the signal change of the hardware information.
10. A server software and hardware information diagnosis method, characterized in that: The method comprises: Monitor the hardware operation status in real time and obtain hardware information; Monitor service status and system resource usage in real time to obtain software information; Performing fault diagnosis on the hardware information to obtain a hardware fault diagnosis result; Performing fault diagnosis on the software information to obtain a software fault diagnosis result; Obtaining a comprehensive fault diagnosis result according to the hardware fault diagnosis result and the software fault diagnosis result; The software information includes at least one of a CPU usage rate, a memory usage rate, a network flow rate, a core system service status, a pre-selected application service status, and a preset process status to be monitored; Monitor service status and system resource usage in real time, and obtain software information, including: The software information monitoring module is used to call the corresponding kernel module access interface to access the kernel space based on the software information to be monitored, collect the corresponding software running status, and monitor it to obtain the corresponding software information; wherein the software information monitoring module is obtained by compiling and loading the software information collection module that collects the corresponding software information based on the loadable kernel module technology; Performing fault diagnosis on the hardware information to obtain hardware fault diagnosis results includes: Using the control unit of the hardware fault diagnosis module to perform fault rating according to the hardware information monitored by the hardware information monitoring module and according to the preset hardware fault rating rules, a hardware fault diagnosis result is obtained; Performing fault diagnosis on the software information to obtain software fault diagnosis results includes: Using the software fault diagnosis module, the software information monitored by the software information monitoring module is compared with a preset state threshold, and the comparison result is rated according to a preset software fault rating rule to obtain a software fault diagnosis result; According to the hardware fault diagnosis result and the software fault diagnosis result, a comprehensive fault diagnosis result is obtained, including: According to the hardware fault diagnosis result and the software fault diagnosis result, the fault diagnosis result with the highest fault level is selected as the comprehensive fault diagnosis result.
11. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the server software and hardware information diagnosis method as claimed in claim 10 are implemented.
12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the server software and hardware information diagnosis method as claimed in claim 10 are implemented.
Citation Information
Patent Citations
Computer fault detection system
CN106681869A
System and method used for fault diagnosis and recovery of network device and server
CN108199922A
System and method for fault diagnosis and repair of network device and server
CN108880901A
Robot fault diagnosis method and system and terminal equipment
CN109581994A
Computer fault diagnosis system
CN109815103A
