From 6c1e3c9a473af6b7a70d99d86d77efb9bcf9a72b Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 7 Dec 2012 21:58:48 +0100 Subject: [PATCH] =?UTF-8?q?[/etc/cron.d/munin-node]=20On=20rallonge=20l'in?= =?UTF-8?q?tervalle=20d'ex=C3=A9cution=20du=20plugins=20apt=5Fall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 61ec53ce35ada174db5e043e60412100 darcs-hash:20121207205848-2c9c1-e03ce440f4e73ffb1244953b18ff43964d82c58c.gz --- Bundler/munin-node.xml | 1 + Cfg/etc/cron.d/munin-node/info.xml | 3 +++ Cfg/etc/cron.d/munin-node/munin-node | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 Cfg/etc/cron.d/munin-node/info.xml create mode 100644 Cfg/etc/cron.d/munin-node/munin-node diff --git a/Bundler/munin-node.xml b/Bundler/munin-node.xml index 7914022..dba69c5 100644 --- a/Bundler/munin-node.xml +++ b/Bundler/munin-node.xml @@ -8,4 +8,5 @@ + diff --git a/Cfg/etc/cron.d/munin-node/info.xml b/Cfg/etc/cron.d/munin-node/info.xml new file mode 100644 index 0000000..28fd470 --- /dev/null +++ b/Cfg/etc/cron.d/munin-node/info.xml @@ -0,0 +1,3 @@ + + + diff --git a/Cfg/etc/cron.d/munin-node/munin-node b/Cfg/etc/cron.d/munin-node/munin-node new file mode 100644 index 0000000..ebe827f --- /dev/null +++ b/Cfg/etc/cron.d/munin-node/munin-node @@ -0,0 +1,18 @@ +# Fichier modifie par bcfg2 +# Il risque potentiellement de se faire ecraser par les maj de munin-node +# +# cron-jobs for munin-node +# + +MAILTO=root + +# If the APT plugin is enabled, update packages databases approx. once +# an hour (12 invokations an hour, 1 in 12 chance that the update will +# happen), but ensure that there will never be more than two hour (7200 +# seconds) interval between updates.. + +# Quand on le fait trop vite, parfois la tache precedente n'a pas eu le temps +# de finir et donc la suivante crashe parce qu'elle n'arrive pas a prendre +# le lock +*/10 * * * * root if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi +