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) NAME snmpd - daemon to respond to SNMP request packets. SYNOPSIS snmpd [OPTIONS] [LISTENING ADDRESSES] Version-Release number of selected component (if applicable): net-snmp-5.1.2-11 How reproducible: Always 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 . /etc/init.d/functions -OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a" +OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a 192.0.2.1" RETVAL=0 prog="snmpd" Expected Results: Instead of patching initscript, add/change a variable in /etc/sysconfig/snmpd Additional info:
I think this can be set inside /etc/snmp/snmpd.conf by specifing agentadress option.
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