Make snmpd less verbose.

This commit is contained in:
Markus 2017-02-17 11:12:12 +01:00
parent 8405d98926
commit b00e335278
2 changed files with 16 additions and 0 deletions

11
roles/common/files/snmpd Normal file
View File

@ -0,0 +1,11 @@
# This file controls the activity of snmpd
# 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 (use syslog, close stdin/out/err).
SNMPDOPTS='-LSed -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

View File

@ -4,6 +4,11 @@
apt: name=snmpd state=present
tags: snmp
- name: Make snmpd less verbose
copy: src=snmpd dest=/etc/default/snmpd
notify: Restart snmpd
tags: snmp
- name: Configure snmpd
template: src=snmpd.conf.j2 dest=/etc/snmp/snmpd.conf
notify: Restart snmpd