Prevent snmpd from logging to syslog
Jump to navigation
Jump to search
snmpd, if active is logging every snmp query to syslog (/var/log/messages)
if you have centralised log collecntion like me, it looks pretty ugly.
so how to disable it?
i tested it on centos5:
vi /etc/sysconfig/snmpd.options --- # snmpd command line options #OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a" # logging to syslog is now disabled OPTIONS="-Lf /dev/null -p /var/run/snmpd.pid -a"
/etc/init.d/snmpd restart
ps -ef | grep -i snmp | grep -v grep