diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-01-26 18:05:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-01-26 18:05:10 +0000 |
commit | 34a0b66bc2d48223748ed1cf5bc1b305c396bd74 (patch) | |
tree | fbd36be86cc6bc4288fe627f2b5beada569848bb /collectors/checks.plugin | |
parent | Adding upstream version 1.32.1. (diff) | |
download | netdata-34a0b66bc2d48223748ed1cf5bc1b305c396bd74.tar.xz netdata-34a0b66bc2d48223748ed1cf5bc1b305c396bd74.zip |
Adding upstream version 1.33.0.upstream/1.33.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/checks.plugin')
-rw-r--r-- | collectors/checks.plugin/plugin_checks.c | 6 | ||||
-rw-r--r-- | collectors/checks.plugin/plugin_checks.h | 29 |
2 files changed, 1 insertions, 34 deletions
diff --git a/collectors/checks.plugin/plugin_checks.c b/collectors/checks.plugin/plugin_checks.c index 1bd053b8c..312515115 100644 --- a/collectors/checks.plugin/plugin_checks.c +++ b/collectors/checks.plugin/plugin_checks.c @@ -1,8 +1,6 @@ // SPDX-License-Identifier: GPL-3.0-or-later -#include "plugin_checks.h" - -#ifdef NETDATA_INTERNAL_CHECKS +#include "daemon/common.h" static void checks_main_cleanup(void *ptr) { struct netdata_static_thread *static_thread = (struct netdata_static_thread *)ptr; @@ -125,5 +123,3 @@ void *checks_main(void *ptr) { netdata_thread_cleanup_pop(1); return NULL; } - -#endif // NETDATA_INTERNAL_CHECKS diff --git a/collectors/checks.plugin/plugin_checks.h b/collectors/checks.plugin/plugin_checks.h deleted file mode 100644 index c8057253c..000000000 --- a/collectors/checks.plugin/plugin_checks.h +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -#ifndef NETDATA_PLUGIN_CHECKS_H -#define NETDATA_PLUGIN_CHECKS_H 1 - -#include "daemon/common.h" - -#ifdef NETDATA_INTERNAL_CHECKS - -#define NETDATA_PLUGIN_HOOK_CHECKS \ - { \ - .name = "PLUGIN[check]", \ - .config_section = CONFIG_SECTION_PLUGINS, \ - .config_name = "checks", \ - .enabled = 0, \ - .thread = NULL, \ - .init_routine = NULL, \ - .start_routine = checks_main \ - }, - -extern void *checks_main(void *ptr); - -#else // !NETDATA_INTERNAL_CHECKS - -#define NETDATA_PLUGIN_HOOK_CHECKS - -#endif // NETDATA_INTERNAL_CHECKS - -#endif // NETDATA_PLUGIN_CHECKS_H |