From d574a26db3ad901ebfb18cc1f329d835c597c603 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 20 Aug 2013 16:19:34 +0200 Subject: [PATCH] Monitoring: Fix nonexistent Icinga\Backend usage in CommandController --- .../monitoring/application/controllers/CommandController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/controllers/CommandController.php b/modules/monitoring/application/controllers/CommandController.php index 68c3c153b..3f243d7a7 100644 --- a/modules/monitoring/application/controllers/CommandController.php +++ b/modules/monitoring/application/controllers/CommandController.php @@ -29,13 +29,12 @@ use Icinga\Application\Benchmark; use Icinga\Application\Icinga; -use Icinga\Backend; +use \Monitoring\Backend; use \Icinga\Application\Config; use Icinga\Application\Logger; use Icinga\Authentication\Manager; use Icinga\Web\Form; use Icinga\Web\Controller\ModuleActionController; -use Icinga\Protocol\Commandpipe\Comment; use Icinga\Protocol\Commandpipe\CommandPipe; use Icinga\Exception\ConfigurationError; use Icinga\Exception\MissingParameterException; @@ -172,7 +171,7 @@ class Monitoring_CommandController extends ModuleActionController $fields[] = "service_state"; } ; - $query = Backend::getInstance()->select()->from("status", $fields); + $query = Backend::getInstance($this->_getParam('backend'))->select()->from("status", $fields); return $query->applyFilters($filter)->fetchAll(); } catch (\Exception $e) { Logger::error(