Fix wrong column in Livestatus hostgroups table

fixes #4983
This commit is contained in:
Michael Friedrich 2017-02-08 13:00:51 +01:00
parent 2ac0c024cd
commit e975c55fbd
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ void HostGroupsTable::AddColumns(Table *table, const String& prefix,
table->AddColumn(prefix + "num_hosts_down", Column(&HostGroupsTable::NumHostsDownAccessor, objectAccessor));
table->AddColumn(prefix + "num_hosts_unreach", Column(&HostGroupsTable::NumHostsUnreachAccessor, objectAccessor));
table->AddColumn(prefix + "num_services", Column(&HostGroupsTable::NumServicesAccessor, objectAccessor));
table->AddColumn(prefix + "worst_services_state", Column(&HostGroupsTable::WorstServicesStateAccessor, objectAccessor));
table->AddColumn(prefix + "worst_service_state", Column(&HostGroupsTable::WorstServiceStateAccessor, objectAccessor));
table->AddColumn(prefix + "num_services_pending", Column(&HostGroupsTable::NumServicesPendingAccessor, objectAccessor));
table->AddColumn(prefix + "num_services_ok", Column(&HostGroupsTable::NumServicesOkAccessor, objectAccessor));
table->AddColumn(prefix + "num_services_warn", Column(&HostGroupsTable::NumServicesWarnAccessor, objectAccessor));
@ -278,7 +278,7 @@ Value HostGroupsTable::NumServicesAccessor(const Value& row)
return num_services;
}
Value HostGroupsTable::WorstServicesStateAccessor(const Value& row)
Value HostGroupsTable::WorstServiceStateAccessor(const Value& row)
{
HostGroup::Ptr hg = static_cast<HostGroup::Ptr>(row);

View File

@ -60,7 +60,7 @@ protected:
static Value NumHostsDownAccessor(const Value& row);
static Value NumHostsUnreachAccessor(const Value& row);
static Value NumServicesAccessor(const Value& row);
static Value WorstServicesStateAccessor(const Value& row);
static Value WorstServiceStateAccessor(const Value& row);
static Value NumServicesPendingAccessor(const Value& row);
static Value NumServicesOkAccessor(const Value& row);
static Value NumServicesWarnAccessor(const Value& row);