Bug 58705

Summary: master AgentX support implementation is broken
Product: [Retired] Red Hat Linux Reporter: rm0
Component: ucd-snmpAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-23 15:11:14 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 Flags
fix to AgentX master problem in ucd-snmp 4.2.1 ('backported' from 4.2.3) none

Description rm0 2002-01-23 15:08:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.7) Gecko/20011221

Description of problem:
A upstream problem renders the master AgentX functionality
in ucd-snmp unusable (snmpd dies at start time when the "master
agentx" line is present in /etc/snmp/snmpd.conf) and was solved
after 4.2.1 the patch described in this ucd-snmp 4.2.3 ChangeLog 
entry (with references to net-snmpd bug database) should be applied:

  2001-10-04 02:21  jbpn

  * agent/snmpd.c:

    - disable stderr logging (if requested) before calling
      init_mib_modules(). This should fix the problem noted by Nigel
      Metheringham in bug #418857 whereby the AgentX master module
      prints a message to stderr which causes a SIGPIPE when the agent
      is started as a daemon.

      Also noted with extensive analysis by Ted Rule in bug #467551.

and accesible via the net-snmp ViewCVS via:
 
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/net-snmp/net-snmp/agent/snmpd.c.diff?r1=1.199&r2=1.200&only_with_tag=MAIN

The patch in appliable is attached (can also be downloaded from
http://rmrpms.tripod.com/ucd-snmp/ucd-snmp-4.2.1-stderr.patch):

This problem affects RHL 6.2, 7 and 7.1 too. I'm submitting this 
report just in case future errata packages stay at upstream 
version 4.2.1. If they are 4.2.[23] this report is irrelevant.

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


How reproducible:
Always

Steps to Reproduce:
1. Start the snmpd server
   # /sbin/service snmpd start
2. Check snmpd is running with
   # /sbin/service snmpd status
   or
   # ps aux|grep snmpd
   or 
   # lsof|grep IPv4 |grep snmp
2. Stop the snmpd service
   # /sbin/service snmpd stop
3. Edit /etc/snmp/snmpd.conf adding a line that reads
   master agentx
4. Start the snmpd server
   # /sbin/service snmpd start
5. Check snmpd is running again with
   # /sbin/service snmpd status
   service dies but subsystem locked
   or
   # ps aux|grep snmpd
   or 
   # lsof|grep IPv4 |grep snmp



Actual Results:  (no output)

Expected Results:  snmpd should not die


Additional info:

$ rpm -q ucd-nsmp
ucd-snmp-4.2.1-7

Comment 1 rm0 2002-01-23 15:11:08 UTC
Created attachment 43295 [details]
fix to AgentX master problem in ucd-snmp 4.2.1 ('backported' from 4.2.3)

Comment 2 Phil Knirsch 2002-01-23 15:13:37 UTC
Thanks for reporting, but the next errata release and normal rawhide release
will be based on ucd-snmp 4.2.3 which fixes a couple of other problems.

It will take a couple more days to appear on rawhide, but should be there
sometime next week.

Read ya, Phil