[Bug 865268] Re: snmpd reports wrong value for hrStorageSize on large filesystem

2012-10-24 Thread Brian Candler
Looking at the source of net-snmp-5.4.3~dfsg, it appears to make no attempt to scale the block size to avoid 2^32 wrapping - see agent/mibgroup/host/hr_storage.c, var_hrstore() I have made a simple patch which fixes just this particular problem, so should be suitable for backporting to LTS. Once

[Bug 865268] Re: snmpd reports wrong value for hrStorageSize on large filesystem

2012-10-24 Thread Brian Candler
Also confirmed, this remains broken in 12.04 $ snmpwalk -v2c -c public storage3 hrStorageTable | grep \\.34HOST-RESOURCES-MIB::hrStorageIndex.34 = INTEGER: 34 HOST-RESOURCES-MIB::hrStorageType.34 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /dis

[Bug 865268] Re: snmpd reports wrong value for hrStorageSize on large filesystem

2012-06-23 Thread Bruc
I can confirm this is not fixed. I'm still having the issue on 12.04. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-snmp in Ubuntu. https://bugs.launchpad.net/bugs/865268 Title: snmpd reports wrong value for hrStorageSize on la

[Bug 865268] Re: snmpd reports wrong value for hrStorageSize on large filesystem

2011-11-14 Thread Chuck Short
This should be fixed in pangolin. Please re-check and if still not fixed please re-open. ** Changed in: net-snmp (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-snmp in Ubuntu. https://bu

[Bug 865268] Re: snmpd reports wrong value for hrStorageSize on large filesystem

2011-11-07 Thread zou guangxian
Version: net-snmp 5.7.1 in net-snmp-5.7.1/agent/mibgroup/hardware/fsys/hw_fsys.c:337 should be f->avail_32 = f->avail >> factor; f->used_32 = f->used >> factor; instead of f->avail_32 = f->avail << factor; f->used_32 = f->used << factor; -- You received this bug notification b

[Bug 865268] Re: snmpd reports wrong value for hrStorageSize on large filesystem

2011-10-04 Thread Robie Basak
** Changed in: net-snmp (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-snmp in Ubuntu. https://bugs.launchpad.net/bugs/865268 Title: snmpd reports wrong value for hrStorageSize on large f

[Bug 865268] Re: snmpd reports wrong value for hrStorageSize

2011-10-03 Thread Brian Candler
Looks like it could be related to this: https://bugzilla.redhat.com/show_bug.cgi?id=654384 Apparently a newer snmpd would clamp this value to 2^31, and an even newer snmpd would use a fake larger block size so as to be able to report on large filesystems: http://net-snmp.svn.sourceforge.net/view

[Bug 865268] Re: snmpd reports wrong value for hrStorageSize

2011-10-03 Thread Brian Candler
-- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-snmp in Ubuntu. https://bugs.launchpad.net/bugs/865268 Title: snmpd reports wrong value for hrStorageSize on large filesystem To manage notifications about this bug go to: https://b