munin: no diskstat plugin si iscsi

Car ça fait maaaaassssss graphes à tracer en plus, dyson souffre.
This commit is contained in:
Daniel STAN 2014-02-25 18:00:23 +01:00
parent 2acb941864
commit 77b2d49c58

View file

@ -22,6 +22,9 @@ import tempfile
from hosts_plugins import hosts_plugins, general_plugins from hosts_plugins import hosts_plugins, general_plugins
from gestion.config.services import services
# Plugins munin classiques à ignorer # Plugins munin classiques à ignorer
IGNORE_PLUGINS = ( IGNORE_PLUGINS = (
'apt_all', 'apt_all',
@ -39,6 +42,13 @@ IGNORE_PLUGINS = (
'vlan_', 'vlan_',
) )
if socket.gethostname() in services.services.get('iscsi', []):
IGNORE_PLUGINS += (
'diskstat',
'diskstats',
'diskstat_',
)
# Chemin d'accès aux plugins munin # Chemin d'accès aux plugins munin
MUNIN_PATH = "/usr/share/munin/plugins" MUNIN_PATH = "/usr/share/munin/plugins"