From 673606345e9c1357560f23569135b40720f88b02 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Mon, 21 Oct 2013 08:14:31 -0400 Subject: [PATCH] Add munin crontab settings for monitor servers --- templates/monitor/munin-cron.crontab | 1 + templates/setup-functions | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/monitor/munin-cron.crontab diff --git a/templates/monitor/munin-cron.crontab b/templates/monitor/munin-cron.crontab new file mode 100644 index 0000000..532e880 --- /dev/null +++ b/templates/monitor/munin-cron.crontab @@ -0,0 +1 @@ +*/5 * * * * /usr/bin/munin-cron diff --git a/templates/setup-functions b/templates/setup-functions index 2bad153..30b14d0 100644 --- a/templates/setup-functions +++ b/templates/setup-functions @@ -89,6 +89,7 @@ fi ### Setup monitoring. SetupMonitoring () { ## Monitored hosts +## Nagios/Icinga if [ -e /etc/nagios/nrpe.cfg ] then if [ -e ${WD}/monitoring/.setup_monitoring.sh ] @@ -101,4 +102,11 @@ then echo ".setup_monitoring.sh is missing." fi fi +## Munin on monitor servers. +if [ -e "$WD/Munin/munin-cron.crontab" ] +then + crontab -u munin "$WD/Munin/munin-cron.crontab" +else + echo "Cannot install crontab for munin" +fi } -- 2.11.0