diff --git a/components/livestatus/hoststable.cpp b/components/livestatus/hoststable.cpp index 8a146e3b4..50bf2a81c 100644 --- a/components/livestatus/hoststable.cpp +++ b/components/livestatus/hoststable.cpp @@ -1396,8 +1396,13 @@ Value HostsTable::ParentsAccessor(const Value& row) Value HostsTable::ChildsAccessor(const Value& row) { - /* TODO */ - return Empty; + Array::Ptr childs = boost::make_shared(); + + BOOST_FOREACH(const Host::Ptr& child, static_cast(row)->GetChildHosts()) { + childs->Add(child->GetName()); + } + + return childs; } Value HostsTable::NumServicesAccessor(const Value& row)