From babfc128ba128936794c846d5b0eceb7620db2e0 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 10 Feb 2014 14:02:17 +0100 Subject: [PATCH] Livestatus: Set host checks / freshness to 1 for compatibility reasons. Fixes #5629 --- components/livestatus/statustable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/livestatus/statustable.cpp b/components/livestatus/statustable.cpp index a8ef18674..79d8bc7a5 100644 --- a/components/livestatus/statustable.cpp +++ b/components/livestatus/statustable.cpp @@ -71,13 +71,13 @@ void StatusTable::AddColumns(Table *table, const String& prefix, table->AddColumn(prefix + "enable_notifications", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "execute_service_checks", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "accept_passive_service_checks", Column(&Table::OneAccessor, objectAccessor)); - table->AddColumn(prefix + "execute_host_checks", Column(&Table::ZeroAccessor, objectAccessor)); + table->AddColumn(prefix + "execute_host_checks", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "accept_passive_host_checks", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "enable_event_handlers", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "obsess_over_services", Column(&Table::ZeroAccessor, objectAccessor)); table->AddColumn(prefix + "obsess_over_hosts", Column(&Table::ZeroAccessor, objectAccessor)); table->AddColumn(prefix + "check_service_freshness", Column(&Table::OneAccessor, objectAccessor)); - table->AddColumn(prefix + "check_host_freshness", Column(&Table::ZeroAccessor, objectAccessor)); + table->AddColumn(prefix + "check_host_freshness", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "enable_flap_detection", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "process_performance_data", Column(&Table::OneAccessor, objectAccessor)); table->AddColumn(prefix + "check_external_commands", Column(&Table::OneAccessor, objectAccessor));