crans_bcfg2/Python/etc/cron.d/munin-crans
2014-03-31 23:05:30 +02:00

23 lines
457 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:
print '\n\n'.join(cron_lines)
else:
print '# Rien à voir ici...'