On 13 January 2011 10:47, Troels Arvin <[email protected]> wrote:

> HOST-RESOURCES-MIB::hrStorageAllocationUnits.12 = INTEGER: 4096 Bytes
> HOST-RESOURCES-MIB::hrStorageSize.12 = INTEGER: -1682702336
> HOST-RESOURCES-MIB::hrStorageUsed.12 = INTEGER: -1956338944

> Clearly, this is a case of an integer overflow:

> But what would the sensible way forward be?


The answer lies in the MIB object immediately above the two offending lines.
For large storage devices, the answer is to report the size/usage values
using a larger allocation unit.   This should keep things within the
32-bit limit.

Patches welcome.....

Dave

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to