diff options
author | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-08-12 14:50:43 +0300 |
---|---|---|
committer | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-08-12 17:12:27 +0300 |
commit | 33d65b8626bcea1c1669e339818114586a652a47 (patch) | |
tree | da70696542df79048cd2d8c9a6d18e47e3333542 /src/libs/zbxaudit/audit_host.h | |
parent | 784fc491ae709af681e897eb43a26950955f0027 (diff) |
........S. [ZBXNEXT-6802] added audit of deleting interfaces for host prototypes
Diffstat (limited to 'src/libs/zbxaudit/audit_host.h')
-rw-r--r-- | src/libs/zbxaudit/audit_host.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libs/zbxaudit/audit_host.h b/src/libs/zbxaudit/audit_host.h index 87959e05a39..5bf4208ea62 100644 --- a/src/libs/zbxaudit/audit_host.h +++ b/src/libs/zbxaudit/audit_host.h @@ -112,4 +112,19 @@ PREPARE_AUDIT_TEMPLATE_OP_H(attach, AUDIT_DETAILS_ACTION_ATTACH) PREPARE_AUDIT_TEMPLATE_OP_H(detach, AUDIT_DETAILS_ACTION_DETACH) void zbx_audit_host_prototype_update_json_add_templates(zbx_uint64_t hostid, zbx_vector_uint64_t *templateids); +void zbx_audit_host_prototype_update_json_delete_interface(zbx_uint64_t hostid, zbx_uint64_t interfaceid); + +void zbx_audit_host_prototype_update_json_add_hostmacro(zbx_uint64_t hostid, zbx_uint64_t macroid, + const char *macro, const char *value, const char *description, int type); + +#define PREPARE_AUDIT_HOST_PROTOTYPE_UPDATE_HOSTMACRO_H(resource, type1, type2) \ +void zbx_audit_host_prototype_update_json_update_hostmacro_##resource(zbx_uint64_t hostid, \ + zbx_uint64_t hostmacroid, type1 old_##resource, type1 new_##resource); +PREPARE_AUDIT_HOST_PROTOTYPE_UPDATE_HOSTMACRO_H(name, const char*, string) +PREPARE_AUDIT_HOST_PROTOTYPE_UPDATE_HOSTMACRO_H(value, const char*, string) +PREPARE_AUDIT_HOST_PROTOTYPE_UPDATE_HOSTMACRO_H(description, const char*, string) +PREPARE_AUDIT_HOST_PROTOTYPE_UPDATE_HOSTMACRO_H(type, int, int) + +void zbx_aduit_host_prototype_update_json_delete_hostmacro(zbx_uint64_t hostid, zbx_uint64_t hostmacroid); + #endif /* ZABBIX_AUDIT_HOST_H */ |