aboutsummaryrefslogtreecommitdiff
path: root/files/bin/munin-graph
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/bin/munin-graph
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/bin/munin-graph')
-rw-r--r--files/bin/munin-graph8
1 files changed, 8 insertions, 0 deletions
diff --git a/files/bin/munin-graph b/files/bin/munin-graph
new file mode 100644
index 0000000..b8d8c21
--- /dev/null
+++ b/files/bin/munin-graph
@@ -0,0 +1,8 @@
+#!/bin/bash
+# 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