[/etc/cron.d/munin-node] On rallonge l'intervalle d'exécution du plugins apt_all
Ignore-this: 61ec53ce35ada174db5e043e60412100 darcs-hash:20121207205848-2c9c1-e03ce440f4e73ffb1244953b18ff43964d82c58c.gz
This commit is contained in:
parent
ffa84d5acb
commit
6c1e3c9a47
3 changed files with 22 additions and 0 deletions
|
@ -8,4 +8,5 @@
|
|||
<ConfigFile name="/etc/munin/plugin-conf.d/00-sanitize-env"/>
|
||||
<ConfigFile name="/etc/munin/plugin-conf.d/crans"/>
|
||||
<ConfigFile name="/etc/cron.d/munin-crans"/>
|
||||
<ConfigFile name="/etc/cron.d/munin-node"/>
|
||||
</Bundle>
|
||||
|
|
3
Cfg/etc/cron.d/munin-node/info.xml
Normal file
3
Cfg/etc/cron.d/munin-node/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner='root' group='root' perms='0644'/>
|
||||
</FileInfo>
|
18
Cfg/etc/cron.d/munin-node/munin-node
Normal file
18
Cfg/etc/cron.d/munin-node/munin-node
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue