Disable pagetypeinfo by default (#7230)
Vladimir Kobal committed
Oct 30, 2019 at 20:40 UTC
97f2bc153b9d8b798fecafd4006865b10138fad3
1 file changed
+4
-2
collectors/proc.plugin/plugin_proc.c
+4
-2
@@ -85,14 +85,16 @@ static void proc_main_cleanup(void *ptr) {
85
void *proc_main(void *ptr) {
86
netdata_thread_cleanup_push(proc_main_cleanup, ptr);
87
88
- int vdo_cpu_netdata = config_get_boolean("plugin:proc", "netdata server resources", 1);
88
+ int vdo_cpu_netdata = config_get_boolean("plugin:proc", "netdata server resources", CONFIG_BOOLEAN_YES);
89
+
90
+ config_get_boolean("plugin:proc", "/proc/pagetypeinfo", CONFIG_BOOLEAN_NO);
91
92
// check the enabled status for each module
93
int i;
94
for(i = 0 ; proc_modules[i].name ;i++) {
95
struct proc_module *pm = &proc_modules[i];
96
95
- pm->enabled = config_get_boolean("plugin:proc", pm->name, 1);
97
+ pm->enabled = config_get_boolean("plugin:proc", pm->name, CONFIG_BOOLEAN_YES);
98
pm->duration = 0ULL;
99
pm->rd = NULL;
100
}