ubuntu snmp spam

Posted by scottk on October 22, 2009 in Sysadmin, Ubuntu |

with the default settings in ubuntu server /var/log/daemon can fill up pretty quick with SNMP spam like this:

Oct 18 07:01:48 Build01 snmpd[2245]: Connection from UDP: [monitor01]:47674
Oct 18 07:01:48 Build01 last message repeated 19 times

every time a connection is made to snmp the default is to log a message and this is way to much in a normal environment. to turn this off

edit /etc/default/snmpd and change

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

to

SNMPDOPTS='-LS5d -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

this sets the default log level above the point where you will get spammed and it will make your disks happy

Copyright © 2006-2024 SimpIT.com All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.