From a6a1cc7ae0a27a8e29445f3cc64bdc3f11885e0d Mon Sep 17 00:00:00 2001 From: barrybingo Date: Fri, 19 Jan 2018 17:00:44 +0000 Subject: [PATCH] Reduce munin-node log level to warning (#1330) --- CHANGELOG.md | 6 ++++++ setup/munin.sh | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87498c9..6df79d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ CHANGELOG ========= +In Development +-------------- + +* Reduce munin-node.conf log_level to warning(1) as default ubuntu package uses log_level debug(4) which over time creates big log files. + + v0.26 (January 18, 2018) ------------------------ diff --git a/setup/munin.sh b/setup/munin.sh index b1c5c8b..c812dab 100755 --- a/setup/munin.sh +++ b/setup/munin.sh @@ -38,8 +38,10 @@ chown munin. /var/log/munin/munin-cgi-html.log chown munin. /var/log/munin/munin-cgi-graph.log # ensure munin-node knows the name of this machine +# and reduce logging level to warning tools/editconf.py /etc/munin/munin-node.conf -s \ - host_name=$PRIMARY_HOSTNAME + host_name=$PRIMARY_HOSTNAME \ + log_level=1 # Update the activated plugins through munin's autoconfiguration. munin-node-configure --shell --remove-also 2>/dev/null | sh