Simple Network Management Protocol - SNMP

This was tested on Ubuntu.

Prevent ipv6 operation

In /etc/snmp/snmpd.conf, ensure the listedn diretive does not include ipv6 addresses:-

#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
#agentAddress udp:161,udp6:[::1]:161
agentAddress udp:161

Restrict logging to syslog

snmpd logs to the system logger service which as default logs informative messages to /var/log/syslog. This disguises many useful messages with snmpd noise. To correct this, you can add in /etc/snmp/snmpd.conf:-

dontLogTCPWrappersConnects true

http://raetsel.wordpress.com/2008/02/15/snmpd-filling-up-varlogmessages/

Alternate way of doing that:
Add below to the default SNMPD config to specify logging levels 0-4 ONLY :

root@fmc-enf-ncom-10:/var/log# cat /etc/default/snmpd | grep SNMPDOPTS=
SNMPDOPTS='-LS0-4d -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'

rb/snmpd.txt · Last modified: 08/09/2018 01:38 by andrew