diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2021-10-18 16:37:07 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2021-10-18 16:37:29 +0300 |
commit | ace75059a353c13665987c112724e70dc312954f (patch) | |
tree | 3dddbd9f5c981d76f3650f957dd859c059ccbceb /src/libs/zbxaudit | |
parent | c78130ea069a8635bedc2af5d6c0ad06d8ff8c80 (diff) |
........S. [ZBXNEXT-6923] added audit logging when ha_failover_delay is changed
Diffstat (limited to 'src/libs/zbxaudit')
-rw-r--r-- | src/libs/zbxaudit/Makefile.am | 4 | ||||
-rw-r--r-- | src/libs/zbxaudit/audit.h | 2 | ||||
-rw-r--r-- | src/libs/zbxaudit/audit_ha.c | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/libs/zbxaudit/Makefile.am b/src/libs/zbxaudit/Makefile.am index b9f941a3480..e35b096aafe 100644 --- a/src/libs/zbxaudit/Makefile.am +++ b/src/libs/zbxaudit/Makefile.am @@ -16,4 +16,6 @@ libzbxaudit_a_SOURCES = \ audit_graph.c \ audit_graph.h \ audit_ha.c \ - audit_ha.h + audit_ha.h \ + audit_settings.c \ + audit_settings.h diff --git a/src/libs/zbxaudit/audit.h b/src/libs/zbxaudit/audit.h index 494445215a0..89f9adcfff2 100644 --- a/src/libs/zbxaudit/audit.h +++ b/src/libs/zbxaudit/audit.h @@ -49,6 +49,8 @@ #define AUDIT_RESOURCE_ITEM_PROTOTYPE 36 #define AUDIT_RESOURCE_HOST_PROTOTYPE 37 +#define AUDIT_RESOURCE_SETTINGS 40 + #define AUDIT_RESOURCE_HA_NODE 47 #define RETURN_IF_AUDIT_OFF() \ diff --git a/src/libs/zbxaudit/audit_ha.c b/src/libs/zbxaudit/audit_ha.c index 6782444cd9c..511f0123716 100644 --- a/src/libs/zbxaudit/audit_ha.c +++ b/src/libs/zbxaudit/audit_ha.c @@ -73,3 +73,4 @@ void zbx_audit_ha_update_field_int(const char *nodeid, const char *key, int old_ entry = zbx_audit_get_entry(0, nodeid); zbx_audit_entry_append_int(entry, AUDIT_ACTION_UPDATE, key, old_value, new_value); } + |