diff --git a/Bundler/munin-node.xml b/Bundler/munin-node.xml index 1595b3c..2e50580 100644 --- a/Bundler/munin-node.xml +++ b/Bundler/munin-node.xml @@ -5,4 +5,5 @@ + diff --git a/Python/etc/cron.d/munin-crans b/Python/etc/cron.d/munin-crans new file mode 100644 index 0000000..057c76c --- /dev/null +++ b/Python/etc/cron.d/munin-crans @@ -0,0 +1,22 @@ +# -*- mode: python; coding: utf-8 -*- + +include("ip") + +import sys as _sys +_sys.path.append('/usr/scripts/munin/scripts') +del _sys + +info["owner"] = "root" +info["group"] = "root" +info["perms"] = "0644" + +import hosts_plugins as h_p + +cron_lines = h_p.hosts_crons.get(hostname,None) + +header("""Commandes cron pour les plugins munin custom Cr@ns""") + +if cron_lines: + print '\n\n'.join(cron_lines) +else: + print '# Rien à voir ici...'