Module: check_mk
Branch: master
Commit: d4235d710569f44caf0cd2699791952bedb8cd18
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d4235d710569f4…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Oct 25 12:37:25 2013 +0200
table statehist: no longer computes an unmonitored
state for hosts and services in certain instances
---
ChangeLog | 3 +++
livestatus/src/LogEntry.h | 1 +
livestatus/src/TableStateHistory.cc | 2 +-
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b34bfca..55101fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -109,6 +109,9 @@
Livestatus:
* Removed "livecheck". It never was really stable. Nagios4 has something
similar built in. And also the Check_MK Micro Core.
+ * table statehist: no longer computes an unmonitored state for hosts and
+ services on certain instances.
+ (showed up as no hosts/services in the multisite gui)
1.2.3i4:
Core:
diff --git a/livestatus/src/LogEntry.h b/livestatus/src/LogEntry.h
index b744b64..1a3d18c 100644
--- a/livestatus/src/LogEntry.h
+++ b/livestatus/src/LogEntry.h
@@ -33,6 +33,7 @@
#define LOGCLASS_COMMAND 5 // external commands
#define LOGCLASS_STATE 6 // initial or current states
#define LOGCLASS_TEXT 7 // specific text passages. e.g "logging initial
states"
+ // TODO: This LOGCLASS sets different logclasses on
match -> fix this
#define LOGCLASS_INVALID -1 // never stored
#define LOGCLASS_ALL 0xffff
diff --git a/livestatus/src/TableStateHistory.cc b/livestatus/src/TableStateHistory.cc
index 4848bd5..6a6d93c 100644
--- a/livestatus/src/TableStateHistory.cc
+++ b/livestatus/src/TableStateHistory.cc
@@ -115,7 +115,7 @@ struct HostServiceState {
extern Store *g_store;
-#define CLASSMASK_STATEHIST 0xC2
+#define CLASSMASK_STATEHIST 0xC6
// Debug information
int total_update_calls = 0;