diff --git a/frontends/php/app/controllers/CControllerLatest.php b/frontends/php/app/controllers/CControllerLatest.php index 5821d5bca5..10f4bdc05f 100644 --- a/frontends/php/app/controllers/CControllerLatest.php +++ b/frontends/php/app/controllers/CControllerLatest.php @@ -124,6 +124,8 @@ abstract class CControllerLatest extends CController { ]); } + $config = select_config(); + $items = API::Item()->get([ 'hostids' => array_keys($hosts), 'output' => ['itemid', 'name', 'type', 'value_type', 'units', 'hostid', 'state', 'valuemapid', 'status', @@ -136,6 +138,7 @@ abstract class CControllerLatest extends CController { 'filter' => [ 'status' => [ITEM_STATUS_ACTIVE] ], + 'limit' => $config['search_limit'] + 1, 'preservekeys' => true ]);