munin: no diskstat plugin si iscsi
Car ça fait maaaaassssss graphes à tracer en plus, dyson souffre.
This commit is contained in:
parent
2acb941864
commit
77b2d49c58
1 changed files with 10 additions and 0 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue