summaryrefslogtreecommitdiffstats
path: root/include/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/db.h')
-rw-r--r--include/db.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/db.h b/include/db.h
index 809464e8..f0055756 100644
--- a/include/db.h
+++ b/include/db.h
@@ -45,6 +45,8 @@ extern int CONFIG_MASTER_NODEID;
#define DB_ACTION struct zbx_action_type
#define DB_ALERT struct zbx_alert_type
#define DB_CONDITION struct zbx_condition_type
+#define DB_DRULE struct zbx_drule_type
+#define DB_DCHECK struct zbx_dcheck_type
#define DB_EVENT struct zbx_event_type
#define DB_FUNCTION struct zbx_function_type
#define DB_GRAPH struct zbx_graph_type
@@ -107,6 +109,30 @@ extern int CONFIG_MASTER_NODEID;
#define ZBX_MAX_SQL_LEN 65535
+DB_DRULE
+{
+ zbx_uint64_t druleid;
+ char *ipfirst;
+ char *iplast;
+ int delay;
+ int nextcheck;
+ char *name;
+ int status;
+ int upevent;
+ int downevent;
+ int svcupevent;
+ int svndownevent;
+};
+
+DB_DCHECK
+{
+ zbx_uint64_t dcheckid;
+ zbx_uint64_t druleid;
+ int type;
+ char *ports;
+ int status;
+};
+
DB_EVENT
{
zbx_uint64_t eventid;