11 #include "../misc/heartbeat.h"
13 #include "../misc/plugutils.h"
15 #include <gvm/base/prefs.h>
16 #include <gvm/boreas/cli.h>
22 #define G_LOG_DOMAIN "sd main"
36 boreas_error_t alive_err;
40 if (prefs_get_bool (
"test_alive_hosts_only"))
42 const gchar *alive_test_str = prefs_get (
"ALIVE_TEST");
47 && atoi (alive_test_str) >= ALIVE_TEST_TCP_ACK_SERVICE
48 && atoi (alive_test_str) < 32
49 && !((atoi (alive_test_str)) & ALIVE_TEST_CONSIDER_ALIVE)))
54 g_warning (
"%s: Trying to perform an alive test, but Boreas is not "
55 "enabled. Heartbeat check for %s will not be performed",
60 alive_err = is_host_alive (
hostname, &is_alive);
63 g_warning (
"%s: Heartbeat check failed for %s with error %d.", __func__,
70 g_message (
"%s: Heartbeat check was not successful. The host %s has"