diff options
Diffstat (limited to 'collectors/nfacct.plugin')
-rw-r--r-- | collectors/nfacct.plugin/integrations/netfilter.md | 5 | ||||
-rw-r--r-- | collectors/nfacct.plugin/plugin_nfacct.c | 16 |
2 files changed, 4 insertions, 17 deletions
diff --git a/collectors/nfacct.plugin/integrations/netfilter.md b/collectors/nfacct.plugin/integrations/netfilter.md index 616e29e97..831b6fb5b 100644 --- a/collectors/nfacct.plugin/integrations/netfilter.md +++ b/collectors/nfacct.plugin/integrations/netfilter.md @@ -4,6 +4,7 @@ meta_yaml: "https://github.com/netdata/netdata/edit/master/collectors/nfacct.plu sidebar_label: "Netfilter" learn_status: "Published" learn_rel_path: "Data Collection/Linux Systems/Firewall" +most_popular: False message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE" endmeta--> @@ -120,8 +121,8 @@ sudo ./edit-config netdata.conf | Name | Description | Default | Required | |:----|:-----------|:-------|:--------:| -| update every | Data collection frequency. | 1 | False | -| command options | Additinal parameters for collector | | False | +| update every | Data collection frequency. | 1 | no | +| command options | Additinal parameters for collector | | no | </details> diff --git a/collectors/nfacct.plugin/plugin_nfacct.c b/collectors/nfacct.plugin/plugin_nfacct.c index a788d1a03..2863cd7eb 100644 --- a/collectors/nfacct.plugin/plugin_nfacct.c +++ b/collectors/nfacct.plugin/plugin_nfacct.c @@ -747,22 +747,8 @@ void nfacct_signals() } int main(int argc, char **argv) { - stderror = stderr; clocks_init(); - - // ------------------------------------------------------------------------ - // initialization of netdata plugin - - program_name = "nfacct.plugin"; - - // disable syslog - error_log_syslog = 0; - - // set errors flood protection to 100 logs per hour - error_log_errors_per_period = 100; - error_log_throttle_period = 3600; - - log_set_global_severity_for_external_plugins(); + nd_log_initialize_for_external_plugins("nfacct.plugin"); // ------------------------------------------------------------------------ // parse command line parameters |