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