Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rb:snmpd [08/09/2018 01:38] (current)
andrew created
Line 1: Line 1:
 +====== 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:-
 +
 +<​code>​
 +#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
 +#​agentAddress udp:​161,​udp6:​[::​1]:​161
 +agentAddress udp:161
 +</​code>​
 +
 +
 +
 +===== 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:​-
 +
 +<​code>​
 +dontLogTCPWrappersConnects true
 +</​code>​
 +
 +
 +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 : \\
 +
 +<​code>​
 +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'​
 +</​code>​
  

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