From b00e335278e16c9748acde35651ffd093e0a15ea Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Fri, 17 Feb 2017 11:12:12 +0100 Subject: [PATCH] Make snmpd less verbose. --- roles/common/files/snmpd | 11 +++++++++++ roles/common/tasks/Debian.yml | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 roles/common/files/snmpd diff --git a/roles/common/files/snmpd b/roles/common/files/snmpd new file mode 100644 index 0000000..80fbc2a --- /dev/null +++ b/roles/common/files/snmpd @@ -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' diff --git a/roles/common/tasks/Debian.yml b/roles/common/tasks/Debian.yml index a7e161d..dd87a09 100644 --- a/roles/common/tasks/Debian.yml +++ b/roles/common/tasks/Debian.yml @@ -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