CN109254892A - A kind of method and device generating report - Google Patents

A kind of method and device generating report Download PDF

Info

Publication number
CN109254892A
CN109254892A CN201810921864.5A CN201810921864A CN109254892A CN 109254892 A CN109254892 A CN 109254892A CN 201810921864 A CN201810921864 A CN 201810921864A CN 109254892 A CN109254892 A CN 109254892A
Authority
CN
China
Prior art keywords
server
threshold
difference
state report
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810921864.5A
Other languages
Chinese (zh)
Inventor
梁育翰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xin'an Century Polytron Technologies Inc
Original Assignee
Beijing Xin'an Century Polytron Technologies Inc
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 Beijing Xin'an Century Polytron Technologies Inc filed Critical Beijing Xin'an Century Polytron Technologies Inc
Priority to CN201810921864.5A priority Critical patent/CN109254892A/en
Publication of CN109254892A publication Critical patent/CN109254892A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of method and devices for generating report, this method comprises: acquiring the first information from catalogue file, determination includes the first specific fields of server hardware modular character from the specific fields, and the first data corresponding to first specific fields are extracted from the first information, wherein, the feature of the hardware module includes the title of the hardware module and/or the application message of the hardware module, judge whether first data corresponding to any server hardware module and the difference of preset first threshold are greater than preset second threshold, if it is greater than, state report is then generated based on the first information, the state report is used to indicate user and safeguards to server.Solves the not high technical problem of the accuracy of operation condition of server monitoring in the prior art.

Description

A kind of method and device generating report
Technical field
This application involves server technology field more particularly to a kind of method and devices for generating report.
Background technique
In the process of running, the operating status of different moments server is different, in order to monitor the fortune of service in real time for server Row state, to be safeguarded to server in time when server state is abnormal.In the prior art, by manually going or Camera goes the state of monitoring server, since whether just artificial or camera head monitor can only determine the operating status of server Often, without can determine that the carrying out practically parameter of server, cause operation condition of server that can not accurately monitor.
Summary of the invention
The application provides a kind of method and device for generating report, to solve in the prior art to operation condition of server Monitor the not high technical problem of accuracy.
In a first aspect, the application provides a kind of method for generating report, this method comprises: server is adopted from catalogue file Collect the first information, wherein the first information includes data corresponding to specific fields in the catalogue file;From described specific Determination includes the first specific fields of server hardware modular character in field, and described is extracted from the first information First data corresponding to one specific fields, wherein the feature of the hardware module include the hardware module title and/or The application message of the hardware module;Judge first data and preset first corresponding to any server hardware module Whether the difference of threshold value is greater than preset second threshold, if it is greater, then state report is generated based on the first information, it is described State report is used to indicate user and safeguards to server.
In embodiment provided by the present application, server is based on institute after acquiring corresponding first data of same hardware module The difference of the first data and preset first threshold is stated to determine whether to generate state report, so that user is based on state report Content safeguards server.Therefore, data of the application based on hardware module in the server of acquisition are come monitoring server Operating status, improve the accuracy of server monitoring.
Optionally, the hardware module includes: at least one of CPU, network interface card, memory, hard disk and power supply.
Optionally, when the hardware module of the same server is CPU, judge corresponding to any server hardware module First data and the difference of preset first threshold whether be greater than preset second threshold, comprising: determine any moment The difference of the occupancy of CPU and the first threshold, judges whether the difference is greater than the second threshold;And/or it determines not The occupancy of same date synchronization CPU and the difference of the first threshold, judge whether the difference is greater than second threshold Value.
Optionally, when the hardware module of the same server is network interface card, judge that any server hardware module institute is right Whether the difference of first data and preset first threshold answered is greater than preset second threshold, comprising: when determining any The difference for carving the give out a contract for a project quantity and the first threshold of network interface card, judges whether the difference is greater than the second threshold;And/or really It is described to judge whether the difference is greater than for the difference of fixed not the give out a contract for a project quantity and the first threshold of same date synchronization network interface card Second threshold.
Optionally, state report is generated based on the first information, comprising: detect in the first information whether include Second specific fields of specific character;If comprising extracting the number comprising the specific character from second specific fields According to;The temporal information that the catalogue file generates is extracted from the first information;The time letter that the catalogue file is generated The data of breath and the specific character make a backup store;Based on the temporal information that the catalogue file generates, first number Accordingly and the data of the specific character generate state report.
In embodiment provided by the present application, server is based on data-triggered corresponding to specific character in the first information Server generates state report, avoids server and is based on preset time interval generation state report, server is caused to run The accuracy of condition monitoring is not high.
Optionally, the temporal information generated based on the catalogue file, first data and the specific character Data generate after state report, further includes: it is default to judge whether the data of specific character described in the state report are greater than Third threshold value, if more than, then by the state report be sent to default access grade be higher than preset value manufacturer server, make Content of the manufacturer server based on the state report is obtained to safeguard the server;Otherwise, by the state report It accuses and gives the user that default access grade is lower than preset value, so that content of the user based on the state report is to described Server is safeguarded.
In embodiment provided by the present application, the state report is pushed to by content of the server based on the state report The user of different default access grades mentions so that user can safeguard server based on the content of the state report The high maintenance efficiency of server.
Second aspect, the application provide a kind of device for generating report, which includes:
Acquisition module, for acquiring the first information from catalogue file, wherein the first information includes the catalogue text Data corresponding to specific fields in part;
Extraction module, for from the specific fields determination include server hardware modular character the first specific word Section, and the first data corresponding to first specific fields are extracted from the first information, wherein the hardware module Feature includes the title of the hardware module and/or the application message of the hardware module;
Generation module, for judging first data corresponding to any server hardware module and preset first threshold Whether the difference of value is greater than preset second threshold, if it is greater, then generating state report, the shape based on the first information State report is used to indicate user and safeguards to server.
The hardware module includes: at least one of CPU, network interface card, memory, hard disk and power supply.
Optionally, when the hardware module of the same server is CPU, the generation module is specifically used for: determining and appoints The occupancy of one moment CPU and the difference of the first threshold, judge whether the difference is greater than the second threshold;And/or It is described to judge whether the difference is greater than for the difference for determining the not occupancy of same date synchronization CPU and the first threshold Second threshold.
Optionally, when the hardware module of the same server is network interface card, the generation module is specifically used for: determining The difference of the give out a contract for a project quantity and the first threshold of any moment network interface card, judges whether the difference is greater than the second threshold; And/or determine the difference of not the give out a contract for a project quantity and the first threshold of same date synchronization network interface card, whether judge the difference Greater than the second threshold.
Optionally, whether the generation module, is specifically used for: detecting in the first information includes the of specific character Two specific fields;If comprising extracting the data comprising the specific character from second specific fields;From described first The temporal information that the catalogue file generates is extracted in information;The temporal information that the catalogue file is generated and the specific word The data of symbol make a backup store;Based on the temporal information that the catalogue file generates, first data and described specific The data of character generate state report.
Optionally, described device further include: pushing module, the pushing module are used for: judge institute in the state report Whether the data for stating specific character are greater than preset third threshold value, if more than the state report is then sent to default access Grade is higher than the manufacturer server of preset value, so that content of the manufacturer server based on the state report is to the service Device is safeguarded;Otherwise, the state report is sent to the user that default access grade is lower than preset value, so that the user Content based on the state report safeguards the server.
The third aspect, the embodiment of the present application also provide a kind of server, comprising:
Memory, for instruction performed by storage processor;
Processor, for executing method of the instruction execution stored in memory as described in above-mentioned first aspect.
Fourth aspect, the embodiment of the present application also provide a kind of computer readable storage medium, the computer-readable storage Media storage has computer instruction, when the computer instruction is run on computers, so that computer executes such as above-mentioned the Method described in one side.
Detailed description of the invention
Fig. 1 is a kind of flow chart for the method for generating report provided by the embodiment of the present application;
Fig. 2 provides a kind of structural schematic diagram of device for generating report by the embodiment of the present application;
Fig. 3 provides a kind of structural schematic diagram of device for generating report by the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of server provided by the embodiment of the present application.
Specific embodiment
In scheme provided by the embodiments of the present application, described embodiment is only the application some embodiments, rather than Whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making creative work premise Under all other embodiment obtained, shall fall in the protection scope of this application.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical scheme It is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the detailed of technical scheme Thin explanation, rather than the restriction to technical scheme, in the absence of conflict, the embodiment of the present application and embodiment In technical characteristic can be combined with each other.
Embodiment one
A kind of method for generating report provided by the embodiment of the present application is done further in detail below in conjunction with Figure of description Thin explanation, this method specific implementation may comprise steps of (method flow is as shown in Figure 1):
Step 101, server acquires the first information from catalogue file, wherein the first information includes the catalogue Data corresponding to specific fields in file.
The catalogue file can be the journal file of server, or the system file of kernel, for example, the mesh Record the file that file is the journal file comprising/var/log catalogue or the kernel operating status comprising/proc catalogue.The spy Determining field can be the field comprising CPU, network interface card, memory, hard disk, power supply title or application message, be also possible to comprising specific The field of character, when the field of the specific character refers to record server operation, application program or system program operation occur The field of mistake, for example, wrong (error), the field for increasing, removing, waiting characters such as (warning).It should be understood that server In it is conceivable that all programs operations field that mistake occur can be included.
It include: the information such as the quantity, occupancy and voidage of CPU in the specific fields of the CPU title or application message; It include: that the quantity of network interface card, giving out a contract for a project for each network interface card and connect packet number at quantity in the specific fields of the network interface card title or application message The information such as amount;It include: quantity, size, occupancy and the gap of hard disk in the specific fields of the hard disk title or application message The information such as rate;It include: the letter such as size, occupancy and voidage of memory in the specific fields of the memory title or application message Breath.
Server is deposited the data of acquisition with the first information in the acquisition catalogue file of specific time interval It stores up in the database of server, for example, specific time interval can be 1 hour, 2 hours.
Step 102, server determination from the specific fields includes the first specific of server hardware modular character Field, and the first data corresponding to first specific fields are extracted from the first information, wherein the hardware module Feature include the title of the hardware module and/or the application message of the hardware module.
Server hardware module includes: at least one of CPU, network interface card, hard disk, memory and power supply.When server pair When hardware module is monitored, server extracts the quantity of CPU from the specific fields comprising CPU title or application message, accounts for With information such as rate and voidages;The quantity of extraction network interface card, each net from the specific fields comprising network interface card title or application message Giving out a contract for a project for card and connects the information such as packet quantity at quantity;The number of hard disk is extracted from the specific fields comprising hard disk title or application message The information such as amount, size, occupancy and voidage;The big of memory is extracted from the specific fields comprising memory title or application message The information such as small, occupancy and voidage;From the specific fields comprising power supply title or application message extract power supply usage amount and Surplus.
It should be understood that the hardware module of the server includes but is not limited to above-mentioned CPU, network interface card, hard disk, memory and electricity Source at least one, it is in server it is conceivable that all hardware modules can be included.
For example, server can be from the specific word of CPU title or application message when server extracts the data of CPU module Section in extract different moments same date CPU data, e.g., July in 2018 8 points, 9 points and 10 points of CPU on the 12nd number According to, the data of the not CPU of the synchronization of same date can also be extracted from the specific fields of CPU title or application message, for example, 10 days 8 July in 2018 point CPU data, 11 days 8 July in 2018 point CPU data or point CPU 12 days 8 July in 2018 number According to.
Step 103, server judges first data and preset first corresponding to any server hardware module Whether the difference of threshold value is greater than preset second threshold, if it is greater, then state report is generated based on the first information, it is described State report is used to indicate user and safeguards to server.
Specifically, judging corresponding to any server hardware module when the hardware module of the same server is CPU First data and the difference of preset first threshold whether be greater than preset second threshold, comprising: determine any moment The difference of the occupancy of CPU and the first threshold, judges whether the difference is greater than the second threshold;And/or it determines not The occupancy of same date synchronization CPU and the difference of the first threshold, judge whether the difference is greater than second threshold Value.Occupancy of the server based on any moment CPU, judges whether the difference is greater than the specific method packet of the second threshold It includes:
One, whether the occupancy of CPU and the difference of preset first threshold for judging any moment acquisition are greater than described the Two threshold values, specifically include:
For example, the occupancy that the preset first threshold of server is CPU is 60%, preset second threshold is The occupancy of 30%, the CPU that server is acquired at 8 are 92%, the data that server is currently acquired and first threshold Value carries out difference operation, and at 8, the difference of the occupancy of server CPU and first preset threshold is 32%, the difference Value is greater than the second threshold, and the first information acquired when server is based on 8 generates state report.
Two, whether the difference of the occupancy and preset first threshold of the judgement CPU that same date synchronization does not acquire is big In the second threshold, specifically include:
For example, the data of the occupancy of collection of server 8 points of (current time) CPU on July 10th, 2018 are 95%, 2018 On July 8,8 in, the occupancy of point CPU was 65%, and 9 days 8 July in 2018, the occupancy of point CPU was 68%, the preset institute of server Stating the occupancy that first threshold is CPU is 60%, the second threshold be 10%, 8 days 8 July in 2018 point CPU occupancy with The difference of the first threshold be 5%, 9 days 8 July in 2018 point CPU occupancy and the first threshold difference be 8%, 10 days 8 July in 2018 point CPU occupancy and the difference of the first threshold be 25%, point CPU's in 10 days 8 July in 2018 accounts for With the difference of the difference of rate and the first threshold and the occupancy of point CPU 9 days 8 July in 2018 and the first threshold and 8 days 8 July in 2018, the occupancy of point CPU was both greater than 10% compared with the difference of the first threshold, and server is based on acquisition The first information generates state report.
Specifically, judging that any server hardware module institute is right when the hardware module of the same server is network interface card Whether the difference of first data and preset first threshold answered is greater than preset second threshold, comprising: when determining any The difference for carving the give out a contract for a project quantity and the first threshold of network interface card, judges whether the difference is greater than the second threshold;And/or really It is described to judge whether the difference is greater than for the difference of fixed not the give out a contract for a project quantity and the first threshold of same date synchronization network interface card Second threshold.Give out a contract for a project quantity of the server based on any moment network interface card, judges whether the difference is greater than the second threshold Specific method includes:
One, it is described to judge whether the difference of give out a contract for a project quantity and the preset first threshold of the network interface card of any moment acquisition is greater than Second threshold specifically includes:
For example, the quantity of giving out a contract for a project that the preset first threshold of server is network interface card is 300M, preset second threshold is The quantity of giving out a contract for a project of 200M, the network interface card that server is acquired at 8 are 600M, the data that server is currently acquired and described first Threshold value carries out difference operation, and at 8, the difference of give out a contract for a project quantity and first preset threshold of server network interface card is 300M, institute Difference is stated greater than the second threshold, server generates state report based on the first information of acquisition.
Two, judgement give out a contract for a project quantity and the preset first threshold of the network interface card of same date synchronization acquisition difference whether Greater than the second threshold, specifically include:
For example, collection of server 8 points of (current time) network interface cards on July 10th, 2018 give out a contract for a project quantity be 600M, 2018 7 The moon, the quantity of giving out a contract for a project of No. 88 network interface cards was 400M, and on July 9th, 2018, the quantity of giving out a contract for a project of 8 network interface cards was 450M, and server is preset The first threshold is that the quantity of giving out a contract for a project of network interface card is 300M, the second threshold be 100M, July in 2018 8 network interface cards on the 8th hair The difference of packet quantity and the first threshold is 100M, on July 9th, 2,018 8 network interface cards give out a contract for a project quantity and the first threshold Difference be 150M, on July 10th, 2018, the difference of give out a contract for a project quantity and the first threshold of 8 network interface cards was 300M, 2018 7 The difference of the give out a contract for a project quantity and the first threshold of months No. 10 8 network interface cards and 8 network interface cards on July 9th, 2018 give out a contract for a project quantity with The difference of the first threshold and 8 network interface cards on July 8th, 2018 give out a contract for a project quantity compared with the difference of the first threshold all Greater than 100M, server generates state report based on the first information of acquisition.
In embodiment provided by the present application, server is based on institute in corresponding first data of same hardware module of acquisition The difference of the first data and the first threshold is stated to determine whether to generate state report, so that user is based in state report Appearance safeguards server.Therefore, data of the application based on hardware module in the server of acquisition are come monitoring server Operating status improves the accuracy to server monitoring.
Further for being accurately monitored to the operating status of server.State report is generated based on the first information Accuse, comprising: detect in the first information whether include specific character the second specific fields;If comprising from described The data comprising the specific character are extracted in two specific fields;Extract what the catalogue file generated from the first information Temporal information;The data of temporal information and the specific character that the catalogue file generates are made a backup store;Based on institute State the temporal information of catalogue file generation, the data generation state report of first data and the specific character.
For example, server detects the field comprising error/warning character from the first information, server will The data of this line in the field comprising error/warning character extract, and institute is extracted from the catalogue file The temporal information of catalogue file generation is stated, then, by data of the row including error/warning character of extraction and described The temporal information that catalogue file generates is stored into the memory of server, then the time that the catalogue file based on acquisition generates The data of information, first data and the row including error/warning character generate state report.
In embodiment provided by the present application, server is based on data-triggered corresponding to specific character in the first information Server generates state report, avoids server and is based on preset time interval generation state report, server is caused to run The accuracy of condition monitoring is not high.
The state report generated for the ease of user based on server safeguards server.Based on the catalogue file The data of the temporal information of generation, first data and the specific character generate after state report, further includes: judgement Whether the data of specific character described in the state report are greater than preset third threshold value, if more than then by the state report It accuses and gives the manufacturer server that default access grade is higher than preset value, so that the manufacturer server is based on the state report Content the server is safeguarded;Otherwise, the state report is sent to default access grade lower than preset value User, so that content of the user based on the state report safeguards the server.
In embodiment provided by the present application, the state report is pushed to by content of the server based on the state report The user of different default access grades mentions so that user can safeguard server based on the content of the state report The high maintenance efficiency of server.
Embodiment two
Based on the same inventive concept, a kind of device generating report is provided in the embodiment of the present application, refers to Fig. 2, the dress It sets and includes:
Acquisition module 201, for acquiring the first information from catalogue file, wherein the first information includes the mesh Record data corresponding to specific fields in file;
Extraction module 202, for from the specific fields determination include the first special of server hardware modular character Determine field, and extract the first data corresponding to first specific fields from the first information, wherein the hardware mould The feature of block includes the title of the hardware module and/or the application message of the hardware module;
Generation module 203, for judging first data corresponding to any server hardware module and preset the Whether the difference of one threshold value is greater than preset second threshold, if it is greater, then generating state report, institute based on the first information It states state report and is used to indicate user and server is safeguarded.
Optionally, the hardware module includes: at least one of CPU, network interface card, memory, hard disk and power supply.
Optionally, when the hardware module of the same server is CPU, the generation module 203 is specifically used for: really Determine the occupancy of any moment CPU and the difference of the first threshold, judges whether the difference is greater than the second threshold; And/or determine the difference of the not occupancy of same date synchronization CPU and the first threshold, judge whether the difference is greater than The second threshold.
Optionally, when the hardware module of the same server is network interface card, the generation module 203 is specifically used for: really The difference for determining the give out a contract for a project quantity and the first threshold of any moment network interface card, judges whether the difference is greater than second threshold Value;And/or determine the difference of not the give out a contract for a project quantity and the first threshold of same date synchronization network interface card, judge that the difference is It is no to be greater than the second threshold.
Optionally, whether the generation module 203, is specifically used for: detecting in the first information includes specific character The second specific fields;If comprising extracting the data comprising the specific character from second specific fields;From described The temporal information that the catalogue file generates is extracted in the first information;The temporal information that the catalogue file is generated and the spy The data for determining character make a backup store;Based on the temporal information that the catalogue file generates, first data and described The data of specific character generate state report.
Optionally, described device further include: pushing module 301 refers to Fig. 3, and the pushing module 301 is used for: judgement Whether the data of specific character described in the state report are greater than preset third threshold value, if more than then by the state report It accuses and gives the manufacturer server that default access grade is higher than preset value, so that the manufacturer server is based on the state report Content the server is safeguarded;Otherwise, the state report is sent to default access grade lower than preset value User, so that content of the user based on the state report safeguards the server.
Embodiment three
Based on the same inventive concept, the embodiment of the present application also provides a kind of server, and referring to fig. 4, which includes:
Memory 401, for instruction performed by storage processor;
Processor 402, for executing method described in the instruction execution above-described embodiment one stored in memory.
Fourth aspect, the embodiment of the present application also provide a kind of computer readable storage medium, the computer-readable storage Media storage has computer instruction, when the computer instruction is run on computers, so that computer executes above-mentioned implementation Method described in example one.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.

Claims (14)

1. a kind of method for generating report characterized by comprising
The first information is acquired from catalogue file, wherein the first information include in the catalogue file specific fields institute it is right The data answered;
Determination includes the first specific fields of server hardware modular character from the specific fields, and is believed from described first The first data corresponding to first specific fields are extracted in breath, wherein the feature of the hardware module includes the hardware The application message of the title of module and/or the hardware module;
Judge whether the difference of first data and preset first threshold corresponding to any server hardware module is greater than Preset second threshold, if it is greater, then generating state report based on the first information, the state report is used to indicate use Family is safeguarded by server.
2. the method as described in claim 1, which is characterized in that the hardware module include: CPU, network interface card, memory, hard disk with And at least one of power supply.
3. method according to claim 2, which is characterized in that when the hardware module of the same server is CPU, judgement Whether the difference of first data corresponding to any server hardware module and preset first threshold is greater than preset the Two threshold values, comprising:
It determines the occupancy of any moment CPU and the difference of the first threshold, judges whether the difference is greater than described second Threshold value;
And/or determine the difference of the not occupancy of same date synchronization CPU and the first threshold, whether judge the difference Greater than the second threshold.
4. method according to claim 2, which is characterized in that when the hardware module of the same server is network interface card, sentence It is preset whether the difference of first data corresponding to disconnected any server hardware module and preset first threshold is greater than Second threshold, comprising:
The difference for determining the give out a contract for a project quantity and the first threshold of any moment network interface card, judges whether the difference is greater than described Two threshold values;
And/or determine the difference of not the give out a contract for a project quantity and the first threshold of same date synchronization network interface card, judge the difference Whether the second threshold is greater than.
5. the method as described in claim 1, which is characterized in that generate state report based on the first information, comprising:
Detect in the first information whether include specific character the second specific fields;
If comprising extracting the data comprising the specific character from second specific fields;
The temporal information that the catalogue file generates is extracted from the first information;
The data of temporal information and the specific character that the catalogue file generates are made a backup store;
Based on the temporal information that the catalogue file generates, the data of first data and the specific character generate state Report.
6. method as claimed in claim 5, which is characterized in that based on the temporal information that the catalogue file generates, described the One data and the data of the specific character generate after state report, further includes:
Judge whether the data of specific character described in the state report are greater than preset third threshold value, if more than then by institute It states state report and is sent to the manufacturer server that default access grade is higher than preset value, so that the manufacturer server is based on described The content of state report safeguards the server;
Otherwise, the state report is sent to the user that default access grade is lower than preset value, so that the user is based on institute The content for stating state report safeguards the server.
7. a kind of device for generating report characterized by comprising
Acquisition module, for acquiring the first information from catalogue file, wherein the first information includes in the catalogue file Data corresponding to specific fields;
Extraction module, for from the specific fields determination include server hardware modular character the first specific fields, And the first data corresponding to first specific fields are extracted from the first information, wherein the spy of the hardware module Sign includes the title of the hardware module and/or the application message of the hardware module;
Generation module, for judging first data corresponding to any server hardware module and preset first threshold Whether difference is greater than preset second threshold, if it is greater, then generating state report, the state report based on the first information Announcement is used to indicate user and safeguards to server.
8. device as claimed in claim 7, which is characterized in that the hardware module include: CPU, network interface card, memory, hard disk with And at least one of power supply.
9. device as claimed in claim 8, which is characterized in that described when the hardware module of the same server is CPU Generation module is specifically used for:
It determines the occupancy of any moment CPU and the difference of the first threshold, judges whether the difference is greater than described second Threshold value;
And/or determine the difference of the not occupancy of same date synchronization CPU and the first threshold, whether judge the difference Greater than the second threshold.
10. device as claimed in claim 8, which is characterized in that when the hardware module of the same server is network interface card, institute Generation module is stated, is specifically used for:
The difference for determining the give out a contract for a project quantity and the first threshold of any moment network interface card, judges whether the difference is greater than described Two threshold values;
And/or determine the difference of not the give out a contract for a project quantity and the first threshold of same date synchronization network interface card, judge the difference Whether the second threshold is greater than.
11. device as claimed in claim 7, which is characterized in that the generation module is specifically used for:
Detect in the first information whether include specific character the second specific fields;
If comprising extracting the data comprising the specific character from second specific fields;
The temporal information that the catalogue file generates is extracted from the first information;
The data of temporal information and the specific character that the catalogue file generates are made a backup store;
Based on the temporal information that the catalogue file generates, the data of first data and the specific character generate state Report.
12. device as claimed in claim 11, which is characterized in that described device further include: pushing module, the pushing module For:
Judge whether the data of specific character described in the state report are greater than preset third threshold value, if more than then by institute It states state report and is sent to the manufacturer server that default access grade is higher than preset value, so that the manufacturer server is based on described The content of state report safeguards the server;
Otherwise, the state report is sent to the user that default access grade is lower than preset value, so that the user is based on institute The content for stating state report safeguards the server.
13. a kind of server characterized by comprising
Memory, for instruction performed by storage processor;
Processor, for executing the instruction execution method of any of claims 1-6 stored in memory.
14. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to It enables, when the computer instruction is run on computers, so that computer perform claim requires side described in any one of 1-6 Method.
CN201810921864.5A 2018-08-14 2018-08-14 A kind of method and device generating report Pending CN109254892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810921864.5A CN109254892A (en) 2018-08-14 2018-08-14 A kind of method and device generating report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810921864.5A CN109254892A (en) 2018-08-14 2018-08-14 A kind of method and device generating report

Publications (1)

Publication Number Publication Date
CN109254892A true CN109254892A (en) 2019-01-22

Family

ID=65050160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810921864.5A Pending CN109254892A (en) 2018-08-14 2018-08-14 A kind of method and device generating report

Country Status (1)

Country Link
CN (1) CN109254892A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147539A (en) * 2019-04-04 2019-08-20 口碑(上海)信息技术有限公司 Generate method and device, the storage medium, electronic device of earning report
CN110263309A (en) * 2019-05-14 2019-09-20 口碑(上海)信息技术有限公司 Generate method and device, the storage medium, electronic device of earning report
CN113297090A (en) * 2021-06-11 2021-08-24 南方电网数字电网研究院有限公司 System testing method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217735A (en) * 2007-03-08 2008-09-18 Nec Corp Fault analysis system, method and program
CN103197995A (en) * 2012-01-04 2013-07-10 百度在线网络技术(北京)有限公司 Hard disk fault detection method and device
CN106657387A (en) * 2017-01-13 2017-05-10 郑州云海信息技术有限公司 Intelligent centralized air-traffic-control automation monitoring system
CN106815115A (en) * 2017-01-13 2017-06-09 郑州云海信息技术有限公司 A kind of operation condition of server monitoring system
CN107220181A (en) * 2017-06-16 2017-09-29 瑞斯康达科技发展股份有限公司 A kind of abnormal process localization method, apparatus and system
CN108388503A (en) * 2018-02-13 2018-08-10 中体彩科技发展有限公司 Data-base performance monitoring method, system, equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217735A (en) * 2007-03-08 2008-09-18 Nec Corp Fault analysis system, method and program
CN103197995A (en) * 2012-01-04 2013-07-10 百度在线网络技术(北京)有限公司 Hard disk fault detection method and device
CN106657387A (en) * 2017-01-13 2017-05-10 郑州云海信息技术有限公司 Intelligent centralized air-traffic-control automation monitoring system
CN106815115A (en) * 2017-01-13 2017-06-09 郑州云海信息技术有限公司 A kind of operation condition of server monitoring system
CN107220181A (en) * 2017-06-16 2017-09-29 瑞斯康达科技发展股份有限公司 A kind of abnormal process localization method, apparatus and system
CN108388503A (en) * 2018-02-13 2018-08-10 中体彩科技发展有限公司 Data-base performance monitoring method, system, equipment and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147539A (en) * 2019-04-04 2019-08-20 口碑(上海)信息技术有限公司 Generate method and device, the storage medium, electronic device of earning report
CN110147539B (en) * 2019-04-04 2023-04-21 口碑(上海)信息技术有限公司 Method and device for generating performance report, storage medium and electronic device
CN110263309A (en) * 2019-05-14 2019-09-20 口碑(上海)信息技术有限公司 Generate method and device, the storage medium, electronic device of earning report
CN110263309B (en) * 2019-05-14 2023-05-16 口碑(上海)信息技术有限公司 Method and device for generating performance report, storage medium and electronic device
CN113297090A (en) * 2021-06-11 2021-08-24 南方电网数字电网研究院有限公司 System testing method, device, computer equipment and storage medium
CN113297090B (en) * 2021-06-11 2024-01-23 南方电网数字平台科技(广东)有限公司 System test method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110418161A (en) Video reviewing method and device, electronic equipment and readable storage medium storing program for executing
CN109254892A (en) A kind of method and device generating report
CN106815125A (en) A kind of log audit method and platform
CN109344719A (en) Substation equipment information query method based on augmented reality and intelligent glasses
CN112730938A (en) Electricity stealing user judgment method based on electricity utilization collection big data
CN110609908A (en) Case serial-parallel method and device
CN105096195A (en) Account money amount processing method and system based on internet application platform
CN107748739A (en) A kind of extracting method and relevant apparatus of short message text masterplate
CN109582537A (en) Service security means of defence and its system
CN102571424A (en) Processing method, device and system for engineering event
CN110138613B (en) Network test template construction method, power network test method and related device
CN108989063A (en) Processing method, device, equipment and the readable storage medium storing program for executing of group's account data
CN106250407A (en) A kind of social communication method and apparatus
CN109711849B (en) Ether house address portrait generation method and device, electronic equipment and storage medium
CN114742124A (en) Abnormal data processing method, system and device
CN106372969A (en) Power user feature identification method and system
CN106817262A (en) A kind of log analysis device
CN111176924B (en) GPU card dropping simulation method, system, terminal and storage medium
CN107945034A (en) Financial analysis method, application server and computer-readable recording medium based on microblogging finance and economics event
CN114679342B (en) Network security alarm information display method, device, equipment and medium
CN116431429A (en) Unified monitoring platform and monitoring method for middleware
CN116739408A (en) Power grid dispatching safety monitoring method and system based on data tag and electronic equipment
CN107590163B (en) The methods, devices and systems of text feature selection
CN108234476A (en) The action listener method and monitoring system of exchange chip
CN106502843A (en) A kind of hard disk plug stability test method suitable for raid card

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190122

RJ01 Rejection of invention patent application after publication