Difference between revisions of "Prevent snmpd from logging to syslog"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
			
		
		
		
		
		
		
		
	
(No difference) 
 | 
Latest revision as of 16:28, 16 September 2017
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