Connection from UDP log messages

by Karanbir Singh Email

Plenty of people seem to have an issue with snmpd logging connection information for each poll on CentOS 5, like this:

Jul  1 09:50:04 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:59768
Jul  1 09:50:05 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:56329
Jul  1 09:50:05 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:42126
Jul  1 09:50:05 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:47950
Jul  1 09:50:05 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:36634
Jul  1 09:50:05 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:52677
Jul  1 09:50:05 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:44864
Jul  1 09:50:05 doghouse snmpd[4159]: Connection from UDP: [10.0.1.10]:54498

This isnt necessarily a bad thing, however if you want to turn that off, on a fully updated CentOS-5 machine you can change /etc/sysconfig/snmpd.options to something like this :

# snmpd command line options
OPTIONS="-LS4d -Lf /dev/null -p /var/run/snmpd.pid"

Thats about all there is to it. Also, the reason why one finds so many different ways or achieving the same thing on the internet, isn't because everyone is wrong. Its mostly since the -L options syntax and use has been changing over the last few years. And while I am sure there is a good reason for this change but the developers really should consider keeping some backward compatibility in place.

- KB

No feedback yet