From decf5bd0e0fa0f5121ea443fb9a8d77ae7626f74 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Mon, 31 Mar 2014 23:05:30 +0200 Subject: [PATCH] munin: remplit munin-crans via hosts_plugins --- Python/etc/cron.d/munin-crans | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Python/etc/cron.d/munin-crans b/Python/etc/cron.d/munin-crans index 0b2686f..293293e 100644 --- a/Python/etc/cron.d/munin-crans +++ b/Python/etc/cron.d/munin-crans @@ -11,7 +11,9 @@ info["group"] = "root" import hosts_plugins as h_p -cron_lines = h_p.hosts_crons.get(hostname,None) +cron_lines = [] +for group in metadata.groups: + cron_lines += h_p.hosts_crons.get(group, []) header("""Commandes cron pour les plugins munin custom Cr@ns""")