I am seeing incorrect data when polling the
HOST-RESOURCES-MIB::hrStorageSize values when the realStorageUnits setting
is set to zero. Below is an example:
uname -a
Linux 2.6.18-274.el5xen #1 SMP Fri Jul 22 05:31:07 EDT 2011 x86_64 x86_64
x86_64 GNU/Linux
snmpd -v
NET-SNMP version: 5.3.2.2
I installed using yum.
I am running the following query:
snmpwalk -v 1 -c <com> <ip> .1.3.6.1.2.1.25.2.3.1
When I have the value set to 1 I get the following (which is correct):
*HOST-RESOURCES-MIB::hrStorageDescr.37 = STRING: /opt
HOST-RESOURCES-MIB::hrStorageAllocationUnits.37 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.37 = INTEGER: 2865643520
HOST-RESOURCES-MIB::hrStorageUsed.37 = INTEGER: 121245476
total = 11737675857920
used = 496621469696*
When I have the value set to 0 I get the followin (hrStorageUsed has
increased by a factor or 4)
*HOST-RESOURCES-MIB::hrStorageDescr.37 = STRING: /opt
HOST-RESOURCES-MIB::hrStorageAllocationUnits.37 = INTEGER: 8192 Bytes
HOST-RESOURCES-MIB::hrStorageSize.37 = INTEGER: 1432821760
HOST-RESOURCES-MIB::hrStorageUsed.37 = INTEGER: 242490952
total = 11737675857920
used = 1986485878784*
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders