From 7beae39bc53042b9fbf214653d390c988a03ad1b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 12 Mar 2014 12:31:25 -0300 Subject: Split munin-update and munin-graph on different cronjobs --- files/bin/munin-cron | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 files/bin/munin-cron (limited to 'files/bin/munin-cron') diff --git a/files/bin/munin-cron b/files/bin/munin-cron new file mode 100644 index 0000000..052ea2d --- /dev/null +++ b/files/bin/munin-cron @@ -0,0 +1,20 @@ +#!/bin/sh + +# This used to test if the executables were installed. But that is +# perfectly redundant and supresses errors that the admin should see. + +/usr/share/munin/munin-update $@ || exit 1 + +# The result of munin-limits is needed by munin-html but not by +# munin-graph. So run it in the background now, it will be done +# before munin-graph. + +/usr/share/munin/munin-limits $@ + +# We always launch munin-html. +# It is a noop if html_strategy is "cgi" +#nice /usr/share/munin/munin-html $@ || exit 1 + +# The result of munin-html is needed for munin-graph. +# It is a noop if graph_strategy is "cgi" +#nice /usr/share/munin/munin-graph --cron $@ || exit 1 -- cgit v1.2.3