CN109144765B - Report generation method, report generation device, computer equipment and storage medium - Google Patents

Report generation method, report generation device, computer equipment and storage medium Download PDF

Info

Publication number
CN109144765B
CN109144765B CN201810954114.8A CN201810954114A CN109144765B CN 109144765 B CN109144765 B CN 109144765B CN 201810954114 A CN201810954114 A CN 201810954114A CN 109144765 B CN109144765 B CN 109144765B
Authority
CN
China
Prior art keywords
server
state data
report
data
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810954114.8A
Other languages
Chinese (zh)
Other versions
CN109144765A (en
Inventor
彭磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810954114.8A priority Critical patent/CN109144765B/en
Publication of CN109144765A publication Critical patent/CN109144765A/en
Application granted granted Critical
Publication of CN109144765B publication Critical patent/CN109144765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0775Content or structure details of the error report, e.g. specific table structure, specific error fields
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy

Abstract

The embodiment of the application discloses a report generation method, a report generation device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring host information and state data of a server, wherein the state data comprises component data corresponding to a hardware component of the server; detecting whether the state data has faults or not according to the component data based on a preset detection rule; if the state data has faults, the host information is sent to the management server so that the management server distributes event management numbers for the state data according to the host information; generating a fault report according to the host information and the state data; and receiving an event management number sent by the management server, and marking the fault report according to the event management number. The method can improve the fault management efficiency of the server.

Description

Report generation method, report generation device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a report generating method, a report generating device, a computer device, and a storage medium.
Background
At present, with the development of internet technology, a centralized management needs to be performed on servers in a server cluster, however, fault data of the servers in the server cluster are often formed by manually recording after the servers are in fault, the manual recording is often in a condition of missing and error due to various factors, and a lot of fault processing details cannot be traced afterwards, so that comprehensive analysis is affected. Therefore, it is necessary to provide a report generating method to solve the above problems.
Disclosure of Invention
The application provides a report generation method, a report generation device, computer equipment and a storage medium, and aims to accurately record faults of a server so as to trace abnormal phenomena of the server.
The application provides a report generation method, which comprises the following steps:
acquiring host information and state data of a server, wherein the state data comprises component data corresponding to a hardware component of the server;
detecting whether the state data has faults or not according to the component data based on a preset detection rule;
if the state data has faults, the host information is sent to the management server so that the management server distributes event management numbers for the state data according to the host information;
generating a fault report according to the host information and the state data;
and receiving an event management number sent by the management server, and marking the fault report according to the event management number.
The application provides a report generation device, it includes:
the system comprises a data acquisition unit, a data processing unit and a data processing unit, wherein the data acquisition unit is used for acquiring host information and state data of a server, and the state data comprises component data corresponding to a hardware component of the server;
the fault detection unit is used for detecting whether the state data has faults or not according to the component data based on a preset detection rule;
the information sending unit is used for sending the host information to the management server to enable the management server to distribute event management numbers for the state data according to the host information if the state data has faults;
the report generation unit is used for generating a fault report according to the host information and the state data;
and the receiving and marking unit is used for receiving the event management number sent by the management server and marking the fault report according to the event management number.
The application also provides a computer device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of any one of the report generation methods provided by the application when executing the program.
The present application also provides a computer storage medium, where the computer storage medium stores a computer program, where the computer program when executed by a processor causes the processor to perform the steps of the report generating method according to any of the embodiments provided herein.
The embodiment of the application provides a report generation method, a report generation device, computer equipment and a storage medium, wherein host information and state data of a server are obtained; detecting whether the state data has faults or not according to the component data in the state data based on a preset detection rule; if the state data has faults, the host information is sent to a management server, so that the management server distributes event management numbers for the state data according to the host information; generating a fault report according to the host information and the state data; and receiving an event management number sent by the management server, and marking the fault report according to the event management number. The report generation method can automatically generate the fault data of the server into the fault report to record the fault of the server, and manage the fault through the unified event management number, so that the fault management efficiency of the server is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a report generating method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a report generation method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of sub-steps of the report generating method of FIG. 2;
FIG. 4 is a schematic flow chart of sub-steps of the report generating method of FIG. 2;
FIG. 5 is a schematic flow chart of the steps provided by an embodiment of the present application for adding log information;
FIG. 6 is a schematic flow chart diagram of a report generation method according to another embodiment of the present application;
FIG. 7 is a schematic flow chart of sub-steps of the report generating method of FIG. 6;
FIG. 8 is a schematic block diagram of a report generating device according to an embodiment of the present application;
FIG. 9 is a schematic block diagram of a report generating device according to another embodiment of the present application;
fig. 10 is a schematic block diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a report generation method, a report generation device, computer equipment and a storage medium.
For easy understanding, application scene composition to which the report generating method of the embodiment of the present application is applicable is described first. As shown in fig. 1, the application scenario includes a terminal, a management server and a server cluster, where the application scenario corresponds to a server centralized management system, the system includes a terminal with a communication connection, a management server and a server cluster, and the server cluster includes a plurality of servers to be managed, where the terminal is configured to implement management on the servers in the server cluster through the management server. For example, the terminal runs a report generation method by means of the management server to generate a corresponding report according to the faults of the servers in the server cluster.
The terminal can be electronic equipment such as a smart phone, a tablet personal computer, a notebook computer, a desktop computer, a personal digital assistant or wearable equipment; the management server can be an independent server or a server group consisting of a plurality of servers; the server cluster comprises a plurality of servers to be managed.
The report generation method is specifically applied to a client of the centralized management platform, and the client can be specifically configured in a terminal to generate a report according to fault data of servers in the server cluster.
The centralized management platform is a platform software system developed based on out-of-band equipment, and comprises a client and a server, wherein the client is configured with a terminal, the server is configured in a management server, and the management server and the terminal cooperate to realize centralized management of servers in a server cluster. The out-of-band device may be, for example, a BMC (BaseboardManagement Controller ). In the case of a server installing the out-of-band device, a PC (Personal Computer ) hardware operation and maintenance automation platform, also referred to as an out-of-band management platform, can be developed based on IPMI/refish protocol. REDFISH may support data center power/cooling domains and network switches in addition to servers. The system adopts RESTful API industry standard of an infrastructure, uses HTTPS protocol and JSON data format, is easier to interface with a DevOps tool, and provides possibility for developing a tool to acquire physical state data of PC hardware and simultaneously for remote management of the PC hardware based on the IPMI and REDFISH industry standard. If the data and management functions are concentrated, a set of PC hardware operation and maintenance management platform, namely the centralized management platform, can be built.
Referring to fig. 2, fig. 2 is a schematic flowchart of a report generating method according to an embodiment of the present application. The report generation method is applied to the terminal. As shown in fig. 2, the report generation method includes steps S101 to S105.
S101, acquiring host information and state data of a server, wherein the state data comprises component data corresponding to a hardware component of the server.
Wherein, the host information comprises host serial number, host name, KVM IP, host brand, host model and the like; the state data is state information corresponding to a hardware component of the server, and the state data comprises component data corresponding to a plurality of hardware components. Wherein the hardware components comprise RAID, magnetic disk, CPU, hard disk, memory or power supply, etc.
Specifically, a polling server can be set, and the servers in the server cluster are polled by the polling server according to preset polling time to obtain state data of the servers, and the state data are stored in a database corresponding to the polling server; the terminal periodically polls the database to obtain the state data of the server.
S102, detecting whether the state data has faults or not according to the component data based on a preset detection rule.
Specifically, step S102 includes a step of fault detection, which specifically includes the following as shown in fig. 3: s1021, classifying the state data according to the component category to obtain component data; s1022, determining a preset fault detection rule corresponding to the component data according to the component class; s1023, detecting the classified component data according to the determined preset fault detection rule to judge whether faults exist in the component data; s1024, if the component data has a fault, judging that the state data has a fault; s1025, if the component data has a fault, judging that the state data has no fault.
For example, the component class includes a RAID class, a disk class, a hard disk class, a memory class, or a power class, etc., so that component data in the status data may be divided into a plurality of sub-class data according to the component class. And in the step of determining the preset fault detection rule corresponding to the component type of each sub-category data, for example, a fan detection rule of a server is used for detecting whether the fan category data has abnormality. For example, the rotation speed of the fan in the fan class data is smaller than the set value of the fan detection rule, that is, the fault data in the state data of the servers in the server cluster is detected. And detecting that fault data exist in the state data of the servers in the server cluster, wherein the temperature of the CPU is higher than a preset safety value.
Any component data in the state data has a fault, that is, it is determined that the state data has an abnormality.
And S103, if the state data has faults, the host information is sent to the management server so that the management server can allocate event management numbers for the state data according to the host information.
Specifically, if a fault exists in the state data, host information corresponding to the server with the fault is sent to a management server, wherein the management server is configured with a process management tool, the process management tool uses management tools for all parts of a company, for example, an ITIL management tool, and an event management number is distributed to the state data by the ITIL management tool according to the host information, so that unified management of the state data is facilitated.
S104, generating a fault report according to the host information and the state data.
Step S104 includes S104a and S104b. As shown in fig. 4, S104a classifies the status data according to component categories to obtain component data; and S104b, indexing the component data and the host information to a preset fault report template according to the component category so as to generate a fault report.
Specifically, the state data is classified according to component categories, a plurality of different component data are divided, and the host information and the component data are indexed to a preset fault report template to generate a fault report so as to perform graph analysis on different component faults of servers of different manufacturers and different brands or perform correlation analysis on the component data.
S105, receiving an event management number sent by the management server, and marking the fault report according to the event management number.
Specifically, after the host information and the fault data are indexed to a preset fault report template to generate a fault report, the fault report is marked according to the event management number, for example, the fault report is named and marked by using the event management number, so that a manager using the ITIL tool can search and check.
In the embodiment, the method includes acquiring host information and state data of a server; detecting whether the state data has faults or not according to the component data in the state data based on a preset detection rule; if the state data has faults, the host information is sent to a management server, so that the management server distributes event management numbers for the state data according to the host information; generating a fault report according to the host information and the state data; and receiving an event management number sent by the management server, and marking the fault report according to the event management number. The report generation method can automatically generate the fault data of the server into the fault report to record the fault of the server, and manage the fault through the unified event management number, so that the fault management efficiency of the server is improved.
In an embodiment, the step S105 is followed by a step of adding log information. As shown in fig. 5, this step specifically includes the following:
s106, generating a downloading instruction according to the host identity, and sending the downloading instruction to the management server so that the management server can acquire and store log information corresponding to the fault of the state data.
Specifically, the host identifier is a host SN number, and a download instruction is generated according to the host SN number, where the download instruction is used to instruct a server to download a log corresponding to the fault of the state data. And sending the downloading instruction to the management server so that the management server can acquire and store the log information corresponding to the fault of the state data.
S107, obtaining and storing a storage address corresponding to the log information, and generating a download link according to the storage address.
Specifically, the management server acquires log information corresponding to the state data with faults, stores the log information in a corresponding database, and simultaneously sends a storage address corresponding to the log information to a terminal. And the terminal acquires and stores a storage address corresponding to the log information, and generates a download link, such as a uniform resource locator address, according to the storage address.
S108, adding the download link to the fault report.
Specifically, the download link is added to the fault report, and when a user views the fault report, the user can view corresponding log information according to the download link, so that the retrospective of post-fault processing details is facilitated.
Referring to fig. 6, fig. 6 is a schematic flowchart of a report generating method according to another embodiment of the present application. The report generation method is applied to the terminal. As shown in fig. 6, the report generating method includes steps S201 to S207, wherein steps S201 to S205 are the same as steps S101 to S105 described above, and will not be described in detail herein.
S201, acquiring host information and state data of a server, wherein the state data comprises component data corresponding to a hardware component of the server.
S202, detecting whether the state data has faults or not according to the component data based on a preset detection rule.
And S203, if the state data has faults, the host information is sent to the management server so that the management server can allocate event management numbers for the state data according to the host information.
S204, generating a fault report according to the host information and the state data.
S205, receiving an event management number sent by the management server, and marking the fault report according to the event management number.
S206, generating an event to be processed according to the host information and the state data, and displaying the event to be processed, wherein the event to be processed comprises the event management number.
Specifically, the terminal generates an event to be processed according to the host information and the state data, and displays the event to be processed in a centralized management platform of the terminal, wherein the event to be processed comprises the event management number, and the event management number is associated with a fault report.
In one embodiment, the step of generating the event in step S206, as shown in fig. 7, specifically includes the following steps: s206a, determining the component category corresponding to the component data with the fault in the state data; s206b, counting the alarm quantity corresponding to the state data according to the determined component category based on a preset alarm quantity counting rule; s206c, acquiring a preset keyword corresponding to the component category according to the corresponding relation between the component category and the preset keyword; s206d, generating the event to be processed according to the host information, the alarm number and the preset keywords.
Specifically, the component class corresponding to the component data with the fault in the state data is determined, for example, the component class includes a RAID class, a disk class, a hard disk class, a memory class, or a power class. The preset alarm data statistics rule can be that each hardware component fails, and the alarm data statistics is performed for 1 time, for example, RAID and hard disk fail, and the alarm data is performed for 2 times. The corresponding relation between the component category and the preset keyword, such as a RAID category corresponding to a RAID keyword, a disk category corresponding to a disk keyword, and the like, so that the preset keyword corresponding to the component data with faults can be obtained according to the corresponding relation. Generating the event to be processed according to the host information, the alarm number and the preset keywords, namely, the event to be processed comprises the host information, the alarm data and the preset keywords, so that a user can conveniently check the event to be processed.
S207, if the operation of triggering the event management number in the event to be processed is detected, displaying the fault report according to the triggering operation.
Specifically, if the event management number in the event to be processed is detected to be clicked by the user, the fault report is triggered and displayed according to the clicking operation, so that the alarm data of the user can be facilitated, the alarm data is ensured not to be lost, and the labor cost is further saved.
In addition, after displaying the event to be processed, the method further comprises: acquiring processing record information of the event to be processed; and storing the processing record information in a preset fault report template to update a fault report. Specifically, the processing record of the management personnel is recorded through the fault report, so that the processing record information is conveniently checked in the future, and the processing and the backtracking of fault data are convenient.
Fig. 8 is a schematic block diagram of a report generating apparatus provided in an embodiment of the present application. As shown in fig. 8, corresponding to the report generating method, the present application further provides a report generating device. The report generating device comprises a unit for executing the report generating method, and the device can be configured in a terminal. As shown in fig. 8, the report generating apparatus 300 includes: a data acquisition unit 301, a failure detection unit 302, an information transmission unit 303, a report generation unit 304, a reception flag unit 305, an instruction generation unit 306, an address acquisition unit 307, and a link addition unit 308.
The data obtaining unit 301 is configured to obtain host information and status data of a server, where the status data includes component data corresponding to a hardware component of the server.
The fault detection unit 302 is configured to detect whether the status data has a fault according to the component data based on a preset detection rule.
And an information sending unit 303, configured to send the host information to the management server to enable the management server to assign an event management number to the state data according to the host information if the state data has a fault.
And the report generating unit 304 is configured to generate a fault report according to the host information and the state data.
And the receiving and marking unit 305 is configured to receive an event management number sent by the management server, and mark the fault report according to the event management number.
The instruction generating unit 306 is configured to generate a download instruction according to the host identifier, and send the download instruction to the management server, so that the management server obtains and stores log information corresponding to the status data with a fault.
An address obtaining unit 307, configured to obtain a storage address corresponding to the log information, and generate a download link according to the storage address.
And a link adding unit 308, configured to add the download link to the fault report.
Fig. 9 is a schematic block diagram of a report generating apparatus provided in an embodiment of the present application. As shown in fig. 9, corresponding to the report generating method, the present application further provides a report generating device. The report generating device comprises a unit for executing the report generating method, and the device can be configured in a terminal. As shown in fig. 9, the report generating apparatus 500 includes: a data acquisition unit 501, a failure detection unit 502, an information transmission unit 503, a report generation unit 504, a reception marking unit 505, an event generation unit 506, a report display unit 507, and a report transmission unit 508.
A data obtaining unit 501, configured to obtain host information and status data of a server, where the status data includes component data corresponding to a hardware component of the server;
a fault detection unit 502, configured to detect whether the status data has a fault according to the component data based on a preset detection rule;
an information sending unit 503, configured to send the host information to the management server to enable the management server to assign an event management number to the state data according to the host information if the state data has a fault;
a report generating unit 504, configured to generate a fault report according to the host information and the state data;
and the receiving and marking unit 505 is configured to receive an event management number sent by the management server, and mark the fault report according to the event management number.
An event generating unit 506, configured to generate a to-be-processed event according to the host information and the state data, and display the to-be-processed event, where the to-be-processed event includes the event management number;
and a report display unit 507, configured to display the fault report according to the triggering operation if an operation triggering an event management number in the event to be processed is detected.
In addition, the event to be processed comprises a report control; further comprises: and the report sending unit 508 is configured to send the fault report to the management server if the operation triggering the report control is detected, so that the management server associates the event management number with the fault report.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the report generating device and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The above-described apparatus may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 700 may be a terminal.
With reference to FIG. 10, the computer device 700 includes a processor 720, a memory, and a network interface 750, which are connected by a system bus 710, wherein the memory may include a non-volatile storage medium 730 and an internal memory 740.
The non-volatile storage medium 730 may store an operating system 731 and computer programs 732. The computer program 732, when executed, may cause the processor 720 to perform any one of a number of report generation methods.
The processor 720 is used to provide computing and control capabilities to support the operation of the overall computer device 700.
The internal memory 740 provides an environment for the execution of a computer program 732 in the non-volatile storage medium 730, which computer program 732, when executed by the processor 720, causes the processor 720 to perform any one of the report generating methods.
The network interface 750 is used for network communications such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 700 to which the present application is applied, and that a particular computer device 700 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components. Wherein the processor 720 is configured to execute the program code stored in the memory to implement the following steps:
acquiring host information and state data of a server, wherein the state data comprises component data corresponding to a hardware component of the server; detecting whether the state data has faults or not according to the component data based on a preset detection rule; if the state data has faults, the host information is sent to the management server so that the management server distributes event management numbers for the state data according to the host information; generating a fault report according to the host information and the state data; and receiving an event management number sent by the management server, and marking the fault report according to the event management number.
In an embodiment, the processor 720 is configured to execute the program code stored in the memory to implement the detection rule based on the preset, and when detecting whether the status data has a fault according to the component data, specifically implement the following steps:
classifying the state data according to the component category to obtain component data; determining a preset fault detection rule corresponding to the component data according to the component class; detecting the classified component data according to the determined preset fault detection rule to judge whether faults exist in the component data; and if the component data has faults, judging that the state data has faults.
In one embodiment, when the processor 720 executes the program code stored in the memory to implement the generating the fault report according to the host information and the state data, the following steps are specifically implemented:
classifying the state data according to the component category to obtain component data; and indexing the component data and the host information to a preset fault report template according to the component category so as to generate a fault report.
In one embodiment, the host information includes a host identifier, and the processor 720 is configured to, after executing the program code stored in the memory to implement the generating the fault report according to the host information and the state data, implement the following steps:
generating a downloading instruction according to the host identity, and sending the downloading instruction to the management server so that the management server can acquire and store log information corresponding to the fault of the state data; acquiring a storage address corresponding to the log information, and generating a download link according to the storage address; and adding the download link to the fault report.
In one embodiment, after the processor 720 executes the program code stored in the memory to implement the marking the fault report according to the event management number, the following steps are further implemented:
generating an event to be processed according to the host information and the state data, and displaying the event to be processed, wherein the event to be processed comprises the event management number; and if the operation of triggering the event management number in the event to be processed is detected, displaying the fault report according to the triggering operation.
In one embodiment, when the processor 720 executes the program code stored in the memory to implement the generating the event to be processed according to the host information and the state data, the following steps are specifically implemented:
determining the component category corresponding to the component data with faults in the state data; based on a preset alarm quantity statistics rule, counting the alarm quantity corresponding to the state data according to the determined component category; acquiring a preset keyword corresponding to a component category according to the corresponding relation between the component category and the preset keyword; and generating the event to be processed according to the host information, the alarm quantity and the preset keywords.
In an embodiment, the event to be processed includes a report control, and after the processor 720 executes the program code stored in the memory to implement the displaying the event to be processed, the following steps are further implemented:
and if the operation triggering the reporting control is detected, the fault report is sent to the management server so that the management server associates the event management number with the fault report.
It should be appreciated that in embodiments of the present application, the processor 720 may be a Central processing unit (Central ProcessingUnit, CPU), the processor 720 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate arrays (FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that the computer device 700 structure shown in fig. 10 is not limiting of the computer device 700 and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment methods may be implemented by a computer program for instructing relevant hardware, and the computer program may be stored in a storage medium, where the storage medium is a computer readable storage medium. In an embodiment of the present invention, the computer program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system to implement the steps of the flow including the embodiments of the methods as described above.
The computer readable storage medium may be a magnetic disk, an optical disk, a usb disk, a removable hard disk, a Read-only memory (ROM), a magnetic disk, or an optical disk, etc. various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In several embodiments provided in the present application, it should be understood that the disclosed report generating apparatus and method may be implemented in other manners. For example, the report generating apparatus embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. The report generation method is applied to a terminal of a server centralized management system, the system further comprises a management server, a polling server and a server cluster, and the server cluster comprises a plurality of servers to be managed, and is characterized by comprising the following steps:
the polling server polls the servers in the server cluster according to preset polling time to acquire state data of the servers, and the state data are stored in a database corresponding to the polling server;
polling the database to obtain state data of the server and host information of the server, wherein the state data comprises component data corresponding to hardware components of the server;
detecting whether the state data has faults or not according to the component data based on a preset detection rule;
if the state data has faults, the host information is sent to the management server so that the management server distributes event management numbers for the state data according to the host information;
generating a fault report according to the host information and the state data; the event management number sent by the management server is received, and the fault report is marked according to the event management number;
determining the component category corresponding to the component data with faults in the state data;
based on a preset alarm quantity statistics rule, counting the alarm quantity corresponding to the state data according to the determined component category;
acquiring a preset keyword corresponding to a component category according to the corresponding relation between the component category and the preset keyword;
generating an event to be processed according to the host information, the alarm number and the preset keywords, and displaying the event to be processed, wherein the event to be processed comprises the event management number and a reporting control;
if the operation triggering the reporting control is detected, the fault report is sent to the management server so that the management server correlates the event management number with the fault report;
and if the operation of triggering the event management number in the event to be processed is detected, displaying the fault report according to the triggering operation.
2. The report generating method as set forth in claim 1, wherein the detecting whether the status data has a fault based on the preset detection rule according to the component data comprises:
classifying the state data according to the component category to obtain component data;
determining a preset fault detection rule corresponding to the component data according to the component class;
detecting the classified component data according to the determined preset fault detection rule to judge whether faults exist in the component data;
and if the component data has faults, judging that the state data has faults.
3. The report generating method as set forth in claim 1, wherein said generating a fault report from the host information and the status data includes:
classifying the state data according to the component category to obtain component data;
and indexing the component data and the host information to a preset fault report template according to the component category so as to generate a fault report.
4. The report generating method as recited in claim 1, wherein the host information includes a host identity; after generating the fault report according to the host information and the state data, the method further comprises the following steps:
generating a downloading instruction according to the host identity, and sending the downloading instruction to the management server so that the management server can acquire and store log information corresponding to the fault of the state data;
acquiring a storage address corresponding to the log information, and generating a download link according to the storage address;
and adding the download link to the fault report.
5. A report generating device configured in a terminal of a server centralized management system, the system further comprising a management server, a polling server, and a server cluster, the server cluster comprising a plurality of servers to be managed, characterized by comprising:
the data acquisition unit is used for polling a database to acquire state data of the server and acquiring host information of the server, wherein the state data comprises component data corresponding to a hardware component of the server, and the polling server polls the servers in the server cluster according to preset polling time to acquire the state data of the server and stores the state data in the database corresponding to the polling server;
the fault detection unit is used for detecting whether the state data has faults or not according to the component data based on a preset detection rule;
the information sending unit is used for sending the host information to the management server to enable the management server to distribute event management numbers for the state data according to the host information if the state data has faults;
the report generation unit is used for generating a fault report according to the host information and the state data;
the receiving and marking unit is used for receiving the event management number sent by the management server and marking the fault report according to the event management number;
the report generating device is also used for determining the component category corresponding to the component data with faults in the state data; based on a preset alarm quantity statistics rule, counting the alarm quantity corresponding to the state data according to the determined component category; acquiring a preset keyword corresponding to a component category according to the corresponding relation between the component category and the preset keyword; generating an event to be processed according to the host information, the alarm number and the preset keywords, and displaying the event to be processed, wherein the event to be processed comprises the event management number and a reporting control; if the operation triggering the reporting control is detected, the fault report is sent to the management server so that the management server correlates the event management number with the fault report; and if the operation of triggering the event management number in the event to be processed is detected, displaying the fault report according to the triggering operation.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 4 when the computer program is executed.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of the method according to any one of claims 1 to 4.
CN201810954114.8A 2018-08-21 2018-08-21 Report generation method, report generation device, computer equipment and storage medium Active CN109144765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810954114.8A CN109144765B (en) 2018-08-21 2018-08-21 Report generation method, report generation device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810954114.8A CN109144765B (en) 2018-08-21 2018-08-21 Report generation method, report generation device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109144765A CN109144765A (en) 2019-01-04
CN109144765B true CN109144765B (en) 2024-02-02

Family

ID=64790563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810954114.8A Active CN109144765B (en) 2018-08-21 2018-08-21 Report generation method, report generation device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109144765B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243216A (en) * 2014-09-28 2014-12-24 北京国双科技有限公司 Maintenance method and device of cluster server
CN105429826A (en) * 2015-12-25 2016-03-23 北京奇虎科技有限公司 Fault detection method and device for database cluster
CN105471595A (en) * 2014-06-09 2016-04-06 株式会社日立制作所 Fault processing management device and fault processing management method
CN105791028A (en) * 2016-04-26 2016-07-20 浪潮(北京)电子信息产业有限公司 Monitoring method, server and system of server cluster
WO2017152763A1 (en) * 2016-03-10 2017-09-14 阿里巴巴集团控股有限公司 Physical machine failure classification handling method and device, and virtual machine recovery method and system
CN107943668A (en) * 2017-12-15 2018-04-20 江苏神威云数据科技有限公司 Computer server cluster daily record monitoring method and monitor supervision platform
CN108092813A (en) * 2017-12-21 2018-05-29 郑州云海信息技术有限公司 Data center's total management system server hardware Governance framework and implementation method
CN108153603A (en) * 2017-12-08 2018-06-12 上海陆家嘴国际金融资产交易市场股份有限公司 Database server fault handling method, device and storage medium
CN108199901A (en) * 2018-01-24 2018-06-22 郑州云海信息技术有限公司 Hardware reports method, system, equipment, hardware management server and storage medium for repairment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224436A (en) * 2015-10-29 2016-01-06 曙光信息产业股份有限公司 A kind of operation condition of server method for supervising and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471595A (en) * 2014-06-09 2016-04-06 株式会社日立制作所 Fault processing management device and fault processing management method
CN104243216A (en) * 2014-09-28 2014-12-24 北京国双科技有限公司 Maintenance method and device of cluster server
CN105429826A (en) * 2015-12-25 2016-03-23 北京奇虎科技有限公司 Fault detection method and device for database cluster
WO2017152763A1 (en) * 2016-03-10 2017-09-14 阿里巴巴集团控股有限公司 Physical machine failure classification handling method and device, and virtual machine recovery method and system
CN105791028A (en) * 2016-04-26 2016-07-20 浪潮(北京)电子信息产业有限公司 Monitoring method, server and system of server cluster
CN108153603A (en) * 2017-12-08 2018-06-12 上海陆家嘴国际金融资产交易市场股份有限公司 Database server fault handling method, device and storage medium
CN107943668A (en) * 2017-12-15 2018-04-20 江苏神威云数据科技有限公司 Computer server cluster daily record monitoring method and monitor supervision platform
CN108092813A (en) * 2017-12-21 2018-05-29 郑州云海信息技术有限公司 Data center's total management system server hardware Governance framework and implementation method
CN108199901A (en) * 2018-01-24 2018-06-22 郑州云海信息技术有限公司 Hardware reports method, system, equipment, hardware management server and storage medium for repairment

Also Published As

Publication number Publication date
CN109144765A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN108763038B (en) Alarm data management method and device, computer equipment and storage medium
CN108897665B (en) Log management method and device, computer equipment and storage medium
EP2645257A2 (en) System and method for visualisation of behaviour within computer infrastructure
CN113328872B (en) Fault repairing method, device and storage medium
US11789760B2 (en) Alerting, diagnosing, and transmitting computer issues to a technical resource in response to an indication of occurrence by an end user
CN109189640A (en) Monitoring method, device, computer equipment and the storage medium of server
CN103490941A (en) Real-time monitoring on-line configuration method in cloud computing environment
CN109995612B (en) Service inspection method and device and electronic equipment
CN108920103B (en) Server management method and device, computer equipment and storage medium
US10289522B2 (en) Autonomous information technology diagnostic checks
CN112737800A (en) Service node fault positioning method, call chain generation method and server
CN108241744A (en) A kind of log read method and apparatus
US10659289B2 (en) System and method for event processing order guarantee
CN107885634B (en) Method and device for processing abnormal information in monitoring
JP2010128597A (en) Information processor and method of operating the same
CN109302336B (en) Mail generation method and device, computer equipment and storage medium
US20230359514A1 (en) Operation-based event suppression
CN109144765B (en) Report generation method, report generation device, computer equipment and storage medium
CN115102838B (en) Emergency processing method and device for server downtime risk and electronic equipment
CN115934453A (en) Troubleshooting method, troubleshooting device and storage medium
CN114726756A (en) Configuration monitoring method and equipment
CN114416560A (en) Program crash analysis aggregation method and system
US20140032159A1 (en) Causation isolation using a configuration item metric identified based on event classification
CA3118098C (en) Alerting, diagnosing, and transmitting computer issues to a technical resource in response to a dedicated physical button or trigger
JP2017060012A (en) Fault detection device, fault detection method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant