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>()) {
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;
tempstatusfp << std::fixed;
DumpHostStatus(tempstatusfp, host);
statusfp << tempstatusfp.str();
- }
- BOOST_FOREACH(const Service::Ptr& service, DynamicType::GetObjects<Service>()) {
- std::ostringstream tempstatusfp;
- tempstatusfp << std::fixed;
- DumpServiceStatus(tempstatusfp, service);
- statusfp << tempstatusfp.str();
+ BOOST_FOREACH(const Service::Ptr& service, host->GetServices()) {
+ std::ostringstream tempstatusfp;
+ tempstatusfp << std::fixed;
+ DumpServiceStatus(tempstatusfp, service);
+ statusfp << tempstatusfp.str();
+ }
}
statusfp.close();