On 21/01/2008, Mariusz Iwa=F1ski wrote:
> snmpwalk -v 1 -c community localhost nsModuleName | grep diskio
> nsModuleName."". =3D STRING: diskio

So the diskIO module is certainly registered....

> --snmpgetnext -v 1 -c community localhost ucdExperimental
> UCD-DLMOD-MIB::dlmodNextIndex.0 =3D INTEGER: 1

and the ucdExperimental subtree is visible...

> --snmpgetnext -v 1 -c community localhost UCD-DISKIO-MIB::diskIOTable
> UCD-SNMP-MIB::logMatchMaxEntries.0 =3D INTEGER: 50

but there's nothing in the diskIO MIB section.

Unfortunately, there isn't any debugging in the diskIO MIB code,
so you're probably going to have to fiddle with the code and re-compile.

One final thing to check first - what does
cat /proc/diskstats
Or failing that
cat /proc/partitions

If either of those look sensible, then try looking for the routine 'getstat=
(around like 700 of the file ucd-snmp/diskio.c), and comment out the
first three or four lines - referring to 'now' and 'cache_time'.
The recompile, reinstall, and rerun. Does that make any difference?

It might also be worth adding a debug statement so that you can tell
whether the 'getstats routine is being called at all.

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Net-snmp-users mailing list
Please see the following page to unsubscribe or change other options: