Bug 111502
Summary: | host/hr_storage is broken in 5.1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Kaj J. Niemi <kajtzu> | ||||||||
Component: | net-snmp | Assignee: | Phil Knirsch <pknirsch> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 1.0 | CC: | rvokal | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2003-12-10 14:49:53 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Kaj J. Niemi
2003-12-04 17:45:47 UTC
Created attachment 96347 [details]
Oneliner to enable disk volume sizes/usage again
Seems to work for me.
Created attachment 96353 [details]
Adds output of memory buffers in use
Ok. The real problem here was that if NO_DUMMY_VALUES is in use (it's the
default) var_hrstorage() returns NULL instead of *u_char. Somehow this hoses
everything in the calling layer above and no information further down the oid
row is will be returned.
I got bored determining what's calling what and decided to fix this issue
another way -- by adding to the missing functionality on linux preventing the
return of NULL. :)
Works for me, now, really.
Created attachment 96354 [details]
Return total and buffers (instead of free memory and buffers)
I was figuring buffers would have been allocated from memory free but this
wasn't the case and it resulted in funny looking graphs (say there's only 10 M
free but 90M buffers you end up with 900% as an end result).. instead we return
the total amount of memory and the amount of buffers allocated.
Hopefully this will end with values 0 <= x <= 100 when dividing hrStorageUsed
with hrStorageSize.
Yeah, that looks good. Have you submitted the patch to Wes or David upstream? Might be a good idea if not. ;-) Thanks again, Read ya, Phil PS: And of course it will be included in the next net-snmp-5.1-3 package. :-) |