Bug 195702 - /etc/rc.d/init.d/snmptrapd does not honor options set in /etc/snmp/snmptrapd.options
Summary: /etc/rc.d/init.d/snmptrapd does not honor options set in /etc/snmp/snmptrapd....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: net-snmp
Version: 4.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Radek Vokál
QA Contact:
URL:
Whiteboard:
: 198532 (view as bug list)
Depends On:
Blocks: 176344
TreeView+ depends on / blocked
 
Reported: 2006-06-16 17:53 UTC by Brian Reichert
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RHBA-2007-0183
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-01 17:25:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0183 0 normal SHIPPED_LIVE net-snmp bug fix update 2007-05-01 17:24:59 UTC

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



Note You need to log in before you can comment on or make changes to this bug.