Bug 261601

Summary: net-snmp RawCPU counter broken
Product: Red Hat Enterprise Linux 4 Reporter: Chuck Mead <csm>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 4.5   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-29 07:37:51 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:

Description Chuck Mead 2007-08-28 20:13:44 UTC
Description of problem:

The idle counter in /proc/stat (5th column - 26752194897 in this case) is much
larger than a 32 bit number. The snmpd agent is doing a sscanf %lu on this and
as such returns 4294967295. This has been fixed two years ago and applies to
all ssRawCPU counters and others. The fix is basically %llu on the values.



Version-Release number of selected component (if applicable):
net-snmp-5.1.2-11.EL4.10.0.1


How reproducible:

snmpwalk -v1 -cpublic localhost ssCpuRawIdle.0;head -n1 /proc/stat

Steps to Reproduce:
1. snmpwalk -v1 -cpublic localhost ssCpuRawIdle.0;head -n1 /proc/stat
2.
3.
  
Actual results:
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 4294967295
cpu  259515841 311084 138251888 26752194897 27766490 936245 0


Expected results:
The Mib output from line #1 should have rolled over... it never does.

Additional info:

This bug was reported 2 years ago on sf.net and I believe has already been fixed
upstream.

http://sourceforge.net/tracker/index.php?func=detail&aid=1197183&group_id=12694&atid=112694

Comment 1 Jan Safranek 2007-08-29 07:37:51 UTC
shall be fixed in RHEL 4.6

*** This bug has been marked as a duplicate of 223775 ***