diff --git a/modules/monitoring/application/controllers/TacticalController.php b/modules/monitoring/application/controllers/TacticalController.php index 6f9ae7fef..438d019e1 100644 --- a/modules/monitoring/application/controllers/TacticalController.php +++ b/modules/monitoring/application/controllers/TacticalController.php @@ -62,6 +62,10 @@ class TacticalController extends Controller $this->handleFormatRequest($stats); $summary = $stats->fetchRow(); + // Correct pending counts. Done here instead of in the query for compatibility reasons. + $summary->hosts_pending -= $summary->hosts_not_checked; + $summary->services_pending -= $summary->services_not_checked; + $hostSummaryChart = new Donut(); $hostSummaryChart ->addSlice($summary->hosts_up, array('class' => 'slice-state-ok'))