diff --git a/application/controllers/CommentController.php b/application/controllers/CommentController.php index 4a68ddaf..641530b9 100644 --- a/application/controllers/CommentController.php +++ b/application/controllers/CommentController.php @@ -1,15 +1,15 @@ menuSection(N_('Icinga DB'), [ @@ -9,43 +9,43 @@ namespace Icinga\Module\Eagle ]); $section->add(N_('Hosts'), [ - 'url' => 'eagle/hosts', + 'url' => 'icingadb/hosts', 'priority' => 10 ]); $section->add(N_('Services'), [ - 'url' => 'eagle/services', + 'url' => 'icingadb/services', 'priority' => 20 ]); $section->add(N_('Downtimes'), [ - 'url' => 'eagle/downtimes', + 'url' => 'icingadb/downtimes', 'priority' => 30 ]); $section->add(N_('Comments'), [ - 'url' => 'eagle/comments', + 'url' => 'icingadb/comments', 'priority' => 40 ]); $section->add(N_('Notifications'), [ - 'url' => 'eagle/notifications', + 'url' => 'icingadb/notifications', 'priority' => 50 ]); $section->add(N_('Users'), [ - 'url' => 'eagle/users', + 'url' => 'icingadb/users', 'priority' => 60 ]); $section->add(N_('User Groups'), [ - 'url' => 'eagle/usergroups', + 'url' => 'icingadb/usergroups', 'priority' => 70 ]); $section->add(N_('Host Groups'), [ - 'url' => 'eagle/hostgroups', + 'url' => 'icingadb/hostgroups', 'priority' => 80 ]); $section->add(N_('Service Groups'), [ - 'url' => 'eagle/servicegroups', + 'url' => 'icingadb/servicegroups', 'priority' => 80 ]); $section->add(N_('History'), [ - 'url' => 'eagle/history', + 'url' => 'icingadb/history', 'priority' => 90 ]); diff --git a/library/Icingadb/Common/BaseTableRowItem.php b/library/Icingadb/Common/BaseTableRowItem.php index efa3753e..98ffe5da 100644 --- a/library/Icingadb/Common/BaseTableRowItem.php +++ b/library/Icingadb/Common/BaseTableRowItem.php @@ -1,6 +1,6 @@ $host->name]); + return Url::fromPath('icingadb/host/acknowledge', ['name' => $host->name]); } public static function addComment(Host $host) { - return Url::fromPath('eagle/host/add-comment', ['name' => $host->name]); + return Url::fromPath('icingadb/host/add-comment', ['name' => $host->name]); } public static function checkNow(Host $host) { - return Url::fromPath('eagle/host/check-now', ['name' => $host->name]); + return Url::fromPath('icingadb/host/check-now', ['name' => $host->name]); } public static function comments(Host $host) { - return Url::fromPath('eagle/host/comments', ['name' => $host->name]); + return Url::fromPath('icingadb/host/comments', ['name' => $host->name]); } public static function downtimes(Host $host) { - return Url::fromPath('eagle/host/downtimes', ['name' => $host->name]); + return Url::fromPath('icingadb/host/downtimes', ['name' => $host->name]); } public static function history(Host $host) { - return Url::fromPath('eagle/host/history', ['name' => $host->name]); + return Url::fromPath('icingadb/host/history', ['name' => $host->name]); } public static function removeAcknowledgement(Host $host) { - return Url::fromPath('eagle/host/remove-acknowledgement', ['name' => $host->name]); + return Url::fromPath('icingadb/host/remove-acknowledgement', ['name' => $host->name]); } public static function removeComment(Host $host) { - return Url::fromPath('eagle/host/delete-comment', ['name' => $host->name]); + return Url::fromPath('icingadb/host/delete-comment', ['name' => $host->name]); } public static function scheduleDowntime(Host $host) { - return Url::fromPath('eagle/host/schedule-downtime', ['name' => $host->name]); + return Url::fromPath('icingadb/host/schedule-downtime', ['name' => $host->name]); } public static function sendCustomNotification(Host $host) { - return Url::fromPath('eagle/host/send-custom-notification', ['name' => $host->name]); + return Url::fromPath('icingadb/host/send-custom-notification', ['name' => $host->name]); } public static function services(Host $host) { - return Url::fromPath('eagle/host/services', ['name' => $host->name]); + return Url::fromPath('icingadb/host/services', ['name' => $host->name]); } } diff --git a/library/Icingadb/Common/HostStates.php b/library/Icingadb/Common/HostStates.php index 9fef8e94..5202e0d6 100644 --- a/library/Icingadb/Common/HostStates.php +++ b/library/Icingadb/Common/HostStates.php @@ -1,6 +1,6 @@ $comment->name]); + return Url::fromPath('icingadb/comment', ['name' => $comment->name]); } public static function comments() { - return Url::fromPath('eagle/comments'); + return Url::fromPath('icingadb/comments'); } public static function host(Host $host) { - return Url::fromPath('eagle/host', ['name' => $host->name]); + return Url::fromPath('icingadb/host', ['name' => $host->name]); } public static function hostgroup($hostgroup) { - return Url::fromPath('eagle/hostgroup', ['name' => $hostgroup->name]); + return Url::fromPath('icingadb/hostgroup', ['name' => $hostgroup->name]); } public static function service(Service $service, Host $host) { - return Url::fromPath('eagle/service', ['name' => $service->name, 'host.name' => $host->name]); + return Url::fromPath('icingadb/service', ['name' => $service->name, 'host.name' => $host->name]); } public static function servicegroup($servicegroup) { - return Url::fromPath('eagle/servicegroup', ['name' => $servicegroup->name]); + return Url::fromPath('icingadb/servicegroup', ['name' => $servicegroup->name]); } public static function user(User $user) { - return Url::fromPath('eagle/user', ['name' => $user->name]); + return Url::fromPath('icingadb/user', ['name' => $user->name]); } public static function usergroup(Usergroup $usergroup) { - return Url::fromPath('eagle/usergroup', ['name' => $usergroup->name]); + return Url::fromPath('icingadb/usergroup', ['name' => $usergroup->name]); } } diff --git a/library/Icingadb/Common/ListItemCommonLayout.php b/library/Icingadb/Common/ListItemCommonLayout.php index 8ad5d46d..aba9cbfc 100644 --- a/library/Icingadb/Common/ListItemCommonLayout.php +++ b/library/Icingadb/Common/ListItemCommonLayout.php @@ -1,6 +1,6 @@ $service->name, 'host.name' => $host->name] + 'icingadb/service/acknowledge', ['name' => $service->name, 'host.name' => $host->name] ); } public static function addComment(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/add-comment', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/add-comment', ['name' => $service->name, 'host.name' => $host->name] ); } public static function checkNow(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/check-now', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/check-now', ['name' => $service->name, 'host.name' => $host->name] ); } public static function comments(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/comments', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/comments', ['name' => $service->name, 'host.name' => $host->name] ); } public static function downtimes(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/downtimes', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/downtimes', ['name' => $service->name, 'host.name' => $host->name] ); } public static function history(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/history', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/history', ['name' => $service->name, 'host.name' => $host->name] ); } public static function removeAcknowledgement(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/remove-acknowledgement', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/remove-acknowledgement', ['name' => $service->name, 'host.name' => $host->name] ); } public static function removeComment(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/delete-comment', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/delete-comment', ['name' => $service->name, 'host.name' => $host->name] ); } public static function scheduleDowntime(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/schedule-downtime', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/schedule-downtime', ['name' => $service->name, 'host.name' => $host->name] ); } public static function sendCustomNotification(Service $service, Host $host) { return Url::fromPath( - 'eagle/service/send-custom-notification', ['name' => $service->name, 'host.name' => $host->name] + 'icingadb/service/send-custom-notification', ['name' => $service->name, 'host.name' => $host->name] ); } } diff --git a/library/Icingadb/Common/ServiceStates.php b/library/Icingadb/Common/ServiceStates.php index 5e5aded2..7dabd34c 100644 --- a/library/Icingadb/Common/ServiceStates.php +++ b/library/Icingadb/Common/ServiceStates.php @@ -1,6 +1,6 @@ state === null) { // TODO(jmeyer): Use a service provider here. (Or something similar) - $config = Config::module('eagle')->getSection('redis'); + $config = Config::module('icingadb')->getSection('redis'); $redis = new Redis(); $redis->connect( $config->get('host', 'redis'), diff --git a/library/Icingadb/Model/Checkcommand.php b/library/Icingadb/Model/Checkcommand.php index 13dd1712..fc678c1a 100644 --- a/library/Icingadb/Model/Checkcommand.php +++ b/library/Icingadb/Model/Checkcommand.php @@ -1,6 +1,6 @@