blob: 7725268ab1f02dcc384134e1698540e68ddbf844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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');
}
}
|