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:
authorAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2019-02-04 17:37:54 +0300
committerAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2019-02-04 17:37:54 +0300
commit418ca8707298f7edc9ff561b57bc993163fde267 (patch)
tree24fcb1b02d1be997468c32167e0647111698698d /include/discovery.h
parentd527679e4b1e96f545caf62520251e960cc139df (diff)
........S. [ZBXNEXT-158] changes to have only one transaction per IP during discovery on server and proxy
Diffstat (limited to 'include/discovery.h')
-rw-r--r--include/discovery.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/discovery.h b/include/discovery.h
index 69a89bc7d40..7bc83c122ac 100644
--- a/include/discovery.h
+++ b/include/discovery.h
@@ -24,6 +24,21 @@
#include "zbxjson.h"
#include "comms.h"
+#define MAX_DISCOVERED_VALUE_SIZE 128
+
+typedef struct
+{
+ zbx_uint64_t dcheckid;
+ unsigned short port;
+ char dns[INTERFACE_DNS_LEN_MAX];
+ char value[MAX_DISCOVERED_VALUE_SIZE];
+ int status;
+ time_t itemtime;
+}
+zbx_discovery_checks_t;
+
+void zbx_checks_eval_free(zbx_discovery_checks_t *check);
+
void discovery_update_host(DB_DHOST *dhost, int status, int now);
void discovery_update_service(DB_DRULE *drule, zbx_uint64_t dcheckid, DB_DHOST *dhost,
const char *ip, const char *dns, int port, int status, const char *value, int now);