mirror of https://github.com/Icinga/icinga2.git
parent
40b88422d2
commit
cb85a5c696
|
@ -553,6 +553,13 @@ void StatusDataWriter::UpdateObjectsCache(void)
|
|||
tempobjectfp << std::fixed;
|
||||
DumpHostObject(tempobjectfp, host);
|
||||
objectfp << tempobjectfp.str();
|
||||
|
||||
BOOST_FOREACH(const Service::Ptr& service, host->GetServices()) {
|
||||
std::ostringstream tempobjectfp;
|
||||
tempobjectfp << std::fixed;
|
||||
DumpServiceObject(tempobjectfp, service);
|
||||
objectfp << tempobjectfp.str();
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const HostGroup::Ptr& hg, DynamicType::GetObjects<HostGroup>()) {
|
||||
|
@ -572,13 +579,6 @@ void StatusDataWriter::UpdateObjectsCache(void)
|
|||
objectfp << tempobjectfp.str();
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const Service::Ptr& service, DynamicType::GetObjects<Service>()) {
|
||||
std::ostringstream tempobjectfp;
|
||||
tempobjectfp << std::fixed;
|
||||
DumpServiceObject(tempobjectfp, service);
|
||||
objectfp << tempobjectfp.str();
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const ServiceGroup::Ptr& sg, DynamicType::GetObjects<ServiceGroup>()) {
|
||||
std::ostringstream tempobjectfp;
|
||||
tempobjectfp << std::fixed;
|
||||
|
@ -742,14 +742,14 @@ void StatusDataWriter::StatusTimerHandler(void)
|
|||
tempstatusfp << std::fixed;
|
||||
DumpHostStatus(tempstatusfp, host);
|
||||
statusfp << tempstatusfp.str();
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const Service::Ptr& service, DynamicType::GetObjects<Service>()) {
|
||||
BOOST_FOREACH(const Service::Ptr& service, host->GetServices()) {
|
||||
std::ostringstream tempstatusfp;
|
||||
tempstatusfp << std::fixed;
|
||||
DumpServiceStatus(tempstatusfp, service);
|
||||
statusfp << tempstatusfp.str();
|
||||
}
|
||||
}
|
||||
|
||||
statusfp.close();
|
||||
|
||||
|
|
Loading…
Reference in New Issue