diff options
author | Andrejs Kozlovs <andrejs.kozlovs@zabbix.com> | 2021-08-17 17:32:33 +0300 |
---|---|---|
committer | Andrejs Kozlovs <andrejs.kozlovs@zabbix.com> | 2021-08-17 17:32:33 +0300 |
commit | a7ecb0c7eb080d8911ed3aabd21ada51d2cf8067 (patch) | |
tree | 31a643fa2c0961d6b96e04e296ac2a10d500b111 /src/libs/zbxaudit/audit_host.h | |
parent | 9561ef8ed650339837fac28d30bdb2b0e78855b3 (diff) |
........S. [ZBXNEXT-6810] added hostmacros and hosttags audit in LLD
Diffstat (limited to 'src/libs/zbxaudit/audit_host.h')
-rw-r--r-- | src/libs/zbxaudit/audit_host.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libs/zbxaudit/audit_host.h b/src/libs/zbxaudit/audit_host.h index 6f177230cf8..7eac7665040 100644 --- a/src/libs/zbxaudit/audit_host.h +++ b/src/libs/zbxaudit/audit_host.h @@ -101,6 +101,31 @@ PREPARE_AUDIT_HOST_UPDATE_H(tls_psk, const char*, string) PREPARE_AUDIT_HOST_UPDATE_H(custom_interfaces, int, int) #undef PREPARE_AUDIT_HOST_UPDATE_H +void zbx_audit_host_update_json_delete_interface(zbx_uint64_t hostid, zbx_uint64_t interfaceid); + +void zbx_audit_host_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_UPDATE_HOSTMACRO_H(resource, type1) \ +void zbx_audit_host_update_json_update_hostmacro_##resource(zbx_uint64_t hostid, \ + zbx_uint64_t hostmacroid, type1 old_##resource, type1 new_##resource); +PREPARE_AUDIT_HOST_UPDATE_HOSTMACRO_H(value, const char*) +PREPARE_AUDIT_HOST_UPDATE_HOSTMACRO_H(description, const char*) +PREPARE_AUDIT_HOST_UPDATE_HOSTMACRO_H(type, int) + +void zbx_audit_host_update_json_delete_hostmacro(zbx_uint64_t hostid, zbx_uint64_t hostmacroid); + +void zbx_audit_host_update_json_add_tag(zbx_uint64_t hostid, zbx_uint64_t tagid, const char* tag, + const char* value); + +void zbx_audit_host_update_json_update_tag_tag(zbx_uint64_t hostid, zbx_uint64_t tagid, + const char* tag_old, const char *tag_new); + +void zbx_audit_host_update_json_update_tag_value(zbx_uint64_t hostid, zbx_uint64_t tagid, + const char* value_old, const char *value_new); + +void zbx_audit_host_update_json_delete_tag(zbx_uint64_t hostid, zbx_uint64_t tagid); + void zbx_audit_hostgroup_update_json_attach(zbx_uint64_t hostid, zbx_uint64_t hostgroupid, zbx_uint64_t groupid); void zbx_audit_host_hostgroup_delete(zbx_uint64_t hostid, const char* hostname, zbx_vector_uint64_t *hostgroupids, zbx_vector_uint64_t *groupids); |