]> granicus.if.org Git - icinga2/commit
Fix multi line handling for compat check results
authorMarkus Frosch <markus@lazyfrosch.de>
Wed, 27 May 2015 14:05:10 +0000 (16:05 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 15 Jun 2015 15:19:28 +0000 (17:19 +0200)
commit47c8b5e347c813ea9879f898e9387d9bab623ef2
treec396922cd87a27acd68b97983415a0783f30a4ab
parentcfbe82d841b426f990bf14104697a75052689a58
Fix multi line handling for compat check results

When a multi line result is submitted via the command pipe, any multi line
output is escaped to a actual string '\n', because any external command only
can be a single line.

Example:
  [1432735140] PROCESS_SERVICE_CHECK_RESULT;host;service;3;Test1\nTest2|test=1

We need to unescape this values, just like we use to escape multi line output
for IDO and status.dat.

fixes #9324

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
lib/compat/checkresultreader.cpp
lib/icinga/compatutility.cpp
lib/icinga/compatutility.hpp
lib/icinga/externalcommandprocessor.cpp