From d1e61a1826f5dc02dd6c079a1cf9ca2a67e7b153 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 22 Oct 2013 12:24:46 +0000 Subject: [PATCH] Skip web stuff when registering monitoring module on CLI --- modules/monitoring/register.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/monitoring/register.php b/modules/monitoring/register.php index 7b3fb7cf5..29022fe9a 100644 --- a/modules/monitoring/register.php +++ b/modules/monitoring/register.php @@ -5,6 +5,10 @@ use Icinga\Application\Icinga; use Icinga\Module\Monitoring\DataView\StatusSummary as StatusSummaryView; use Icinga\Web\Topbar; +if (Icinga::app()->isCli()) { + return; +} + $request = Icinga::app()->getFrontController()->getRequest(); if (AuthManager::getInstance()->isAuthenticated()) {