CN107957930A - A kind of monitoring method of host node storage space - Google Patents
A kind of monitoring method of host node storage space Download PDFInfo
- Publication number
- CN107957930A CN107957930A CN201711176200.2A CN201711176200A CN107957930A CN 107957930 A CN107957930 A CN 107957930A CN 201711176200 A CN201711176200 A CN 201711176200A CN 107957930 A CN107957930 A CN 107957930A
- Authority
- CN
- China
- Prior art keywords
- memory space
- host node
- method described
- storage space
- monitoring
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
Abstract
The present invention relates to memory space monitoring technology field, particularly a kind of monitoring method of host node storage space.Method of the present invention is to obtain the size and number of cluster if judging whether memory space value is equal with 2TB when monitoring host node storage space, carries out the accurate judgement of the physical memory space.The present invention is solved when host memory space is more than 2TB, the problem of can not obtaining memory space value exactly, has ensured the accuracy for obtaining host memory space.
Description
Technical field
The present invention relates to memory space monitoring technology field, particularly a kind of monitoring side of host node storage space
Method.
Background technology
With flourishing for information technology, the management of host node becomes more and more important.When user needs to monitor host
During machine memory space, the memory space for obtaining host exactly just seems abnormal important, and traditional acquisition methods can be brought
Problems with:
First, memory space is obtained, it is necessary to the related collection of each host node installation agent processing in host node
Logic and collect be pushed to controller, there is the agency for needing all host nodes during renewal all to update one time, this mode is not
It is enough convenient.
Second, cause when host node performs similar df-h orders inquiry memory space situation it is possible that stuck
Collection procedure can not normal operation.
Third, it is not accurate enough, host node storage space is obtained by SNMP, since the return Value Types set is whole
Type, is only able to display maximum 2TB when memory space is more than 2TB (2147483647Bytes), can not obtain the true of memory space
Real value.
Obtain the memory space of host node for simplicity, it is ensured that the host node storage space of acquisition it is accurate
Property, it is necessary to a kind of more accurate easily monitoring method.
The content of the invention
Present invention solves the technical problem that being to propose a kind of monitoring method of host node storage space, solve to need
Installation agent maintenance, which is acted on behalf of, execution order is stuck leads to not collect host node storage space value, can not accurately obtain greatly
In the host node storage space of 2T the problems such as.
The present invention solve above-mentioned technical problem technical solution be:
The method is when monitoring host node storage space, such as judges whether memory space value is equal with 2TB
The size and number of cluster is then obtained, carries out the accurate judgement of the physical memory space.
The method specifically comprises the following steps:
Step 1:Read configuration file;
Step 2:Load monitoring data and collect plug-in unit;
Step 3:Timing acquisition host node storage space value;
Step 4:Judge whether memory space value is equal with 2TB, if equal execution step 5, otherwise performs
Step 8;
Step 5:Obtain single cluster size;
Step 6:Obtain number of clusters amount;
Step 7:Calculate storage size;
Step 8:It is saved in database.
Exactly defined in the configuration file and collect plug-in unit and corresponding entity class.
The monitoring data collects the plug-in unit that plug-in unit is a timed collection monitoring data, can be repeated according to assigned frequency
Collect.
The timing acquisition host node storage space value is the memory space value of timed collection host node, is led to
The cooperation crossed SNMP and inquire about the OID of memory space obtains the memory space for specifying host node disk.
The size of single cluster is that the cooperation of the OID by SNMP and inquiry disk cluster size obtains;
Number of clusters amount is that the cooperation of the OID by SNMP and inquiry disk cluster quantity obtains.
The database that is saved in is to store the data to specified data storehouse according to specified form.
Quantity of the invention by obtaining cluster size and cluster, it can be ensured that the standard of the host node storage space got
True property, all host node storage space monitoring datas directly can unify management and control in controller, without in host node
Install and safeguard agency, save cost.The present invention can also solve directly obtain the host section more than 2T by SNMP
The problem of point memory space.
Brief description of the drawings
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is flow chart of the method for the present invention.
Embodiment
As shown in Figure 1, process step of the invention is as follows:
1st, configuration file is read, code is as follows:
2nd, load monitoring data and collect plug-in unit, code is as follows:
3rd, timing acquisition host node storage space value, code are as follows:
4th, cluster size is obtained, code is as follows:
5th, number of clusters amount is obtained, code is as follows:
6th, storage size is calculated, code is as follows:
Whole flow process terminates.
Claims (7)
- A kind of 1. monitoring method of host node storage space, it is characterised in that:The method is in monitoring host section During point memory space, the size and number of cluster is obtained if judging whether memory space value is equal with 2TB, it is empty to carry out actual storage Between accurate judgement.
- 2. according to the method described in claim 1, it is characterized in that:The method specifically comprises the following steps:Step 1:Read configuration file;Step 2:Load monitoring data and collect plug-in unit;Step 3:Timing acquisition host node storage space value;Step 4:Judge whether memory space value is equal with 2TB, if equal execution step 5, otherwise performs step 8;Step 5:Obtain single cluster size;Step 6:Obtain number of clusters amount;Step 7:Calculate storage size;Step 8:It is saved in database.
- 3. according to the method described in claim 1, it is characterized in that:Exactly defined in the configuration file collect plug-in unit and Corresponding entity class.
- 4. according to the method described in claim 1, it is characterized in that:It is a timed collection that the monitoring data, which collects plug-in unit, The plug-in unit of monitoring data, can be according to assigned frequency repeated collection.
- 5. according to the method described in claim 1, it is characterized in that:The timing acquisition host node storage space value is The memory space value of timed collection destination node host node, is obtained by the cooperation of SNMP and the OID of inquiry memory space and referred to Determine the memory space of host node disk.
- 6. according to the method described in claim 1, it is characterized in that:The size of single cluster is big by SNMP and inquiry disk cluster The cooperation of small OID obtains;Number of clusters amount is that the cooperation of the OID by SNMP and inquiry disk cluster quantity obtains.
- 7. according to the method described in claim 1, it is characterized in that:The database that is saved in is according to specified form handle Data are stored to specified data storehouse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711176200.2A CN107957930A (en) | 2017-11-22 | 2017-11-22 | A kind of monitoring method of host node storage space |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711176200.2A CN107957930A (en) | 2017-11-22 | 2017-11-22 | A kind of monitoring method of host node storage space |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107957930A true CN107957930A (en) | 2018-04-24 |
Family
ID=61959631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711176200.2A Withdrawn CN107957930A (en) | 2017-11-22 | 2017-11-22 | A kind of monitoring method of host node storage space |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107957930A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102202087A (en) * | 2011-04-25 | 2011-09-28 | 中兴通讯股份有限公司 | Method for identifying storage equipment and system thereof |
CN104268061A (en) * | 2014-09-12 | 2015-01-07 | 国云科技股份有限公司 | Storage state monitoring mechanism for virtual machine |
US20150248253A1 (en) * | 2012-09-13 | 2015-09-03 | Hyosung Itx Co., Ltd | Intelligent Distributed Storage Service System and Method |
-
2017
- 2017-11-22 CN CN201711176200.2A patent/CN107957930A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102202087A (en) * | 2011-04-25 | 2011-09-28 | 中兴通讯股份有限公司 | Method for identifying storage equipment and system thereof |
US20150248253A1 (en) * | 2012-09-13 | 2015-09-03 | Hyosung Itx Co., Ltd | Intelligent Distributed Storage Service System and Method |
CN104268061A (en) * | 2014-09-12 | 2015-01-07 | 国云科技股份有限公司 | Storage state monitoring mechanism for virtual machine |
Non-Patent Citations (2)
Title |
---|
WEIXIN_33887443: "使用SNMP抓取远程服务器磁盘容量信息有误", 《HTTPS://BLOG.CSDN.NET/WEIXIN_33887443/ARTICLE/DETAILS/92768374》 * |
星星灿灿: "利用脚本扩展snmp收集信息", 《HTTPS://BLOG.CSDN.NET/XINGCANC/ARTICLE/DETAILS/18549105》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102713861B (en) | Operation management device, operation management method and program recorded medium | |
US10229129B2 (en) | Method and apparatus for managing time series database | |
CN105988910B (en) | Storage device life monitoring system and storage device life monitoring method thereof | |
CN102117730B (en) | Method for processing parameter data of machine station in manufacturing process of semiconductor and device thereof | |
EP1906328B1 (en) | Conditional download of data from embedded historians | |
CN109612029B (en) | Efficiency prediction method | |
CN102947829B (en) | Data processing equipment and data processing method | |
CN109344983A (en) | Fault detection method, device and computer readable storage medium | |
CN103176974A (en) | Method and device used for optimizing access path in data base | |
CN206515814U (en) | A kind of monitoring hard-disk status device | |
TW201421050A (en) | Method and system for determing status of machine and computer readable storage medium for storing the method | |
CN106403188A (en) | Air-conditioner maintenance method and device | |
CN108255620A (en) | A kind of business logic processing method, apparatus, service server and system | |
CN105468662A (en) | Energy consumption data processing method and system based on table-code value | |
US11115288B2 (en) | Parameter setting method, data analysis device and data analysis system | |
CN111309502A (en) | Solid state disk service life prediction method | |
CN103502951A (en) | Operation administration system, operation administration method, and program | |
CN105159925B (en) | A kind of data-base cluster data distributing method and system | |
CN109800130A (en) | A kind of apparatus monitoring method, device, equipment and medium | |
CN105183627A (en) | Server performance prediction method and system | |
CN110471816B (en) | Data management method and device for solid state disk | |
CN105528274A (en) | Optimized and accelerated disk monitoring method and system | |
CN108957397A (en) | The localization method and device of crusing robot | |
CN111968356A (en) | Intelligent building energy consumption monitoring system and method | |
CN107957930A (en) | A kind of monitoring method of host node storage space |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180424 |