2015-04-24 14:27:22 +02:00
|
|
|
<?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');
|
|
|
|
}
|
|
|
|
|
2015-06-02 10:49:31 +02:00
|
|
|
public function hostgroupsAction()
|
|
|
|
{
|
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add Hostgroup'),
|
|
|
|
'director/object/hostgroup'
|
|
|
|
);
|
|
|
|
$this->view->title = $this->translate('Icinga Hostgroups');
|
2015-06-12 11:51:12 +02:00
|
|
|
$this->view->table = $this->loadTable('icingaHostGroup')->setConnection($this->db());
|
2015-06-02 10:49:31 +02:00
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-06-02 17:37:54 +02:00
|
|
|
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');
|
2015-06-12 11:51:12 +02:00
|
|
|
$this->view->table = $this->loadTable('icingaHostGroupMember')->setConnection($this->db());
|
2015-06-02 17:37:54 +02:00
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-06-03 12:05:50 +02:00
|
|
|
public function hostvarsAction()
|
|
|
|
{
|
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add Host Variable'),
|
|
|
|
'director/object/hostvar'
|
|
|
|
);
|
|
|
|
$this->view->title = $this->translate('Icinga Host Variables');
|
|
|
|
$this->view->table = $this->loadTable('icingaHostVar')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-06-03 13:02:44 +02:00
|
|
|
public function timeperiodsAction()
|
|
|
|
{
|
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add Timeperiod'),
|
|
|
|
'director/object/timeperiod'
|
|
|
|
);
|
|
|
|
$this->view->title = $this->translate('Icinga Timeperiods');
|
2015-06-09 10:35:02 +02:00
|
|
|
$this->view->table = $this->loadTable('icingaTimePeriod')->setConnection($this->db());
|
2015-06-03 13:02:44 +02:00
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-06-03 14:34:54 +02:00
|
|
|
public function servicesAction()
|
|
|
|
{
|
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add Service'),
|
|
|
|
'director/object/service'
|
|
|
|
);
|
|
|
|
$this->view->title = $this->translate('Icinga Services');
|
|
|
|
$this->view->table = $this->loadTable('icingaService')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-06-02 11:56:42 +02:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2015-06-03 14:59:29 +02:00
|
|
|
public function servicegroupmembersAction()
|
|
|
|
{
|
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add Servicegroup Member'),
|
|
|
|
'director/object/servicegroupmember'
|
|
|
|
);
|
|
|
|
$this->view->title = $this->translate('Icinga Servicegroup Members');
|
|
|
|
$this->view->table = $this->loadTable('icingaServicegroupMember')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-06-09 11:55:48 +02:00
|
|
|
public function servicevarsAction()
|
|
|
|
{
|
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add Service Variable'),
|
|
|
|
'director/object/servicevar'
|
|
|
|
);
|
|
|
|
$this->view->title = $this->translate('Icinga Service Variables');
|
|
|
|
$this->view->table = $this->loadTable('icingaServiceVar')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-04-24 14:27:22 +02:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2015-06-01 16:29:32 +02:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2015-06-01 17:00:02 +02:00
|
|
|
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');
|
2015-06-02 14:19:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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');
|
2015-06-01 17:00:02 +02:00
|
|
|
}
|
|
|
|
|
2015-06-01 17:26:09 +02:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2015-04-24 14:27:22 +02:00
|
|
|
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');
|
|
|
|
}
|
2015-06-01 12:18:13 +02:00
|
|
|
|
|
|
|
public function activitylogAction()
|
|
|
|
{
|
|
|
|
$this->view->title = $this->translate('Activity Log');
|
|
|
|
$this->view->table = $this->loadTable('activityLog')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
2015-04-24 14:27:22 +02:00
|
|
|
}
|