Get snmpdiskio v0.9.6 from this post: http://forums.cacti.net/viewtopic.php?p=124793#124793
Thanks to Pablo & Dieter!
Get the tarball below w/ README but replace the snmpdiskio shellscript with the one from the above post.
Description:
This tarball contains instructions, templates and a small shellscript which will give you disk i/o statistics (Read/Write bytes) in Cacti!
Reason for this is the lack of disk i/o support in NET-SNMP on linux.
It works for me, let me know if it does for you!
Tested on Redhat Enterprise 3 w/ Linux 2.4.
It requires that you have disk statistics in /proc/partitions
Update: v0.9.4
- New version which should support both 2.4 and 2.6.
Renamed to the more appropriate name snmpdiskio
- Change all "hdsnmp.sh" to "snmpdiskio" in snmpd.conf
Copy snmpdiskio to /usr/local/bin/
No changes have been made in Cacti templates! The only thing changed since 0.9.1 is v2.4/v2.6 auto-detection in the script snmpdiskio (formerly hdsnmp.sh)
Upgrade 0.9.2 to 0.9.4:
- Copy snmpdiskio to /usr/local/bin/
No changes have been made in Cacti templates! The only thing changed since 0.9.2 is v2.4/v2.6 auto-detection in the script snmpdiskio
Code: Select all
# $Id: README,v 1.2 2006/03/31 15:57:44 mikaelf Exp $
# snmpdiskio 0.9.4 (c) 2006 Mikael Fridh <mikael@meanstreak.se>
# Disk I/O statistics for Cacti created due to
# the flaky disk i/o support in net-snmp
1. ABOUT
2. INSTALLATION
2a. INSTALLATION: SNMP
2b. INSTALLATION: Cacti
3. USAGE
4. BLURB
1. ABOUT
========
This set of simple scripts and Cacti templates gives you disk I/O support.
Currently net-snmp has flaky or no support for disk I/O at all.
This version: 0.9.4, gives you only one thing: Disk I/O (bytes/sec).
snmpdiskio 0.9.4 has been tested on:
* Linux 2.4 with /proc/partitions iostats patch (included by default in Redhat, possibly other distributions as well)
* Linux 2.6 (/proc/diskstats)
* Net-snmp 5.0.9
* Cacti 0.8.6g
* Cacti 0.8.6h
Report any problems or feedback: what works/doesn't work etc in this thread.
2. INSTALLATION
===============
The installation is in two parts. One for the SNMP configuration on the
monitored host. The other is for the addition to Cacti. The addition to Cacti
need only be done once.
2a. INSTALLATION: SNMP
======================
* Put the following lines in snmpd.conf:
exec .1.3.6.1.4.1.2021.54 hdNum /usr/local/bin/snmpdiskio hdNum
exec .1.3.6.1.4.1.2021.55 hdIndex /usr/local/bin/snmpdiskio hdIndex
exec .1.3.6.1.4.1.2021.56 hdDescr /usr/local/bin/snmpdiskio hdDescr
exec .1.3.6.1.4.1.2021.57 hdInBlocks /usr/local/bin/snmpdiskio hdInBlocks
exec .1.3.6.1.4.1.2021.58 hdOutBlocks /usr/local/bin/snmpdiskio hdOutBlocks
* Install the script snmpdiskio on the machine to be monitored:
install -m 0755 -o root -g root -p -v snmpdiskio /usr/local/bin/
2b. INSTALLATION: Cacti
=======================
* Import the XML templates from `cacti_graph_template_disk_io_bytessec.xml`.
* Import the data query template from `cacti_data_query_snmp_disk_statistics.xml`.
* Copy the `partition.xml` file to cacti/resource/snmp_queries/partition.xml.
3. USAGE
========
In Cacti: Add the Data Query to your Host Templates.
For any Device already configured in Cacti you need to add the Data Query
manually.
After that you just click "New Graph", choose your Device, select the
partitions you want graphs created for and click Create.