Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 223775

Summary: ssRawCpu* stays on 2^32-1 forever
Product: Red Hat Enterprise Linux 4 Reporter: James Lamb <james.lamb>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 4.4CC: aholzhammer, billm, csm, joel.matuseski, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0738 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-15 16:00:21 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 James Lamb 2007-01-22 12:35:02 UTC
Description of problem:

When I query a RH ES v4 u4 server using snmp for idle ticks which should
indicate that the server is loaded or not. After a large amount of uptime (circa
100days) the servers all report the idle ticks not increasing even though the
server has been idle for some time. If I run the following command  awk '/^cpu /
{print $5}' /proc/stat I can see that the counter is still incrementing but
snmpd reports

UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 4294967295

When I query with the following OID enterprises.ucdavis.systemStats

No matter how long the system is up it will always report the variable
4294967295, even if the system is 100% idle.

I have done some extensive research and it looks as though the problem is
resolved with the following patch from the net-snmp cvs.

http://net-snmp.cvs.sourceforge.net/net-snmp/net-snmp/agent/mibgroup/ucd-snmp/vmstat.c?r1=5.7&r2=5.8


Version-Release number of selected component (if applicable):


How reproducible:
Very Easy.


Steps to Reproduce:
1. snmpwalk -v 2c -c private localhost  enterprises.ucdavis.systemStats | grep Idle
; sleep 60 ; snmpwalk -v 2c -c private localhost 
enterprises.ucdavis.systemStats | grep Idle
  
Actual results:

UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 99
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 4294967295

Expected results:

UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 99
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: [[4294967295]] 

Where the [[]] Number should have incremented as the server is idle.

Additional info:

This problem appears to occur in all Redhat EL v3 and v4 servers that we have
with huge
uptime. 

After reading around on the internet I have found several people with an
identical issue. From what It looks like this is the patch to resolve the problem. 

http://net-snmp.cvs.sourceforge.net/net-snmp/net-snmp/agent/mibgroup/ucd-snmp/vmstat.c?r1=5.7&r2=5.8&diff_format=c

There are also debian users with similar problems.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308018

I have previously reported this problem on bugzilla #202044 for EL3. The 
problem appears to show up much sooner on our EL4 servers

Comment 1 Flavio Leitner 2007-03-12 15:28:43 UTC
Can we fix it for 4.6?

Comment 2 Jan Safranek 2007-06-04 14:21:52 UTC
*** Bug 204089 has been marked as a duplicate of this bug. ***

Comment 3 RHEL Program Management 2007-06-09 13:25:05 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 7 Bryan Mason 2007-07-24 21:32:15 UTC
*** Bug 240598 has been marked as a duplicate of this bug. ***

Comment 9 Jan Safranek 2007-08-29 07:37:55 UTC
*** Bug 261601 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2007-11-15 16:00:21 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0738.html


Comment 11 Jan Safranek 2007-12-13 13:16:28 UTC
*** Bug 363681 has been marked as a duplicate of this bug. ***