Bug 150084

Summary: snmpd dies when getting enterprises.ucdavis.memory.memTotalSwap.0
Product: Red Hat Enterprise Linux 4 Reporter: Ricardo Aguiar <ricardo>
Component: net-snmpAssignee: Radek Vokál <rvokal>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2005-395 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 12:37:07 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:
Bug Depends On:    
Bug Blocks: 156322    

Description Ricardo Aguiar 2005-03-02 11:40:12 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 
SV1; .NET CLR 1.1.4322)

Description of problem:
When executing the command "snmpget -v1 -c public localhost 
enterprises.ucdavis.memory.memTotalSwap.0" or getting the same OID 
from an snmp utility, the snmpd dies.

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

How reproducible:
Always

Steps to Reproduce:
1.snmpget -v1 -c public localhost 
enterprises.ucdavis.memory.memTotalSwap.0
2.
3.
    

Actual Results:  The snmpd dies.

Additional info:

grep -v "^#" snmpd.conf | grep -v "^$"
com2sec notConfigUser  default       public
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1
view    all           included   .1                  80
access  notConfigGroup ""      any       noauth    exact  all none 
none
syslocation xxxxxx
syscontact xxxxxxxx <xxxxx>
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

Comment 1 Radek Vokál 2005-03-08 09:12:40 UTC
What's your actually Swap size? Don't you have some incredibly high
value? 

# rpm -q net-snmp
net-snmp-5.1.2-11

#snmpget -v1 -c public localhost enterprises.ucdavis.memory.memTotalSwap.0
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 2031608


Comment 2 Ricardo Aguiar 2005-03-08 11:54:20 UTC
No, as you can see I have 512Mb of swap

[root@xxxx ~]# free
          total      used       free     shared    buffers     cached
Mem:      451176     439100     12076         0      17804     153112
-/+ buffers/cache:   268184    182992
Swap:     522104       4344    517760

[root@xxxx ~]# rpm -q net-snmp
net-snmp-5.1.2-11

Comment 3 Radek Vokál 2005-03-08 12:48:01 UTC
Hmm, now I see the bug, it really needed a greater swap size for
reproducing it .. working on a patch 

Comment 4 Radek Vokál 2005-03-10 09:43:04 UTC
The FC version is fixed in rawhide - latest net-snmp-5.2.1 shows
correctly swap size. I'm moving this bug from FC to RHEL which is also
affected. 

Comment 5 Radek Vokál 2005-03-10 09:44:22 UTC
Sorry, I ment RHEL4

Comment 6 Ricardo Aguiar 2005-03-16 11:18:09 UTC
Sorry for the delay, I tested net-snmp-5.2.1-5 on FC3. And worked fine.


Comment 7 Radek Vokál 2005-04-20 13:06:09 UTC
Fix for RHEL4 is on the way ... 

Comment 10 Red Hat Bugzilla 2005-10-05 12:37:07 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/RHSA-2005-395.html