Cacti (home)ForumsDocumentation

Disk Space Usage

type:
user_template_data
usertemplate:
disk_usage
version:
1.0
script:
SNMP XML
author:
gandalf
description:
Disk Space Usage
Cacti:
0.8.7d
date:
2009-04-24
includes:
yes
templates:
host,
disk

Download

VersionFile
0.8.7dold deleted
0.8.7dnew 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.

  1. untar the attached resource file
  2. Drop hrStorageTable.xml into your <path_cacti>/resources/snmp_queries/ folder.
  3. Import the cacti087d_data_query_snmp_-_hrstoragetable template via import feature
  4. Add the Data Query to a device.
  5. From the 'Create Graphs for this Host' screen, select the required disks and click Create.

Screenshots

Daily View of Disk Usage

Standard View. Bytes are calculated using the block size reported by the Host MIB:hrStorageTable

All RRAs of Disk Usage

History of Disk Usage


diskio  




Personal Tools