]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/templates/default/rrddump.cron.erb
Fix composite PDU graphs
[chef.git] / cookbooks / munin / templates / default / rrddump.cron.erb
index 604917336b919c469104cb50f616f74e8fd72085..33087c3fd3375a5086171fab244cb42613770dc0 100644 (file)
@@ -1,3 +1,3 @@
 MAILTO=zerebubuth@gmail.com
-# do the dump in the early hours of the morning and follow, if successful, by a cleanup of the old files. i don't think these are of any historical interest, so just keep three consecutive.
-43 3 * * * www-data nice /usr/local/bin/rrddump > /srv/munin.openstreetmap.org/dumps/`date "+munin-data-%Y-%m-%d.tar.gz"` && ls -1 /srv/munin.openstreetmap.org/dumps/munin-data-*.tar.gz | sort -r | tail -n +4 | xargs rm -f
+# do the dump & cleanup in the early hours of the morning
+43 3 * * * www-data nice /usr/local/bin/rrddump