Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2022-01-28 17:39:37 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2022-01-28 17:39:37 +0300
commit2514b3b1636c5eb0929c8fc20d8c033606055741 (patch)
tree454d8bb42985813cc59987c89f814342d95726ed /include/zbxha.h
parent7cfbc557a53ddaef3ec8b8c7a1c6290d5135c383 (diff)
........S. [ZBX-20490] fixed handling of unresponsive HA manager at startup
Diffstat (limited to 'include/zbxha.h')
-rw-r--r--include/zbxha.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/zbxha.h b/include/zbxha.h
index ee1e36a76a1..5cf2082735c 100644
--- a/include/zbxha.h
+++ b/include/zbxha.h
@@ -49,6 +49,8 @@
#define ZBX_HA_DEFAULT_FAILOVER_DELAY SEC_PER_MIN
+#define ZBX_HA_IS_CLUSTER() (NULL != CONFIG_HA_NODE_NAME && '\0' != *CONFIG_HA_NODE_NAME)
+
int zbx_ha_get_nodes(char **nodes, char **error);
int zbx_ha_remove_node(const char *node, char **result, char **error);
int zbx_ha_set_failover_delay(int delay, char **error);