On 21/01/2008, Mariusz Iwa=F1ski wrote:
> snmpwalk -v 1 -c community localhost nsModuleName | grep diskio
>
> nsModuleName."".12.1.3.6.1.4.1.2021.13.15.1.1.1.127 =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
report?
Or failing that
cat /proc/partitions
?


If either of those look sensible, then try looking for the routine 'getstat=
s'
(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.

Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users