From 77b4930098d4d0b4550ae97a22d83ecaa81d2ed7 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 5 Nov 2019 01:07:30 +0100 Subject: [PATCH] Rename to Icingadb --- application/controllers/CommentController.php | 16 +++++----- .../controllers/CommentsController.php | 8 ++--- .../controllers/DowntimesController.php | 8 ++--- application/controllers/HostController.php | 30 ++++++++--------- .../controllers/HostgroupController.php | 12 +++---- .../controllers/HostgroupsController.php | 8 ++--- application/controllers/HostsController.php | 8 ++--- .../controllers/NotificationsController.php | 8 ++--- application/controllers/ServiceController.php | 28 ++++++++-------- .../controllers/ServicegroupController.php | 12 +++---- .../controllers/ServicegroupsController.php | 8 ++--- .../controllers/ServicesController.php | 8 ++--- application/controllers/UserController.php | 8 ++--- .../controllers/UsergroupsController.php | 8 ++--- application/controllers/UsersController.php | 8 ++--- configuration.php | 22 ++++++------- library/Icingadb/Common/BaseTableRowItem.php | 2 +- library/Icingadb/Common/CommandActions.php | 10 +++--- library/Icingadb/Common/HostLink.php | 4 +-- library/Icingadb/Common/HostLinks.php | 26 +++++++-------- library/Icingadb/Common/HostStates.php | 10 +++--- library/Icingadb/Common/Icons.php | 2 +- library/Icingadb/Common/Links.php | 32 +++++++++---------- .../Icingadb/Common/ListItemCommonLayout.php | 2 +- .../Icingadb/Common/ListItemCompactLayout.php | 2 +- library/Icingadb/Common/ServiceLink.php | 6 ++-- library/Icingadb/Common/ServiceLinks.php | 26 +++++++-------- library/Icingadb/Common/ServiceStates.php | 14 ++++---- library/Icingadb/Common/StateBadges.php | 4 +-- library/Icingadb/Common/ViewMode.php | 2 +- library/Icingadb/Compat/CompatBackend.php | 4 +-- library/Icingadb/Compat/CompatHost.php | 4 +-- library/Icingadb/Compat/CompatObject.php | 4 +-- library/Icingadb/Compat/CompatObjects.php | 2 +- library/Icingadb/Compat/CompatService.php | 4 +-- library/Icingadb/Date/DateFormatter.php | 2 +- library/Icingadb/Model/ActionUrl.php | 2 +- library/Icingadb/Model/Behavior/BoolCast.php | 2 +- .../Model/Behavior/FlattenedObjectVars.php | 2 +- library/Icingadb/Model/Behavior/Timestamp.php | 2 +- .../Icingadb/Model/Behavior/VolatileState.php | 6 ++-- library/Icingadb/Model/Checkcommand.php | 2 +- .../Icingadb/Model/CheckcommandArgument.php | 2 +- .../Icingadb/Model/CheckcommandCustomvar.php | 2 +- library/Icingadb/Model/CheckcommandEnvvar.php | 2 +- library/Icingadb/Model/Comment.php | 6 ++-- library/Icingadb/Model/CommentHistory.php | 6 ++-- library/Icingadb/Model/Customvar.php | 2 +- library/Icingadb/Model/CustomvarFlat.php | 4 +-- library/Icingadb/Model/Downtime.php | 6 ++-- library/Icingadb/Model/DowntimeHistory.php | 6 ++-- library/Icingadb/Model/Endpoint.php | 2 +- library/Icingadb/Model/Environment.php | 2 +- library/Icingadb/Model/Eventcommand.php | 2 +- .../Icingadb/Model/EventcommandArgument.php | 2 +- .../Icingadb/Model/EventcommandCustomvar.php | 2 +- library/Icingadb/Model/EventcommandEnvvar.php | 2 +- library/Icingadb/Model/History.php | 4 +-- library/Icingadb/Model/Host.php | 4 +-- library/Icingadb/Model/HostComment.php | 2 +- library/Icingadb/Model/HostCustomvar.php | 2 +- library/Icingadb/Model/HostDowntime.php | 2 +- library/Icingadb/Model/HostState.php | 4 +-- library/Icingadb/Model/Hostgroup.php | 2 +- library/Icingadb/Model/HostgroupCustomvar.php | 2 +- library/Icingadb/Model/HostgroupMember.php | 2 +- library/Icingadb/Model/Hostgroupsummary.php | 2 +- library/Icingadb/Model/IconImage.php | 2 +- library/Icingadb/Model/NotesUrl.php | 2 +- library/Icingadb/Model/Notification.php | 2 +- .../Icingadb/Model/NotificationCustomvar.php | 2 +- .../Icingadb/Model/NotificationHistory.php | 4 +-- library/Icingadb/Model/NotificationUser.php | 2 +- .../Icingadb/Model/NotificationUsergroup.php | 2 +- .../Icingadb/Model/Notificationcommand.php | 2 +- .../Model/NotificationcommandArgument.php | 2 +- .../Model/NotificationcommandCustomvar.php | 2 +- .../Model/NotificationcommandEnvvar.php | 2 +- library/Icingadb/Model/Service.php | 4 +-- library/Icingadb/Model/ServiceComment.php | 2 +- library/Icingadb/Model/ServiceCustomvar.php | 2 +- library/Icingadb/Model/ServiceDowntime.php | 2 +- library/Icingadb/Model/ServiceState.php | 4 +-- library/Icingadb/Model/Servicegroup.php | 2 +- .../Icingadb/Model/ServicegroupCustomvar.php | 2 +- library/Icingadb/Model/ServicegroupMember.php | 2 +- .../Icingadb/Model/ServicegroupSummary.php | 2 +- library/Icingadb/Model/State.php | 8 ++--- library/Icingadb/Model/StateHistory.php | 4 +-- library/Icingadb/Model/Timeperiod.php | 2 +- .../Icingadb/Model/TimeperiodCustomvar.php | 2 +- .../Model/TimeperiodOverrideExclude.php | 2 +- .../Model/TimeperiodOverrideInclude.php | 2 +- library/Icingadb/Model/TimeperiodRange.php | 2 +- library/Icingadb/Model/User.php | 2 +- library/Icingadb/Model/UserCustomvar.php | 2 +- library/Icingadb/Model/Usergroup.php | 2 +- library/Icingadb/Model/UsergroupCustomvar.php | 2 +- library/Icingadb/Model/UsergroupMember.php | 2 +- library/Icingadb/Model/Zone.php | 2 +- library/Icingadb/Redis/VolatileState.php | 4 +-- library/Icingadb/Web/Controller.php | 6 ++-- library/Icingadb/Widget/AttemptBall.php | 2 +- library/Icingadb/Widget/BaseHostListItem.php | 4 +-- library/Icingadb/Widget/BaseItemList.php | 2 +- library/Icingadb/Widget/BaseListItem.php | 2 +- .../Icingadb/Widget/BaseServiceListItem.php | 4 +-- library/Icingadb/Widget/CheckAttempt.php | 2 +- library/Icingadb/Widget/CommonListItem.php | 4 +-- .../Icingadb/Widget/Detail/CommentDetail.php | 16 +++++----- .../Icingadb/Widget/Detail/CustomVarTable.php | 2 +- library/Icingadb/Widget/Detail/EventBox.php | 2 +- .../Icingadb/Widget/Detail/ObjectDetail.php | 26 +++++++-------- .../Icingadb/Widget/Detail/QuickActions.php | 10 +++--- library/Icingadb/Widget/DowntimeList.php | 2 +- library/Icingadb/Widget/DowntimeListItem.php | 10 +++--- library/Icingadb/Widget/FilterControl.php | 2 +- .../Icingadb/Widget/HorizontalKeyValue.php | 2 +- library/Icingadb/Widget/HostList.php | 2 +- library/Icingadb/Widget/HostListItem.php | 4 +-- .../Icingadb/Widget/HostListItemCompact.php | 4 +-- library/Icingadb/Widget/HostStateBadges.php | 4 +-- .../Icingadb/Widget/ItemList/CommentList.php | 4 +-- .../Widget/ItemList/CommentListItem.php | 12 +++---- .../Icingadb/Widget/ItemList/HistoryList.php | 4 +-- .../Widget/ItemList/HistoryListItem.php | 20 ++++++------ .../Widget/ItemList/HostgroupList.php | 4 +-- .../Widget/ItemList/HostgroupListItem.php | 12 +++---- .../Widget/ItemList/NotificationList.php | 4 +-- .../Widget/ItemList/NotificationListItem.php | 16 +++++----- .../Widget/ItemList/ServicegroupList.php | 4 +-- .../Widget/ItemList/ServicegroupListItem.php | 10 +++--- library/Icingadb/Widget/ItemList/UserList.php | 4 +-- .../Icingadb/Widget/ItemList/UserListItem.php | 4 +-- .../Widget/ItemList/UsergroupList.php | 4 +-- .../Widget/ItemList/UsergroupListItem.php | 4 +-- library/Icingadb/Widget/ServiceList.php | 2 +- library/Icingadb/Widget/ServiceListItem.php | 4 +-- .../Widget/ServiceListItemCompact.php | 4 +-- .../Icingadb/Widget/ServiceStateBadges.php | 4 +-- library/Icingadb/Widget/ShowMore.php | 2 +- library/Icingadb/Widget/StateBadge.php | 2 +- library/Icingadb/Widget/StateChange.php | 2 +- library/Icingadb/Widget/StateList.php | 4 +-- library/Icingadb/Widget/StateListItem.php | 6 ++-- library/Icingadb/Widget/TagList.php | 2 +- library/Icingadb/Widget/TimeAgo.php | 2 +- library/Icingadb/Widget/TimeSince.php | 2 +- library/Icingadb/Widget/TimeUntil.php | 2 +- library/Icingadb/Widget/VerticalKeyValue.php | 2 +- library/Icingadb/Widget/ViewModeSwitcher.php | 2 +- 151 files changed, 398 insertions(+), 398 deletions(-) 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 @@