124 lines
4.2 KiB
PHP
124 lines
4.2 KiB
PHP
<?php
|
|
|
|
use Icinga\Module\Director\ActionController;
|
|
|
|
class Director_ListController extends ActionController
|
|
{
|
|
public function hostsAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Host'),
|
|
'director/object/host'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Hosts');
|
|
$this->view->table = $this->loadTable('icingaHost')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function hostgroupsAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Hostgroup'),
|
|
'director/object/hostgroup'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Hostgroups');
|
|
$this->view->table = $this->loadTable('icingaHostgroup')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function hostgroupmembersAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Hostgroup Member'),
|
|
'director/object/hostgroupmember'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Hostgroup Members');
|
|
$this->view->table = $this->loadTable('icingaHostgroupMember')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function servicegroupsAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Servicegroup'),
|
|
'director/object/servicegroup'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Servicegroups');
|
|
$this->view->table = $this->loadTable('icingaServicegroup')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function commandsAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Command'),
|
|
'director/object/command'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Commands');
|
|
$this->view->table = $this->loadTable('icingaCommand')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function commandargumentsAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Command Argument'),
|
|
'director/object/commandargument'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Command Arguments');
|
|
$this->view->table = $this->loadTable('icingaCommandArgument')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function usersAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add User'),
|
|
'director/object/user'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Users');
|
|
$this->view->table = $this->loadTable('icingaUser')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function usergroupsAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Usergroup'),
|
|
'director/object/usergroup'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Usergroups');
|
|
$this->view->table = $this->loadTable('icingaUsergroup')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function endpointsAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Endpoint'),
|
|
'director/object/endpoint'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Endpoints');
|
|
$this->view->table = $this->loadTable('icingaEndpoint')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function zonesAction()
|
|
{
|
|
$this->view->addLink = $this->view->qlink(
|
|
$this->translate('Add Zone'),
|
|
'director/object/zone'
|
|
);
|
|
$this->view->title = $this->translate('Icinga Zones');
|
|
$this->view->table = $this->loadTable('icingaZone')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
|
|
public function activitylogAction()
|
|
{
|
|
$this->view->title = $this->translate('Activity Log');
|
|
$this->view->table = $this->loadTable('activityLog')->setConnection($this->db());
|
|
$this->render('table');
|
|
}
|
|
}
|