aboutsummaryrefslogtreecommitdiff
path: root/files/etc/cron.d/munin
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-12 12:31:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-12 12:31:25 -0300
commit7beae39bc53042b9fbf214653d390c988a03ad1b (patch)
tree1d69809367a8dde2bcdf9ea4d1275f779eab98b5 /files/etc/cron.d/munin
parent276e6c4762ba971d3bc86a9072c474251df56441 (diff)
downloadpuppet-nodo-7beae39bc53042b9fbf214653d390c988a03ad1b.tar.gz
puppet-nodo-7beae39bc53042b9fbf214653d390c988a03ad1b.tar.bz2
Split munin-update and munin-graph on different cronjobs
Diffstat (limited to 'files/etc/cron.d/munin')
-rw-r--r--files/etc/cron.d/munin9
1 files changed, 9 insertions, 0 deletions
diff --git a/files/etc/cron.d/munin b/files/etc/cron.d/munin
new file mode 100644
index 0000000..6b44a40
--- /dev/null
+++ b/files/etc/cron.d/munin
@@ -0,0 +1,9 @@
+#
+# cron-jobs for munin
+#
+
+MAILTO=""
+
+@reboot root if [ ! -d /var/run/munin ]; then /bin/bash -c 'perms=(`/usr/sbin/dpkg-statoverride --list /var/run/munin`); mkdir /var/run/munin; chown ${perms[0]:-munin}:${perms[1]:-root} /var/run/munin; chmod ${perms[2]:-0755} /var/run/munin'; fi
+*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron &> /dev/null; fi
+14 10 * * * munin if [ -x /usr/share/munin/munin-limits ]; then /usr/share/munin/munin-limits --force --contact nagios --contact old-nagios; fi