mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
parent
b0ac607caf
commit
fe35791b1b
@ -32,6 +32,7 @@
|
|||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/tuple/tuple.hpp>
|
#include <boost/tuple/tuple.hpp>
|
||||||
#include <boost/exception/diagnostic_information.hpp>
|
#include <boost/exception/diagnostic_information.hpp>
|
||||||
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
@ -343,8 +344,12 @@ void CompatComponent::DumpServiceStatusAttrs(std::ostream& fp, const Service::Pt
|
|||||||
|
|
||||||
if (cr) {
|
if (cr) {
|
||||||
output = cr->Get("output");
|
output = cr->Get("output");
|
||||||
|
boost::algorithm::replace_all(output, "\n", "\\n");
|
||||||
|
|
||||||
schedule_end = cr->Get("schedule_end");
|
schedule_end = cr->Get("schedule_end");
|
||||||
|
|
||||||
perfdata = cr->Get("performance_data_raw");
|
perfdata = cr->Get("performance_data_raw");
|
||||||
|
boost::algorithm::replace_all(perfdata, "\n", "\\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
int state = service->GetState();
|
int state = service->GetState();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user