Skip web stuff when registering monitoring module on CLI

This commit is contained in:
Thomas Gelf 2013-10-22 12:24:46 +00:00
parent b6e7d5c4c1
commit d1e61a1826
1 changed files with 4 additions and 0 deletions

View File

@ -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()) {