Bug 198534 - /etc/sysconfig/snmpd file not read at snmpd startup
Summary: /etc/sysconfig/snmpd file not read at snmpd startup
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: net-snmp   
(Show other bugs)
Version: 4.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Radek Vokal
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-07-11 17:19 UTC by John DeFranco
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-08-29 20:45:12 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description John DeFranco 2006-07-11 17:19:05 UTC
Description of problem:
According to the net-snmp docs I've seen I should be able to set OPTIONS
for snmpd in the file /etc/sysconfig/snmpd. This does not work however as
the /etc/rc.d/init.d/snmpd file does not use the /etc/sysconfig/snmpd file 
and the OPTIONS parameters are hardcoded anyway. There should be some way
for a user to specify OPTION changes without having to edit the 
/etc/rc.d/init.d/snmpd file, which could be lost if the net-snmp rpm 
is updated.

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

How reproducible:

Look at the file.
# source function library
. /etc/init.d/functions

OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a"

OPTIONS are hardcoded and no mention of using the /etc/sysconfig/snmpd file.

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Radek Vokal 2006-07-12 12:18:15 UTC
well, users are basically forced to use /etc/snmp/snmpd.conf file for all
configuration. But I see this is really missing there for runtime options but
I'd prefer moving it to the same directory as snmpd.conf is - eg.
/etc/snmp/snmpd.options file like for snmptrapd. 

Comment 2 RHEL Product and Program Management 2006-08-18 15:12:21 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

Comment 3 David Lawrence 2006-08-29 20:30:13 UTC
Sounds like more discussion is needed to determine where the final options
should live. Then we can work towards finding a good test case for fix
verification. QE_ACK-

Comment 4 RHEL Product and Program Management 2006-08-29 20:45:12 UTC
Quality Engineering Management has reviewed and declined this request.  You may
appeal this decision by reopening this request. 

Comment 5 Peter Bieringer 2007-05-09 11:25:42 UTC
Note that at since net-snmp-5.1.2-11.EL4.10 (RHEL4 U5) support of
/etc/sysconfig/snmpd.options was added:

if [ -e /etc/sysconfig/snmpd.options ]; then
  . /etc/sysconfig/snmpd.options
  OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"

But I do not understand, why the naming schema was broken, I would expect
/etc/sysconfig/snmpd instead of /etc/sysconfig/snmpd.options - has this a deeper
reason or should a new bug be opened regarding this naming issue?

Related changelog entry in spec file:
- fixed snmpd init script, the path for config file is
/etc/sysconfig/snmpd.options (#199450)

BTW: #199450 is not accessable at least by me :-(

Bug status should be changed now.

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