Don't have snmpd log to syslog

Syslog containing a conn log for every mib probed by cacti isn't useful.
We firewall off this port to only cacti anyways.

Change-Id: I813bd9ee98daf873920f91125adbd72e18c9e20e
This commit is contained in:
Spencer Krum 2016-09-21 05:57:53 -07:00
parent 2de225f933
commit f8fea28094
2 changed files with 30 additions and 0 deletions

20
files/ubuntu/default Normal file
View File

@ -0,0 +1,20 @@
# This file controls the activity of snmpd and snmptrapd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=
# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (*don't* use syslog, close stdin/out/err).
SNMPDOPTS='-Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=no
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'

View File

@ -8,6 +8,16 @@ class snmpd {
ensure => present,
name => $::snmpd::params::package_name,
}
case $::osfamily {
'Debian':
file { '/etc/default/snmpd':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/ubuntu/default',
}
}
service { 'snmpd':
ensure => running,
hasrestart => true,