summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-27 18:14:42 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-27 18:14:42 +0000
commite31d2065201b0ee2c8e633d582a237da0e97797b (patch)
treec6cf1352f4a6238a8044a40de79f395425b3a00d /include
parent3fb64e50dd20ea387477a6113b98e66d731d128d (diff)
- added generation of service up/down events (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3944 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/db.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/db.h b/include/db.h
index 46b1910f..6234077d 100644
--- a/include/db.h
+++ b/include/db.h
@@ -47,6 +47,7 @@ extern int CONFIG_MASTER_NODEID;
#define DB_CONDITION struct zbx_condition_type
#define DB_DHOST struct zbx_dhost_type
#define DB_DRULE struct zbx_drule_type
+#define DB_DSERVICE struct zbx_dservice_type
#define DB_DCHECK struct zbx_dcheck_type
#define DB_EVENT struct zbx_event_type
#define DB_FUNCTION struct zbx_function_type
@@ -123,7 +124,7 @@ DB_DRULE
int upevent;
int downevent;
int svcupevent;
- int svndownevent;
+ int svcdownevent;
};
DB_DCHECK
@@ -146,6 +147,18 @@ DB_DHOST
int eventsent;
};
+DB_DSERVICE
+{
+ zbx_uint64_t dserviceid;
+ zbx_uint64_t dhostid;
+ int type;
+ int port;
+ int status;
+ int lastup;
+ int lastdown;
+ int eventsent;
+};
+
DB_EVENT
{
zbx_uint64_t eventid;