plugin_checks.h 653 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_PLUGIN_CHECKS_H
  3. #define NETDATA_PLUGIN_CHECKS_H 1
  4. #include "../../daemon/common.h"
  5. #ifdef NETDATA_INTERNAL_CHECKS
  6. #define NETDATA_PLUGIN_HOOK_CHECKS \
  7. { \
  8. .name = "PLUGIN[check]", \
  9. .config_section = CONFIG_SECTION_PLUGINS, \
  10. .config_name = "checks", \
  11. .enabled = 0, \
  12. .thread = NULL, \
  13. .init_routine = NULL, \
  14. .start_routine = checks_main \
  15. },
  16. extern void *checks_main(void *ptr);
  17. #else // !NETDATA_INTERNAL_CHECKS
  18. #define NETDATA_PLUGIN_HOOK_CHECKS
  19. #endif // NETDATA_INTERNAL_CHECKS
  20. #endif // NETDATA_PLUGIN_CHECKS_H