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:
Diffstat (limited to 'src/zabbix_server/ha/ha_manager.c')
-rw-r--r--src/zabbix_server/ha/ha_manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zabbix_server/ha/ha_manager.c b/src/zabbix_server/ha/ha_manager.c
index 30513ba1374..e5ecb30b570 100644
--- a/src/zabbix_server/ha/ha_manager.c
+++ b/src/zabbix_server/ha/ha_manager.c
@@ -1345,8 +1345,9 @@ static void ha_set_failover_delay(zbx_ha_info_t *info, zbx_ipc_client_t *client,
ZBX_STR2UINT64(configid, row[0]);
zbx_audit_init(info->auditlog);
- zbx_audit_settings_create_entry(AUDIT_ACTION_UPDATE, 1);
- zbx_audit_update_json_update_int(1, "settings.ha_failover_delay", atoi(row[1]), delay);
+ zbx_audit_settings_create_entry(AUDIT_ACTION_UPDATE, configid);
+ zbx_audit_update_json_update_int(configid, AUDIT_CONFIG_ID, "settings.ha_failover_delay", atoi(row[1]),
+ delay);
ha_flush_audit(info);
}
else