summaryrefslogtreecommitdiffstats
path: root/collectors/xenstat.plugin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-03-31 12:58:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-03-31 12:58:11 +0000
commitf99c4526d94d3e04124c5c48ab4a3da6ca53a458 (patch)
treea2ed8860030cc49f492b09b3222d593c65619800 /collectors/xenstat.plugin
parentAdding upstream version 1.29.3. (diff)
downloadnetdata-f99c4526d94d3e04124c5c48ab4a3da6ca53a458.tar.xz
netdata-f99c4526d94d3e04124c5c48ab4a3da6ca53a458.zip
Adding upstream version 1.30.0.upstream/1.30.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/xenstat.plugin')
-rw-r--r--collectors/xenstat.plugin/xenstat_plugin.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/collectors/xenstat.plugin/xenstat_plugin.c b/collectors/xenstat.plugin/xenstat_plugin.c
index 647ac1db..a322dd1c 100644
--- a/collectors/xenstat.plugin/xenstat_plugin.c
+++ b/collectors/xenstat.plugin/xenstat_plugin.c
@@ -2,6 +2,9 @@
#include "../../libnetdata/libnetdata.h"
+#include <xenstat.h>
+#include <libxl.h>
+
#define PLUGIN_XENSTAT_NAME "xenstat.plugin"
#define NETDATA_CHART_PRIO_XENSTAT_NODE_CPUS 30001
@@ -62,15 +65,9 @@ int health_variable_lookup(const char *variable, uint32_t hash, struct rrdcalc *
char *netdata_configured_host_prefix = "";
// Variables
-
static int debug = 0;
-
static int netdata_update_every = 1;
-#ifdef HAVE_LIBXENSTAT
-#include <xenstat.h>
-#include <libxl.h>
-
struct vcpu_metrics {
unsigned int id;
@@ -1093,14 +1090,3 @@ int main(int argc, char **argv) {
xenstat_uninit(xhandle);
info("XENSTAT process exiting");
}
-
-#else // !HAVE_LIBXENSTAT
-
-int main(int argc, char **argv) {
- (void)argc;
- (void)argv;
-
- fatal("xenstat.plugin is not compiled.");
-}
-
-#endif // !HAVE_LIBXENSTAT