crans_bcfg2/Python/etc/cron.d/munin-crans
2015-05-14 07:19:56 +02:00

23 lines
455 B
Python

# -*- 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"
import hosts_plugins as h_p
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""")
if cron_lines:
out('\n\n'.join(cron_lines))
else:
out('# Rien à voir ici...')