# scan directory specified in path and load all modules from there
names = os.listdir(path)
for mod in names:
- if mod.strip(MODULE_EXTENSION) in disabled:
- error(mod + ": disabled module ", mod.strip(MODULE_EXTENSION))
+ if mod.replace(MODULE_EXTENSION,"") in disabled:
+ error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION,""))
continue
m = self._import_module(path + mod)
if m is not None:
pass
if changed_update and DEBUG_FLAG:
OVERRIDE_UPDATE_EVERY = True
- debug(PROGRAM, "overriding update interval to", str(int(cmd)))
+ debug(PROGRAM, "overriding update interval to", str(BASE_CONFIG['update_every']))
debug("started from", commands[0], "with options:", *commands[1:])
", ONLY_MODULES=" + str(modules))
# run plugins
+ modules = ['apache', 'nginx']
charts = PythonCharts(modules, MODULES_DIR, CONFIG_DIR + "python.d/", disabled)
charts.check()
charts.create()