mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
0623404963
commit
a077472226
@ -27,6 +27,18 @@ class Monitoring_HostsController extends Controller
|
|||||||
$hostList = new HostList($this->backend);
|
$hostList = new HostList($this->backend);
|
||||||
$hostList->setFilter(Filter::fromQueryString((string) $this->params));
|
$hostList->setFilter(Filter::fromQueryString((string) $this->params));
|
||||||
$this->hostList = $hostList;
|
$this->hostList = $hostList;
|
||||||
|
$this->getTabs()->add(
|
||||||
|
'show',
|
||||||
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translate('Show summarized information for %u hosts'),
|
||||||
|
count($this->hostList)
|
||||||
|
),
|
||||||
|
'label' => $this->translate('Hosts'),
|
||||||
|
'url' => Url::fromRequest(),
|
||||||
|
'icon' => 'host'
|
||||||
|
)
|
||||||
|
)->activate('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function handleCommandForm(ObjectsCommandForm $form)
|
protected function handleCommandForm(ObjectsCommandForm $form)
|
||||||
@ -69,18 +81,6 @@ class Monitoring_HostsController extends Controller
|
|||||||
|
|
||||||
public function showAction()
|
public function showAction()
|
||||||
{
|
{
|
||||||
$this->getTabs()->add(
|
|
||||||
'show',
|
|
||||||
array(
|
|
||||||
'title' => sprintf(
|
|
||||||
$this->translate('Show summarized information for %u hosts'),
|
|
||||||
count($this->hostList)
|
|
||||||
),
|
|
||||||
'label' => $this->translate('Hosts'),
|
|
||||||
'url' => Url::fromRequest(),
|
|
||||||
'icon' => 'host'
|
|
||||||
)
|
|
||||||
)->activate('show');
|
|
||||||
$this->setAutorefreshInterval(15);
|
$this->setAutorefreshInterval(15);
|
||||||
$checkNowForm = new CheckNowCommandForm();
|
$checkNowForm = new CheckNowCommandForm();
|
||||||
$checkNowForm
|
$checkNowForm
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm;
|
use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm;
|
||||||
use Icinga\Web\Url;
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user