diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-10-30 20:40:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 20:40:41 +0200 |
commit | 97f2bc153b9d8b798fecafd4006865b10138fad3 (patch) | |
tree | d31e2c43214e28d88c6c225489e9b06ac8e09b77 /collectors/proc.plugin | |
parent | 1de8f1cb27c1e7bdcbc7b1829e403628a0d9c60e (diff) |
Disable pagetypeinfo by default (#7230)
Diffstat (limited to 'collectors/proc.plugin')
-rw-r--r-- | collectors/proc.plugin/plugin_proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/collectors/proc.plugin/plugin_proc.c b/collectors/proc.plugin/plugin_proc.c index 116717408c..fcb1babcfa 100644 --- a/collectors/proc.plugin/plugin_proc.c +++ b/collectors/proc.plugin/plugin_proc.c @@ -85,14 +85,16 @@ static void proc_main_cleanup(void *ptr) { void *proc_main(void *ptr) { netdata_thread_cleanup_push(proc_main_cleanup, ptr); - int vdo_cpu_netdata = config_get_boolean("plugin:proc", "netdata server resources", 1); + int vdo_cpu_netdata = config_get_boolean("plugin:proc", "netdata server resources", CONFIG_BOOLEAN_YES); + + config_get_boolean("plugin:proc", "/proc/pagetypeinfo", CONFIG_BOOLEAN_NO); // check the enabled status for each module int i; for(i = 0 ; proc_modules[i].name ;i++) { struct proc_module *pm = &proc_modules[i]; - pm->enabled = config_get_boolean("plugin:proc", pm->name, 1); + pm->enabled = config_get_boolean("plugin:proc", pm->name, CONFIG_BOOLEAN_YES); pm->duration = 0ULL; pm->rd = NULL; } |