Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2020-08-28 10:53:42 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2020-08-28 11:11:02 +0300
commit3b6e07d1ec2ebb46ebe5294da2a71f362c6a5c1c (patch)
tree7f1b166d21c6a822b4b5c7e0deb6c15c37ee6636 /include/zbxtasks.h
parent7fcb4908ac42281568e4e85f3adefe4a9b6ecd5e (diff)
.......PS. [ZBXNEXT-6167] added diaginfo runtime command to log internal diagnostic information
* commit 'b9d85eedee7431f9204ac3a00eea559b81486ae7': (45 commits) .D........ [ZBXNEXT-6167] updated server and proxy man pages .D........ [ZBXNEXT-6167] added changelog entry .......PS. [ZBXNEXT-6167] don't allow runtime command on Zabbix agentd .......PS. [ZBXNEXT-6167] style fix .......PS. [ZBXNEXT-6167] style fix .......PS. [ZBXNEXT-6167] simplified main process waiting for dead children .......PS. [ZBXNEXT-6167] added missing include file, more defines .......PS. [ZBXNEXT-6167] added diaginfo remote command suppor to proxy .......PS. [ZBXNEXT-6167] added comments, minor refactoring ........S. [ZBXNEXT-6167] added remote command support for diaginfo printing on server .......PS. [ZBXNEXT-6167] small style fixes ........S. [ZBXNEXT-6167] fixed value cache diagnostics retrieval with disabled value cache .......PS. [ZBXNEXT-6167] fixed vector not being destroyed on failure .......PS. [ZBXNEXT-6167] fixed vector not being destroyed on failure .......PS. [ZBXNEXT-6167] fixed warning .......PS. [ZBXNEXT-6167] fixed memory leak ........S. [ZBXNEXT-6167] fixed memory leak ........S. [ZBXNEXT-6167] fixed wrong type used when serializing lld top result ........S. [ZBXNEXT-6167] small style fix ........S. [ZBXNEXT-6167] small style fixes ... (cherry picked from commit dabac74c51a9d19db24c871f7f8ec247ac540eeb)
Diffstat (limited to 'include/zbxtasks.h')
-rw-r--r--include/zbxtasks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zbxtasks.h b/include/zbxtasks.h
index d2b409d0752..565d0fd941e 100644
--- a/include/zbxtasks.h
+++ b/include/zbxtasks.h
@@ -47,6 +47,7 @@
/* task data type */
#define ZBX_TM_DATA_TYPE_TEST_ITEM 0
+#define ZBX_TM_DATA_TYPE_DIAGINFO 1
/* the time period after which finished (done/expired) tasks are removed */
#define ZBX_TM_CLEANUP_TASK_AGE SEC_PER_DAY
@@ -149,4 +150,6 @@ void zbx_tm_json_deserialize_tasks(const struct zbx_json_parse *jp, zbx_vector_p
/* separate implementation for proxy and server */
void zbx_tm_get_remote_tasks(zbx_vector_ptr_t *tasks, zbx_uint64_t proxy_hostid);
+int zbx_tm_get_diaginfo(const struct zbx_json_parse *jp, char **info);
+
#endif