From f78cff225b8d736385cafb84df4c12e0c51c226c Mon Sep 17 00:00:00 2001 From: Norman Date: Wed, 28 Jan 2015 16:10:44 +0100 Subject: [PATCH] Add Munin removed testing source fixed typo & dns oh cat more fixes forgot root more nginx stuff nginx munin.conf fix more fixes set dns record --- setup/munin.sh | 68 +++++++++++++++++++++++++++++++++++++++++++ setup/start.sh | 4 +++ tools/munin_update.sh | 22 ++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 setup/munin.sh create mode 100644 tools/munin_update.sh diff --git a/setup/munin.sh b/setup/munin.sh new file mode 100644 index 0000000..83cbb71 --- /dev/null +++ b/setup/munin.sh @@ -0,0 +1,68 @@ +#!/bin/bash +# Munin: resource monitoring tool +################################################# + +source setup/functions.sh # load our functions +source /etc/mailinabox.conf # load global vars + +# install Munin +apt_install munin munin-plugins-extra + +# edit config +cat > /etc/munin/munin.conf < /etc/nginx/conf.d/munin.conf </etc/nginx/htpasswd + +# write user:password +for i in "${!users_array[@]}"; do + echo "${users_array[i]}:${passwords_array[i]:14}" >> /etc/nginx/htpasswd +done