mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-03-07 07:44:16 -05:00
24 lines
500 B
PHP
24 lines
500 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Eagle\Controllers;
|
|
|
|
use Icinga\Module\Eagle\Model\Host;
|
|
use Icinga\Module\Eagle\Web\Controller;
|
|
use Icinga\Module\Eagle\Widget\HostList;
|
|
|
|
class HostsController extends Controller
|
|
{
|
|
public function indexAction()
|
|
{
|
|
$this->setTitle($this->translate('Hosts'));
|
|
|
|
$db = $this->getDb();
|
|
|
|
$hosts = Host::on($db)->with('state');
|
|
$hosts->limit(25);
|
|
|
|
$hostList = new HostList($hosts);
|
|
|
|
$this->addContent($hostList);
|
|
}
|
|
}
|