Module: check_mk
Branch: master
Commit: 6b57bc2d11f5fa28285a082cee1dd373a308b4a5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6b57bc2d11f5fa…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Apr 16 10:13:05 2019 +0200
Thread an addition long output field from the monitoring log through to Livestatus.
This adds a "long_plugin_output" column to the "log" table and a
"long_log_output" column to the "statehist" table. These columns are
filled
from an additional field at the end of the following monitoring log entries:
INITIAL HOST STATE
INITIAL SERVICE STATE
CURRENT HOST STATE
CURRENT SERVICE STATE
HOST ALERT
SERVICE ALERT
HOST NOTIFICATION
SERVICE NOTIFICATION
Line breaks in the long output are represented as "\n" (i.e. a backslash
followed by the letter "n") in the monitoring log. This is the same
encoding as is used for e.g. the UPDATE_SHADOW_HOST_STATE command.
CMK-1364
Change-Id: Idbaf12ed0d50611a9b9d70b6ad60f15310d3c4f4
---
livestatus/src/HostServiceState.h | 1 +
livestatus/src/LogEntry.cc | 58 ++++++++++++++++++++++++-------------
livestatus/src/LogEntry.h | 7 +++--
livestatus/src/StringUtils.cc | 9 ++++++
livestatus/src/StringUtils.h | 3 ++
livestatus/src/TableLog.cc | 5 ++++
livestatus/src/TableStateHistory.cc | 17 ++++++-----
7 files changed, 71 insertions(+), 29 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=6b57bc2d11…