diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:46:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:46:04 +0000 |
commit | b880345a8a897b3fe600ef94a0fee5bb5f2f8558 (patch) | |
tree | fdc7483ceea33373b6cfa4a8c20c11cb02a2676a /application/controllers/IndexController.php | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-pnp-b880345a8a897b3fe600ef94a0fee5bb5f2f8558.tar.xz icingaweb2-module-pnp-b880345a8a897b3fe600ef94a0fee5bb5f2f8558.zip |
Adding upstream version 1.1.0.upstream/1.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/controllers/IndexController.php')
-rw-r--r-- | application/controllers/IndexController.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php new file mode 100644 index 0000000..7725268 --- /dev/null +++ b/application/controllers/IndexController.php @@ -0,0 +1,25 @@ +<?php +/* Icinga Web 2 | (c) 2013-2017 Icinga Development Team | GPLv2+ */ + +namespace Icinga\Module\Pnp\Controllers; + +use Icinga\Module\Pnp\Web\Controller; + +class IndexController extends Controller +{ + public function indexAction() + { + $this->getTabs()->activate('pnp'); + + $defaultQuery = $this->Config()->get('pnp4nagios', 'default_query', 'host=.pnp-internal&srv=runtime'); + + $this->view->title = 'PNP'; + $this->view->url = sprintf( + '%s/graph?%s', + $this->getBaseUrl(), + $defaultQuery + ); + + $this->setViewScript('index/iframe'); + } +} |