[munin-node] Ajout des cron pour les plugins qui en ont besoin
Ignore-this: a7e745b0cb227c8598530200f62a0889 darcs-hash:20090329192659-ffbb2-bcb75a969f07e4a1d5c28888e2cecd9b6eec852f.gz
This commit is contained in:
parent
6aef7ff7b8
commit
e657bf9bef
2 changed files with 23 additions and 0 deletions
|
@ -5,4 +5,5 @@
|
||||||
<ConfigFile name="/etc/munin/munin-node.conf"/>
|
<ConfigFile name="/etc/munin/munin-node.conf"/>
|
||||||
<ConfigFile name="/etc/munin/plugin-conf.d/00-sanitize-env"/>
|
<ConfigFile name="/etc/munin/plugin-conf.d/00-sanitize-env"/>
|
||||||
<ConfigFile name="/etc/munin/plugin-conf.d/crans"/>
|
<ConfigFile name="/etc/munin/plugin-conf.d/crans"/>
|
||||||
|
<ConfigFile name="/etc/cron.d/munin-crans"/>
|
||||||
</Bundle>
|
</Bundle>
|
||||||
|
|
22
Python/etc/cron.d/munin-crans
Normal file
22
Python/etc/cron.d/munin-crans
Normal file
|
@ -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...'
|
Loading…
Add table
Add a link
Reference in a new issue