Hi,
The default configuration of the net-snmp package on many linux-derivatives comes with a default configuration which causes snmpd to log at 'debug' level in /var/log/messages.
The entries you see ('Connection from UDP:') are sent from log-level 'INFO'.
If there is no explicit configuration the default log-level is 'notice'.
You can set up a dedicated log priority to log only messages with level 'warning' and above.
The configuration can be modified in /etc/default/snmpd or /etc/sysconfig/snmpd or similar.
Search for an entry like
-Ls d
and modify it to
-LS5d
which tells snmpd to log everything from log-level 'Notice' (5) and above.
Please see the documentation of the distribution you are using for details.
For example for Ubuntu see snmpcmd manpage.
Kind regards
Add comment