Module: check_mk
Branch: master
Commit: 9c46325d8fd39d122ecf5d2d88934bfbf6788340
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c46325d8fd39d…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Jul 31 13:19:54 2017 +0200
5022 FIX Fixed timperiod history calculation
The parsing of the monitoring history had a bug, expecting an incorrect
"TIMEPERIOD_TRANSITION:" instead of the correct "TIMERPERIOD
TRANSISION:",
which could lead to incorrect availibility calculations later (when the
Nagios core is used).
Change-Id: Ieea33369fb3997bd31799ec368e9d87a32bef104
---
.werks/5022 | 13 +++++++++++++
livestatus/src/LogEntry.cc | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/5022 b/.werks/5022
new file mode 100644
index 0000000..0662af8
--- /dev/null
+++ b/.werks/5022
@@ -0,0 +1,13 @@
+Title: Fixed timperiod history calculation
+Level: 1
+Component: livestatus
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1501499838
+Class: fix
+
+The parsing of the monitoring history had a bug, expecting an incorrect
+"TIMEPERIOD_TRANSITION:" instead of the correct "TIMERPERIOD
TRANSISION:",
+which could lead to incorrect availibility calculations later (when the
+Nagios core is used).
diff --git a/livestatus/src/LogEntry.cc b/livestatus/src/LogEntry.cc
index 552786e..940ca08 100644
--- a/livestatus/src/LogEntry.cc
+++ b/livestatus/src/LogEntry.cc
@@ -218,7 +218,7 @@ std::vector<LogEntry::LogDef> LogEntry::log_definitions //
NOLINT
LogEntryType::flapping_service,
{Param::HostName, Param::SvcDesc, Param::StateType, Param::Comment}},
////////////////
- LogDef{"TIMEPERIOD_TRANSITION: ",
+ LogDef{"TIMEPERIOD TRANSITION: ",
Class::state,
LogEntryType::timeperiod_transition,
{}},