diff options
author | Andrejs Kozlovs <andrejs.kozlovs@zabbix.com> | 2021-08-18 15:26:39 +0300 |
---|---|---|
committer | Andrejs Kozlovs <andrejs.kozlovs@zabbix.com> | 2021-08-18 15:26:39 +0300 |
commit | 3cca9c4c96c44fd3bf2a6d032870e673958a7c89 (patch) | |
tree | 487406cc68bde8b1c781445b472eadc3a977005d /src/libs/zbxaudit/audit_host.h | |
parent | 79f03ed8b3441ea6ed4f5c6f396b0a92e554d2a7 (diff) |
........S. [ZBXNEXT-6810] added group discovery
Diffstat (limited to 'src/libs/zbxaudit/audit_host.h')
-rw-r--r-- | src/libs/zbxaudit/audit_host.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libs/zbxaudit/audit_host.h b/src/libs/zbxaudit/audit_host.h index 7eac7665040..388f99a27ad 100644 --- a/src/libs/zbxaudit/audit_host.h +++ b/src/libs/zbxaudit/audit_host.h @@ -127,6 +127,7 @@ void zbx_audit_host_update_json_update_tag_value(zbx_uint64_t hostid, zbx_uint64 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_hostgroup_update_json_detach(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); void zbx_audit_host_del(zbx_uint64_t hostid, const char *hostname); @@ -187,4 +188,16 @@ void zbx_audit_host_prototype_update_json_update_tag_value(zbx_uint64_t hostid, const char* value_old, const char *value_new); void zbx_audit_host_prototype_update_json_delete_tag(zbx_uint64_t hostid, zbx_uint64_t tagid); + +void zbx_audit_host_group_create_entry(int audit_action, zbx_uint64_t groupid, const char *name); +void zbx_audit_host_group_del(zbx_uint64_t groupid, const char *name); +void zbx_audit_host_group_update_json_add_details(zbx_uint64_t groupid, const char *name, int flags); + +#define PREPARE_AUDIT_HOST_GROUP_UPDATE_H(resource, type1, type2) \ +void zbx_audit_host_group_update_json_update_##resource(zbx_uint64_t groupid, type1 old_##resource, \ + type1 new_##resource); \ + +PREPARE_AUDIT_HOST_GROUP_UPDATE_H(name, const char*, string) +#undef PREPARE_AUDIT_HOST_UPDATE_H + #endif /* ZABBIX_AUDIT_HOST_H */ |