Red Hat Bugzilla – Bug 165673
missing support of /etc/sysconfig/snmpd
Last modified: 2007-11-30 17:07:19 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Description of problem:
/etc/rc.d/init.d/snmpd doesn't support /etc/sysconfig/snmpd to get options for starting the daemon.
This would be required for e.g. specifying a dedicated listening address (e.g. for security reasons) like described in man page:
SNMPD(8) Net-SNMP SNMPD(8)
snmpd - daemon to respond to SNMP request packets.
snmpd [OPTIONS] [LISTENING ADDRESSES]
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Try to bind snmpd to a dedicated listening address for security reasons
Actual Results: Have to patch initscript
Workaround is to patch the initscript file:
--- /etc/rc.d/init.d/snmpd.orig 2005-08-11 12:37:24.732319782 +0200
+++ /etc/rc.d/init.d/snmpd 2005-08-11 12:38:04.235639177 +0200
@@ -12,7 +12,7 @@
# source function library
-OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a"
+OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a 192.0.2.1"
Expected Results: Instead of patching initscript, add/change a variable in /etc/sysconfig/snmpd
I think this can be set inside /etc/snmp/snmpd.conf by specifing agentadress
Thank you for that hint, haven't seen in man page.
Perhaps a hint in config would be good:
#### Bind snmpd to localhost address only (optional)
# agentaddress localhost:161