summaryrefslogtreecommitdiffstats
path: root/src/zabbix_server/trapper/trapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zabbix_server/trapper/trapper.h')
-rw-r--r--src/zabbix_server/trapper/trapper.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/zabbix_server/trapper/trapper.h b/src/zabbix_server/trapper/trapper.h
index 01a3e91b..5cdc66b5 100644
--- a/src/zabbix_server/trapper/trapper.h
+++ b/src/zabbix_server/trapper/trapper.h
@@ -23,6 +23,20 @@
#include "common.h"
#include "comms.h"
+#define AGENT_VALUE struct zbx_agent_value_t
+
+AGENT_VALUE
+{
+ int clock;
+ char host_name[HOST_HOST_LEN_MAX];
+ char key[ITEM_KEY_LEN_MAX];
+ char *value;
+ int lastlogsize;
+ int timestamp;
+ char *source;
+ int severity;
+};
+
int send_result(zbx_sock_t *sock, int result, char *info);
void child_trapper_main(zbx_process_t p, zbx_sock_t *s);