summaryrefslogtreecommitdiffstats
path: root/src/rrd.c
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2016-08-25 19:39:08 +0300
committerCosta Tsaousis <costa@tsaousis.gr>2016-08-25 19:39:08 +0300
commit430affeaf53da33214f4e6eec7db83f8239d1357 (patch)
treec8263cbc4b4f599c5ae9fe47023e6aed354355f6 /src/rrd.c
parent3d2ff94d4ef748f80a83a4a90fc35b852f31a4bd (diff)
API for getting alarm log ready
Diffstat (limited to 'src/rrd.c')
-rw-r--r--src/rrd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rrd.c b/src/rrd.c
index 948e8dedf6..61f99eda8e 100644
--- a/src/rrd.c
+++ b/src/rrd.c
@@ -40,6 +40,13 @@ RRDHOST localhost = {
.variables_root_index = {
{ NULL, rrdvar_compare },
AVL_LOCK_INITIALIZER
+ },
+ .health_log = {
+ .nextid = 1,
+ .count = 0,
+ .max = 1000,
+ .alarms = NULL,
+ .alarm_log_rwlock = PTHREAD_RWLOCK_INITIALIZER
}
};