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"
int check_host_still_alive(kb_t kb, const char *hostname)
Check if the hosts is still alive and set it as dead if not.
int kb_item_set_int_with_main_kb_check(kb_t kb, const char *name, int value)
Check if the current kb corresponds to the original scanid, if it matches it call kb_item_set_int....
Header file for module plugutils.