Red Hat Bugzilla – Bug 198534
/etc/sysconfig/snmpd file not read at snmpd startup
Last modified: 2007-11-30 17:07:26 EST
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
Version-Release number of selected component (if applicable):
Look at the file.
# source function library
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:
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.
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
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
Quality Engineering Management has reviewed and declined this request. You may
appeal this decision by reopening this request.
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
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
BTW: #199450 is not accessable at least by me :-(
Bug status should be changed now.