mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
parent
83b5b27803
commit
d3e55ed5c9
30
library/Director/Dashboard/Dashlet/InfrastructureDashlet.php
Normal file
30
library/Director/Dashboard/Dashlet/InfrastructureDashlet.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
||||
|
||||
class InfrastructureDashlet extends Dashlet
|
||||
{
|
||||
protected $icon = 'cloud';
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->translate('Icinga Infrastructure');
|
||||
}
|
||||
|
||||
public function getEscapedSummary()
|
||||
{
|
||||
return $this->translate(
|
||||
'Manage your Icinga 2 infrastructure: Masters, Zones, Satellites and more'
|
||||
);
|
||||
}
|
||||
|
||||
public function getUrl()
|
||||
{
|
||||
return 'director/dashboard?name=infrastructure';
|
||||
}
|
||||
|
||||
public function listRequiredPermissions()
|
||||
{
|
||||
return array('director/admin');
|
||||
}
|
||||
}
|
30
library/Director/Dashboard/Dashlet/KickstartDashlet.php
Normal file
30
library/Director/Dashboard/Dashlet/KickstartDashlet.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
||||
|
||||
class KickstartDashlet extends Dashlet
|
||||
{
|
||||
protected $icon = 'gauge';
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->translate('Kickstart Helper');
|
||||
}
|
||||
|
||||
public function getEscapedSummary()
|
||||
{
|
||||
return $this->translate(
|
||||
'This syncronizes Icinga Director to your Icinga 2 infrastructure'
|
||||
);
|
||||
}
|
||||
|
||||
public function getUrl()
|
||||
{
|
||||
return 'director/kickstart';
|
||||
}
|
||||
|
||||
public function listRequiredPermissions()
|
||||
{
|
||||
return array('director/admin');
|
||||
}
|
||||
}
|
@ -7,7 +7,6 @@ class DataDashboard extends Dashboard
|
||||
protected $dashletNames = array(
|
||||
'ImportSource',
|
||||
'Sync',
|
||||
'Job',
|
||||
'Datafield',
|
||||
'Datalist',
|
||||
);
|
||||
|
@ -7,9 +7,8 @@ class DeploymentDashboard extends Dashboard
|
||||
protected $dashletNames = array(
|
||||
'Deployment',
|
||||
'ActivityLog',
|
||||
'ApiUserObject',
|
||||
'EndpointObject',
|
||||
'ZoneObject',
|
||||
'Job',
|
||||
'Infrastructure',
|
||||
);
|
||||
|
||||
public function getTitle()
|
||||
|
32
library/Director/Dashboard/InfrastructureDashboard.php
Normal file
32
library/Director/Dashboard/InfrastructureDashboard.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Dashboard;
|
||||
|
||||
class InfrastructureDashboard extends Dashboard
|
||||
{
|
||||
protected $dashletNames = array(
|
||||
'Kickstart',
|
||||
'ApiUserObject',
|
||||
'EndpointObject',
|
||||
'ZoneObject',
|
||||
);
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->translate('Manage your Icinga Infrastructure');
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->translate(
|
||||
'This is where you manage your Icinga 2 infrastructure. When adding'
|
||||
. ' a new Icinga Master or Satellite please re-run the Kickstart'
|
||||
. ' Helper once.'
|
||||
. "\n\n"
|
||||
. 'When you feel the desire to manually create Zone or Endpoint'
|
||||
. ' objects please rethink this twice. Doing so is mostly the wrong'
|
||||
. ' way, might lead to a dead end, requiring quite some effort to'
|
||||
. ' clean up the whole mess afterwards.'
|
||||
);
|
||||
}
|
||||
}
|
@ -9,7 +9,6 @@ class ObjectsDashboard extends Dashboard
|
||||
'ServiceObject',
|
||||
'CommandObject',
|
||||
'Notifications',
|
||||
'TimeperiodObject',
|
||||
);
|
||||
|
||||
public function getTitle()
|
||||
|
Loading…
x
Reference in New Issue
Block a user