diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2021-10-13 08:25:33 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2021-10-13 08:25:33 +0300 |
commit | 0be8151656edf268fce1fe7117ea2e62eb5c62b8 (patch) | |
tree | d55b010eae3d099359eb59896614230d1fe5dc96 /src/libs/zbxaudit | |
parent | cb736d76972cb6266b3742cb32739fa106f08cfa (diff) |
........S. [ZBXNEXT-6923] added audit logging default address/port fields during node creation process
Diffstat (limited to 'src/libs/zbxaudit')
-rw-r--r-- | src/libs/zbxaudit/audit_ha.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/zbxaudit/audit_ha.c b/src/libs/zbxaudit/audit_ha.c index 63e23fcbf72..eb49637536f 100644 --- a/src/libs/zbxaudit/audit_ha.c +++ b/src/libs/zbxaudit/audit_ha.c @@ -50,6 +50,10 @@ void zbx_audit_ha_add_create_fields(const char *nodeid, const char *name, int st zbx_audit_entry_append_string(entry, AUDIT_ACTION_ADD, "ha_node.ha_nodeid", nodeid); zbx_audit_entry_append_string(entry, AUDIT_ACTION_ADD, "ha_node.name", name); zbx_audit_entry_append_int(entry, AUDIT_ACTION_ADD, "ha_node.status", status); + + /* node is created with empty address and default port */ + zbx_audit_entry_append_string(entry, AUDIT_ACTION_ADD, "ha_node.address", ""); + zbx_audit_entry_append_int(entry, AUDIT_ACTION_ADD, "ha_node.port", 10051); } void zbx_audit_ha_update_field_string(const char *nodeid, const char *key, const char *old_value, |