updated configuration file
paulfantom committed
Jun 20, 2016 at 13:35 UTC
62eca58edf7512fc7c397c2f27a60f4db0f69871
2 files changed
+1
-9
conf.d/python.d.conf
-6
@@ -1,11 +1,5 @@
1
# This is the configuration for python.d.plugin
2
3
-# It sets custom configuration directory for python modules
4
-# plugins_config_dir=
5
-
6
-# This is a directory with python modules
7
-# plugins_dir=
8
-
3
# By default python.d.plugin enables all modules stored in python.d
4
# Modules can be disabled with setting "module_name = no"
5
example: no
plugins.d/python.d.plugin
+1
-3
@@ -527,8 +527,6 @@ def run():
527
continue
528
if v is False:
529
disabled.append(k)
530
- else:
531
- modules_conf = CONFIG_DIR + "python.d/"
530
531
# parse passed command line arguments
532
out = parse_cmdline(MODULES_DIR, *sys.argv)
@@ -537,7 +535,7 @@ def run():
535
interval = out['interval']
536
537
# run plugins
540
- charts = PythonCharts(interval, modules, MODULES_DIR, modules_conf, disabled)
538
+ charts = PythonCharts(interval, modules, MODULES_DIR, CONFIG_DIR + "python.d/", disabled)
539
charts.check()
540
charts.create()
541
charts.update()