Bug 195702

Summary: /etc/rc.d/init.d/snmptrapd does not honor options set in /etc/snmp/snmptrapd.options
Product: Red Hat Enterprise Linux 4 Reporter: Brian Reichert <brian.reichert>
Component: net-snmpAssignee: Radek Vokál <rvokal>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: defranco
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0183 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 17:25:58 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: 176344    

Description Brian Reichert 2006-06-16 17:53:41 UTC
Description of problem:

  
/etc/rc.d/init.d/snmptrapd does not honor options set in /etc/snmp/snmptrapd.options

More specifically, after selectively reading the contents of the
/etc/snmp/snmptrapd.options file (if present), /etc/rc.d/init.d/snmptrapd goes
on to hard-code a list or options for snmptrapd.  This lies in questions that do
this:

if [ -e /etc/snmp/snmptrapd.options ]; then
  . /etc/snmp/snmptrapd.options
else
   OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
fi

OPTIONS="-Lsd -p /var/run/snmptrapd.pid"



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

  net-snmp-5.1.2-11.EL4.6


How reproducible:


Steps to Reproduce:
1.  Attempt to set any options in /etc/snmp/snmptrapd.options (for example '-d')
2.  Restart snmptrapd: 'service snmptrapd restart'
3.  Observe via 'ps' or otherwise that the added options are not in use.
  
Actual results:

options set in /etc/snmp/snmptrapd.options are ignored


Expected results:

options set in /etc/snmp/snmptrapd.options are honored

Additional info:

Comment 1 Brian Reichert 2006-06-16 17:57:52 UTC
Typo in my description, sorry.  The phrase 'This lies in questions' should have
been 'The lines in question'.

Comment 2 Radek Vokál 2006-07-11 11:10:23 UTC
This is already fixed in rawhide, I'm adding it on proposed list for next update

Comment 3 Radek Vokál 2006-07-12 12:19:40 UTC
*** Bug 198532 has been marked as a duplicate of this bug. ***

Comment 4 RHEL Program Management 2006-08-18 15:27:30 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 9 Red Hat Bugzilla 2007-05-01 17:25:59 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-0183.html