summaryrefslogtreecommitdiffstats
path: root/collectors/xenstat.plugin/xenstat_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--collectors/xenstat.plugin/xenstat_plugin.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/collectors/xenstat.plugin/xenstat_plugin.c b/collectors/xenstat.plugin/xenstat_plugin.c
index c05d5e298..319396d43 100644
--- a/collectors/xenstat.plugin/xenstat_plugin.c
+++ b/collectors/xenstat.plugin/xenstat_plugin.c
@@ -920,22 +920,14 @@ static void xenstat_send_domain_metrics() {
}
int main(int argc, char **argv) {
- stderror = stderr;
clocks_init();
// ------------------------------------------------------------------------
// initialization of netdata plugin
- program_name = "xenstat.plugin";
+ program_name = PLUGIN_XENSTAT_NAME;
- // 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(PLUGIN_XENSTAT_NAME);
// ------------------------------------------------------------------------
// parse command line parameters