CN109542705A - A kind of monitored item adding method and device - Google Patents

A kind of monitored item adding method and device Download PDF

Info

Publication number
CN109542705A
CN109542705A CN201811432803.9A CN201811432803A CN109542705A CN 109542705 A CN109542705 A CN 109542705A CN 201811432803 A CN201811432803 A CN 201811432803A CN 109542705 A CN109542705 A CN 109542705A
Authority
CN
China
Prior art keywords
server
monitored item
added
hardware
machine models
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.)
Withdrawn
Application number
CN201811432803.9A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811432803.9A priority Critical patent/CN109542705A/en
Publication of CN109542705A publication Critical patent/CN109542705A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of monitored item adding methods, this method comprises: searching the server of same configuration according to the machine models and hardware configuration of the server of monitored item to be added;The server similarly configured if it exists then calls the monitored item template of the server of the same configuration to add monitored item for the server of the monitored item to be added.The invention also discloses a kind of monitored item adding sets.Method and apparatus provided by the invention can reduce time spent by multiple scanning and human cost, ensure that the consistency and accuracy of unified configuration monitoring item.

Description

A kind of monitored item adding method and device
Technical field
The present invention relates to monitored item adding method a kind of in computer O&M field more particularly to computer O&M field and Device.
Background technique
Current data center traffic is more and more, and calculating task is also more and more heavier, so that server in data center Increase it is very frequent.Currently, it is used when adding the hardware monitoring item of server and item is monitored to every server in real time Scanning, is then then added in the monitoring software of data center.Most of actual monitored item of every server is a more than 100, Every server is scanned in order, when adding monitored item, the time can be grown very much, and someone is needed to fall into a long wait, right We cause certain waste at existing human cost.Therefore, how in the case where existing equipment, server monitoring item is realized Quick addition, maximumlly reduce server apparatus monitored item add the time, and ensure add monitored item information standard True property is current urgent problem to be solved.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of monitored item adding methods, reduce spent by multiple scanning Time and human cost ensure that the consistency and accuracy of unified configuration monitoring item.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of monitored item adding methods, comprising:
According to the machine models and hardware configuration of the server of monitored item to be added, the server of same configuration is searched;
The server similarly configured if it exists, then calling the monitored item template of the server of the same configuration is described wait add The server of monitored item is added to add monitored item.
In a kind of exemplary embodiment, the above method also has the characteristics that following:
The machine models and hardware configuration of the server according to monitored item to be added, search the service of same configuration Device, comprising:
The machine models of server more to be added and the machine models of the server in monitoring system database, if There is server identical with the machine models of server to be added in the monitoring system database, then detects first service The hardware configuration similarity of device and second server, if the first server and the hardware configuration similarity of second server are 1, then judge first server and second server is the server of same configuration;
Wherein, the first server is server to be added, and the second server is the monitoring system data Server identical with the machine models of the server to be added in library.
In a kind of exemplary embodiment, the above method also has the characteristics that following:
Hardware configuration similarity=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ network interface card × 0.1+ power supply × 0.1+ substrate Mainboard × 0.2 Management Controller BMC × 0.2+;
Wherein, the CPU, memory, hard disk, network interface card, power supply, BMC, mainboard are respectively indicated according to first server and second The model and specification of the corresponding hardware of server and the value returned.
In a kind of exemplary embodiment, the above method also has the characteristics that following:
The value returned according to the model and specification of first server and the corresponding hardware of second server is 0 or 1;
When the model of first server corresponding hardware with second server is identical with specification, the value of the return is 1;
When first server and the model and not identical specification of the corresponding hardware of second server, the value of the return is 0。
In a kind of exemplary embodiment, the above method also has the characteristics that following:
If there is no the server of same configuration, then all hardware equipment of the server of monitored item to be added is obtained Monitored item, and generate according to the machine models of the server of monitored item to be added and hardware configuration the clothes of the monitored item to be added The monitored item template of business device
To solve the above-mentioned problems, the present invention also provides a kind of monitored item adding sets, comprising: memory and processing Device;
The memory, for saving the program for being used for monitored item addition;
The processor executes the program for monitored item addition for reading, performs the following operations:
According to the machine models and hardware configuration of the server of monitored item to be added, the server of same configuration is searched;
The server similarly configured if it exists, then calling the monitored item template of the server of the same configuration is described wait add The server of monitored item is added to add monitored item.
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
The machine models and hardware configuration of the server according to monitored item to be added, search the service of same configuration Device, comprising:
The machine models of server more to be added and the machine models of the server in monitoring system database, if There is server identical with the machine models of server to be added in the monitoring system database, then detects first service The hardware configuration similarity of device and second server, if the first server and the hardware configuration similarity of second server are 1, then judge first server and second server is the server of same configuration;
Wherein, the first server is server to be added, and the second server is the monitoring system data Server identical with the machine models of the server to be added in library.
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
Hardware configuration similarity=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ network interface card × 0.1+ power supply × 0.1+ substrate Mainboard × 0.2 Management Controller BMC × 0.2+;
Wherein, the CPU, memory, hard disk, network interface card, power supply, BMC, mainboard are respectively indicated according to first server and second The model and specification of the corresponding hardware of server and the value returned.
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
The value returned according to the model and specification of first server and the corresponding hardware of second server is 0 or 1;
When the model of first server corresponding hardware with second server is identical with specification, the value of the return is 1;
When first server and the model and not identical specification of the corresponding hardware of second server, the value of the return is 0。
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
The processor executes the program for monitored item addition for reading, also performs the following operations:
If there is no the server of same configuration, then all hardware equipment of the server of monitored item to be added is obtained Monitored item, and generate according to the machine models of the server of monitored item to be added and hardware configuration the clothes of the monitored item to be added The monitored item template of business device.
To sum up, a kind of monitored item adding method and device provided in an embodiment of the present invention, reduce spent by multiple scanning Time and human cost, ensure that the consistency and accuracy of unified configuration monitoring item, improve the O&M efficiency of server.
Detailed description of the invention
Fig. 1 is the schematic diagram according to the monitored item adding method of the embodiment of the present invention.
Fig. 2 is the flow chart according to the monitored item adding method of the embodiment of the present invention.
Fig. 3 is the schematic diagram according to the monitored item adding set of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Fig. 1 is the schematic diagram of the monitored item adding method of the embodiment of the present invention, as shown in Figure 1, the monitored item of the present embodiment Adding method includes:
S11, machine models and hardware configuration according to the server of monitored item to be added, search the service of same configuration Device.
Wherein, the monitored item can refer to pre-set monitor control index, such as CPU usage, memory usage, net Card speed etc..
Wherein, hardware configuration can refer to CPU, memory, hard disk, network interface card, power supply, the baseboard management controller of server The configuration of the hardware such as BMC, mainboard.
Wherein, the server of same configuration refers to that machine models are identical, the identical server of hardware configuration.
In a kind of exemplary embodiment, the machine models and hardware of the server according to monitored item to be added are matched It sets, searches the server of same configuration, may include:
The machine models of server more to be added and the machine models of the server in monitoring system database, if There is server identical with the machine models of server to be added in the monitoring system database, then detects first service The hardware configuration similarity of device and second server, if the first server and the hardware configuration similarity of second server are 1, then judge first server and second server is the server of same configuration;
Wherein, the first server is server to be added, and the second server is the monitoring system data Server identical with the machine models of the server to be added in library.
In a kind of exemplary embodiment, hardware configuration similarity=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ net Card × 0.1+ power supply × mainboard × 0.2 0.1+ baseboard management controller BMC × 0.2+;
Wherein, the CPU, memory, hard disk, network interface card, power supply, BMC, mainboard are respectively indicated according to first server and second The model and specification of the corresponding hardware of server and the value returned.
In a kind of exemplary embodiment, according to the model and specification of first server and the corresponding hardware of second server And the value returned is 0 or 1.
In a kind of exemplary embodiment, when the model and specification phase of first server and the corresponding hardware of second server Meanwhile the value of the return is 1;
When first server and the model and not identical specification of the corresponding hardware of second server, the value of the return is 0。
For example, first server is identical with specification with the model of the CPU of second server, then 1 is returned.First server and The model of the memory of second server is identical with specification, then returns to 1.The model of the hard disk of first server and second server and Specification is not identical, then returns to 0.
When the CPU of first server and second server, memory, hard disk, network interface card, power supply, BMC, the model of mainboard and rule When lattice all distinguish identical, then according to hardware configuration similarity=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ network interface card × 0.1+ Power supply × mainboard × 0.2 0.1+ baseboard management controller BMC × 0.2+, the hardware configuration similarity being calculated are 1.
S12, the server similarly configured if it exists, then it is described for calling the monitored item template of the server of the same configuration The server of monitored item to be added adds monitored item.
In a kind of exemplary embodiment, the monitored item template of server can be pre-generated, it can also be when in step S11 There is no all hardware device monitored item for when server of same configuration, directly acquiring the server of monitored item to be added, And the monitored item configuration template of the server is generated according to the machine models of the server and hardware configuration.Machine models and hardware It configures identical server and uses same monitored item template.
In a kind of exemplary embodiment, if there is no the server of same configuration, then monitored item to be added is obtained The monitored item of all hardware equipment of server, and it is raw according to the machine models of the server of monitored item to be added and hardware configuration At the monitored item template of the server of the monitored item to be added.
Fig. 2 is the flow chart of the monitored item adding method of the embodiment of the present invention.It comprises the following steps that
Step 201: according to the machine models and hardware configuration of the server of monitored item to be added, in monitoring system database Server of the middle inquiry with the presence or absence of same configuration.
According in the machine models of the server of monitored item to be added and hardware configuration query monitor system database whether There are the rule of the server of same configuration is as follows:
It first determines whether in monitoring system database with the presence or absence of identical as the machine models of the server of monitored item to be added Server.If it does not exist, then there is no identical as the server of monitored item to be added in monitoring system database for explanation The server of configuration.The monitoring of the server is then generated according to the machine models of the server of monitored item to be added and hardware configuration Item template.If it is present detecting the server (first server i.e. above) of monitored item to be added and monitoring to be added Server the identical server of machine models (second server i.e. above) hard disk degree of being similarly configured whether etc. In 1.
Wherein, hard disk degree of being similarly configured=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ network interface card × power supply × 0.1 0.1+ Mainboard × 0.2+baseboard management controller BMC × 0.2+;Wherein, CPU indicates the CPU according to first server and second server Model and specification and the value that returns, memory indicate according to the model and specification of first server and the memory of second server and The value of return, hard disk indicate the value returned according to the model and specification of first server and the hard disk of second server, network interface card Indicate the value returned according to the model and specification of first server and the network interface card of second server, remaining hardware can be with such It pushes away.1 is returned to when the model of first server corresponding hardware with second server is identical with specification, when first server and 0 is returned when the model and not identical specification of the corresponding hardware of two servers.
Step 202: if there is the server of same configuration, then calling directly the monitored item of the server of the same configuration Template is that the server of monitored item to be added adds monitored item.
Step 203: if there is no the server of same configuration, then directly acquiring the institute of the server of monitored item to be added Some hardware device monitored item, and generate according to the machine models of the server and hardware configuration the monitored item mould of the server Plate.
It purchases in data center with a batch of server, when monitoring system is added, can realize through the foregoing embodiment The quick addition of server monitoring item maximumlly improves the O&M efficiency of data center, reduces human cost.
Fig. 3 is the schematic diagram of the monitored item adding set of the embodiment of the present invention, as shown in Figure 3, comprising: memory and processing Device;
The memory, for saving the program for being used for monitored item addition;
The processor executes the program for monitored item addition for reading, performs the following operations:
According to the machine models and hardware configuration of the server of monitored item to be added, the server of same configuration is searched;
The server similarly configured if it exists, then calling the monitored item template of the server of the same configuration is described wait add The server of monitored item is added to add monitored item.
In a kind of exemplary embodiment, the machine models and hardware of the server according to monitored item to be added are matched It sets, searches the server of same configuration, comprising:
The machine models of server more to be added and the machine models of the server in monitoring system database, if There is server identical with the machine models of server to be added in the monitoring system database, then detects first service The hardware configuration similarity of device and second server, if the first server and the hardware configuration similarity of second server are 1, then judge first server and second server is the server of same configuration;
Wherein, the first server is server to be added, and the second server is the monitoring system data Server identical with the machine models of the server to be added in library.
In a kind of exemplary embodiment, hardware configuration similarity=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ net Card × 0.1+ power supply × mainboard × 0.2 0.1+ baseboard management controller BMC × 0.2+;
Wherein, the CPU, memory, hard disk, network interface card, power supply, BMC, mainboard are respectively indicated according to first server and second The model and specification of the corresponding hardware of server and the value returned.
In a kind of exemplary embodiment, according to the model and specification of first server and the corresponding hardware of second server And the value returned is 0 or 1;
When the model of first server corresponding hardware with second server is identical with specification, the value of the return is 1;
When first server and the model and not identical specification of the corresponding hardware of second server, the value of the return is 0。
In a kind of exemplary embodiment, the processor executes the program for monitored item addition for reading, Also perform the following operations:
If there is no the server of same configuration, then all hardware equipment of the server of monitored item to be added is obtained Monitored item, and generate according to the machine models of the server of monitored item to be added and hardware configuration the clothes of the monitored item to be added The monitored item template of business device.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The above is only a preferred embodiment of the present invention, and certainly, the invention may also have other embodiments, without departing substantially from this In the case where spirit and its essence, those skilled in the art make various corresponding changes in accordance with the present invention And deformation, but these corresponding changes and modifications all should fall within the scope of protection of the appended claims of the present invention.

Claims (10)

1. a kind of monitored item adding method, comprising:
According to the machine models and hardware configuration of the server of monitored item to be added, the server of same configuration is searched;
The server similarly configured if it exists, then calling the monitored item template of the server of the same configuration is the prison to be added The server for controlling item adds monitored item.
2. the method as described in claim 1, which is characterized in that the machine models of the server according to monitored item to be added And hardware configuration, search the server of same configuration, comprising:
The machine models of server more to be added and the machine models of the server in monitoring system database, if described In monitoring system database exist server identical with the machine models of server to be added, then detect first server with The hardware configuration similarity of second server, if the first server and the hardware configuration similarity of second server are 1, Judge first server and second server is the server of same configuration;
Wherein, the first server is server to be added, and the second server is in the monitoring system database Server identical with the machine models of the server to be added.
3. method according to claim 2, it is characterised in that:
Hardware configuration similarity=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ network interface card × 0.1+ power supply × 0.1+ substrate management Mainboard × 0.2 controller BMC × 0.2+;
Wherein, the CPU, memory, hard disk, network interface card, power supply, BMC, mainboard are respectively indicated according to first server and second service The model and specification of the corresponding hardware of device and the value returned.
4. method as claimed in claim 3, it is characterised in that:
The value returned according to the model and specification of first server and the corresponding hardware of second server is 0 or 1;
When the model of first server corresponding hardware with second server is identical with specification, the value of the return is 1;
When first server and the model and not identical specification of the corresponding hardware of second server, the value of the return is 0.
5. the method as described in claim 1, it is characterised in that:
If there is no the server of same configuration, then the monitoring of all hardware equipment of the server of monitored item to be added is obtained , and generate according to the machine models of the server of monitored item to be added and hardware configuration the server of the monitored item to be added Monitored item template.
6. a kind of monitored item adding set, comprising: memory and processor;It is characterized by:
The memory, for saving the program for being used for monitored item addition;
The processor executes the program for monitored item addition for reading, performs the following operations:
According to the machine models and hardware configuration of the server of monitored item to be added, the server of same configuration is searched;
The server similarly configured if it exists, then calling the monitored item template of the server of the same configuration is the prison to be added The server for controlling item adds monitored item.
7. device as claimed in claim 6, which is characterized in that the machine models of the server according to monitored item to be added And hardware configuration, search the server of same configuration, comprising:
The machine models of server more to be added and the machine models of the server in monitoring system database, if described In monitoring system database exist server identical with the machine models of server to be added, then detect first server with The hardware configuration similarity of second server, if the first server and the hardware configuration similarity of second server are 1, Judge first server and second server is the server of same configuration;
Wherein, the first server is server to be added, and the second server is in the monitoring system database Server identical with the machine models of the server to be added.
8. device as claimed in claim 7, it is characterised in that:
Hardware configuration similarity=CPU × 0.2+ memory × 0.1+ hard disk × 0.1+ network interface card × 0.1+ power supply × 0.1+ substrate management Mainboard × 0.2 controller BMC × 0.2+;
Wherein, the CPU, memory, hard disk, network interface card, power supply, BMC, mainboard are respectively indicated according to first server and second service The model and specification of the corresponding hardware of device and the value returned.
9. device as claimed in claim 8, it is characterised in that:
The value returned according to the model and specification of first server and the corresponding hardware of second server is 0 or 1;
When the model of first server corresponding hardware with second server is identical with specification, the value of the return is 1;
When first server and the model and not identical specification of the corresponding hardware of second server, the value of the return is 0.
10. device as claimed in claim 6, it is characterised in that:
The processor executes the program for monitored item addition for reading, also performs the following operations:
If there is no the server of same configuration, then the monitoring of all hardware equipment of the server of monitored item to be added is obtained , and generate according to the machine models of the server of monitored item to be added and hardware configuration the server of the monitored item to be added Monitored item template.
CN201811432803.9A 2018-11-28 2018-11-28 A kind of monitored item adding method and device Withdrawn CN109542705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811432803.9A CN109542705A (en) 2018-11-28 2018-11-28 A kind of monitored item adding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811432803.9A CN109542705A (en) 2018-11-28 2018-11-28 A kind of monitored item adding method and device

Publications (1)

Publication Number Publication Date
CN109542705A true CN109542705A (en) 2019-03-29

Family

ID=65850847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811432803.9A Withdrawn CN109542705A (en) 2018-11-28 2018-11-28 A kind of monitored item adding method and device

Country Status (1)

Country Link
CN (1) CN109542705A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855473A (en) * 2019-10-16 2020-02-28 平安科技(深圳)有限公司 Monitoring method, device, server and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855473A (en) * 2019-10-16 2020-02-28 平安科技(深圳)有限公司 Monitoring method, device, server and storage medium

Similar Documents

Publication Publication Date Title
US10275355B2 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
US9672252B2 (en) Identifying and ranking solutions from multiple data sources
US20160232591A1 (en) Near-duplicate filtering in search engine result page of an online shopping system
US8468146B2 (en) System and method for creating search index on cloud database
EP3545431A1 (en) Event driven extract, transform, load (etl) processing
US11237804B2 (en) Systems and methods for application re-use by type pattern matching
CN104981770A (en) Annotations of resources
US20210374195A1 (en) Information processing method, electronic device and storage medium
CN114564852B (en) Operation method of FMEA (failure mode and effects analysis) data node and electronic equipment
CN109240876A (en) Example monitoring method, computer readable storage medium and terminal device
CN109542705A (en) A kind of monitored item adding method and device
US7978937B2 (en) Using photographic images as a search attribute
US20120066228A1 (en) Baselines over indexed, versioned data
CN112528327A (en) Data desensitization method and device and data restoration method and device
US20110113006A1 (en) Business process control apparatus, businesses process control method and business process control program
US11940879B2 (en) Data protection method, electronic device and computer program product
US10409871B2 (en) Apparatus and method for searching information
CN113434585A (en) Resource saving method and equipment
CN112148712A (en) Data processing method, device, equipment and medium
US20200257736A1 (en) Hybrid Datacenter for Dynamic Delta Documentation
CN105511870A (en) Interface prompting method and device
CN113515504B (en) Data management method, device, electronic equipment and storage medium
CN115577078B (en) Engineering cost audit information retrieval method, system, equipment and storage medium
JP2005327225A (en) System, method, and program for document management, and program recording medium
CN109547290B (en) Cloud platform garbage data detection processing method, device, equipment and storage medium

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190329

WW01 Invention patent application withdrawn after publication