Disk Space Usage
- type:
- user_template_data
- usertemplate:
- disk_usage
- version:
- 1.0
- script:
- SNMP XML
- description:
- Disk Space Usage
- Cacti:
- 0.8.7d
- date:
- 2009-04-24
- includes:
- yes
- templates:
- host,
- disk
Download
Version | File |
---|---|
0.8.7d | old deleted |
0.8.7d | new hrstoragetable087d.tar.gz added <index_order>hrStorageDescr:hrStorageIndex</index_order> |
There was an issue with the “old” template as it came without a specific <index_order>. In this case, the hrStorageIndex was used as the index. For existing filesystems, this will unfortunately change in case a new filesystem is added or removed. This way, the old template cuased issues on re-indexing.
Now, you may add <index_order>hrStorageDescr:hrStorageIndex</index_order> to the XML file manually or use the new template. This will have effect on all newly created data sources. But old data sources will not change.
Here's a script that applies the new <index_order> to all existing data sources. This way, you will be able to keep all existing data sources and have the correct index_order applied.
Script to reorder existing data sources of a given data query
Installation
This is a pure SNMP based replacement of the standard cacti disk usage templates. It requires support by the non-standard HOST MIB, however.
- untar the attached resource file
- Drop hrStorageTable.xml into your <path_cacti>/resources/snmp_queries/ folder.
- Import the cacti087d_data_query_snmp_-_hrstoragetable template via import feature
- Add the Data Query to a device.
- From the 'Create Graphs for this Host' screen, select the required disks and click Create.
Screenshots
Standard View. Bytes are calculated using the block size reported by the Host MIB:hrStorageTable
History of Disk Usage