On stabilise le plugin Python en virant toute occurrence de print.
* Désolé. \o/
This commit is contained in:
parent
2c27a030ee
commit
4b36a51d99
102 changed files with 513 additions and 703 deletions
|
@ -5,7 +5,8 @@ info["group"] = "root"
|
|||
info["mode"] = 0644
|
||||
|
||||
header("Cronjob munin-node")
|
||||
print """
|
||||
|
||||
out("""
|
||||
MAILTO=root
|
||||
|
||||
# If the APT plugin is enabled, update packages databases approx. once
|
||||
|
@ -13,21 +14,15 @@ MAILTO=root
|
|||
# happen), but ensure that there will never be more than two hour (7200
|
||||
# seconds) interval between updates..
|
||||
|
||||
"""
|
||||
|
||||
print """# J'ai trouve ce workaround sur :
|
||||
# J'ai trouve ce workaround sur :
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687912
|
||||
# le bugreport pretend que la derniere version de munin fix le probleme, mais non
|
||||
# --
|
||||
# 20-100, le 20/01/2013
|
||||
MUNIN_PLUGSTATE=/var/lib/munin-node/plugin-state/root
|
||||
|
||||
"""
|
||||
|
||||
print """
|
||||
# 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