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:
authorAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2021-11-03 14:54:39 +0300
committerAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2021-11-03 14:54:39 +0300
commit6ba3246bb7f75d18245def6ccdc83d20fe0e2b75 (patch)
treebe8c729c95a80f5acec526a7a28191e108fc8314 /include/common.h
parent4dda152cdc1074af2170c0577d6f0f29de30d4b1 (diff)
parentd96c48dc1d46522363b36464872b157561b299bf (diff)
.......... [ZBXNEXT-6936] upgraded to master
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/include/common.h b/include/common.h
index 9b83feececd..077cb4eeeb6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -447,7 +447,10 @@ zbx_graph_yaxis_types_t;
#define ZBX_LOG_LEVEL_DECREASE "log_level_decrease"
#define ZBX_SNMP_CACHE_RELOAD "snmp_cache_reload"
#define ZBX_DIAGINFO "diaginfo"
-#define ZBX_TRIGGER_HOUSEKEEPER_EXECUTE "trigger_housekeeper_execute"
+#define ZBX_TRIGGER_HOUSEKEEPER_EXECUTE "trigger_housekeeper_execute"
+#define ZBX_HA_STATUS "ha_status"
+#define ZBX_HA_REMOVE_NODE "ha_remove_node"
+#define ZBX_HA_SET_FAILOVER_DELAY "ha_set_failover_delay"
#define ZBX_USER_PARAMETERS_RELOAD "userparameter_reload"
/* value for not supported items */
@@ -567,8 +570,16 @@ const char *get_program_type_string(unsigned char program_type);
#define ZBX_PROCESS_TYPE_REPORTWRITER 34
#define ZBX_PROCESS_TYPE_SERVICEMAN 35
#define ZBX_PROCESS_TYPE_PROBLEMHOUSEKEEPER 36
-#define ZBX_PROCESS_TYPE_COUNT 37 /* number of process types */
-#define ZBX_PROCESS_TYPE_UNKNOWN 255
+#define ZBX_PROCESS_TYPE_COUNT 37 /* number of process types */
+
+/* special processes that are not present worker list */
+#define ZBX_PROCESS_TYPE_EXT_FIRST 126
+#define ZBX_PROCESS_TYPE_HA_MANAGER 126
+#define ZBX_PROCESS_TYPE_MAIN 127
+#define ZBX_PROCESS_TYPE_EXT_LAST 127
+
+#define ZBX_PROCESS_TYPE_UNKNOWN 255
+
const char *get_process_type_string(unsigned char proc_type);
int get_process_type_by_name(const char *proc_type_str);
@@ -976,7 +987,10 @@ zbx_task_t;
#define ZBX_RTC_SECRETS_RELOAD 11
#define ZBX_RTC_SERVICE_CACHE_RELOAD 12
#define ZBX_RTC_TRIGGER_HOUSEKEEPER_EXECUTE 13
-#define ZBX_RTC_USER_PARAMETERS_RELOAD 14
+#define ZBX_RTC_HA_STATUS 14
+#define ZBX_RTC_HA_REMOVE_NODE 15
+#define ZBX_RTC_HA_SET_FAILOVER_DELAY 16
+#define ZBX_RTC_USER_PARAMETERS_RELOAD 17
typedef enum
{
@@ -994,7 +1008,7 @@ zbx_httptest_auth_t;
typedef struct
{
zbx_task_t task;
- int flags;
+ unsigned int flags;
int data;
}
ZBX_TASK_EX;
@@ -1357,6 +1371,7 @@ void find_cr_lf_szbyte(const char *encoding, const char **cr, const char **lf, s
int zbx_read(int fd, char *buf, size_t count, const char *encoding);
int zbx_is_regular_file(const char *path);
char *zbx_fgets(char *buffer, int size, FILE *fp);
+int zbx_write_all(int fd, const char *buf, size_t n);
int MAIN_ZABBIX_ENTRY(int flags);