summaryrefslogtreecommitdiffstats
path: root/collectors/slabinfo.plugin
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/slabinfo.plugin')
-rw-r--r--collectors/slabinfo.plugin/integrations/linux_kernel_slab_allocator_statistics.md3
-rw-r--r--collectors/slabinfo.plugin/slabinfo.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/collectors/slabinfo.plugin/integrations/linux_kernel_slab_allocator_statistics.md b/collectors/slabinfo.plugin/integrations/linux_kernel_slab_allocator_statistics.md
index 54ccf605f..ce8115270 100644
--- a/collectors/slabinfo.plugin/integrations/linux_kernel_slab_allocator_statistics.md
+++ b/collectors/slabinfo.plugin/integrations/linux_kernel_slab_allocator_statistics.md
@@ -4,6 +4,7 @@ meta_yaml: "https://github.com/netdata/netdata/edit/master/collectors/slabinfo.p
sidebar_label: "Linux kernel SLAB allocator statistics"
learn_status: "Published"
learn_rel_path: "Data Collection/Linux Systems/Kernel"
+most_popular: False
message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
endmeta-->
@@ -120,7 +121,7 @@ sudo ./edit-config netdata.conf
| Name | Description | Default | Required |
|:----|:-----------|:-------|:--------:|
-| Enable plugin | As described above plugin is disabled by default, this option is used to enable plugin. | no | True |
+| Enable plugin | As described above plugin is disabled by default, this option is used to enable plugin. | no | yes |
</details>
diff --git a/collectors/slabinfo.plugin/slabinfo.c b/collectors/slabinfo.plugin/slabinfo.c
index 366cba643..9b9119a6e 100644
--- a/collectors/slabinfo.plugin/slabinfo.c
+++ b/collectors/slabinfo.plugin/slabinfo.c
@@ -336,14 +336,11 @@ void usage(void) {
}
int main(int argc, char **argv) {
- stderror = stderr;
clocks_init();
+ nd_log_initialize_for_external_plugins("slabinfo.plugin");
program_name = argv[0];
program_version = "0.1";
- error_log_syslog = 0;
-
- log_set_global_severity_for_external_plugins();
int update_every = 1, i, n, freq = 0;