From a64168a42d6c363a2455e2a4b777446f605775e8 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Fri, 7 Mar 2014 11:14:19 +0100 Subject: [PATCH] Service groups at tactical overview --- .../controllers/ListController.php | 2 + .../views/scripts/list/servicegroups.phtml | 242 ++++++++++++++++++ 2 files changed, 244 insertions(+) create mode 100644 modules/monitoring/application/views/scripts/list/servicegroups.phtml diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 21dca29bf..eba6e56cb 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -352,6 +352,8 @@ class Monitoring_ListController extends MonitoringController public function servicegroupsAction() { + $this->addTitleTab('servicegroups'); + $query = GroupsummaryView::fromRequest( $this->_request, array( diff --git a/modules/monitoring/application/views/scripts/list/servicegroups.phtml b/modules/monitoring/application/views/scripts/list/servicegroups.phtml new file mode 100644 index 000000000..b33a5ed5d --- /dev/null +++ b/modules/monitoring/application/views/scripts/list/servicegroups.phtml @@ -0,0 +1,242 @@ +compact): ?> +
+ tabs ?> +
+ +
+
+ + {$status} = (string)((int)$servicegroup->{$status . '_handled'} + + (int)$servicegroup->{$status . '_unhandled'}); + ?> +
+ +

servicegroup; ?>

+
+
+ + + + + + + + + + + + + +
HostsServices
+ hosts_down): ?> + +
+ + hosts_down ?> DOWN + + hosts_down_unhandled): ?> + + hosts_down_unhandled ?> Unhandled + + +
+ + + hosts_unreachable): ?> + +
+ + hosts_unreachable ?> UNREACHABLE + + hosts_unreachable_unhandled): ?> + + hosts_unreachable_unhandled ?> Unhandled + + +
+ + + hosts_up): ?> + +
+ + hosts_up ?> UP + +
+ + + hosts_pending): ?> + +
+ + hosts_pending ?> PENDING + +
+ + +
+ services_critical): ?> + +
+ + services_critical ?> CRITICAL + + services_critical_unhandled): ?> + + services_critical_unhandled ?> Unhandled + + +
+ + + services_warning): ?> + +
+ + services_warning ?> WARNING + + services_warning_unhandled): ?> + + services_warning_unhandled ?> Unhandled + + +
+ + + services_unknown): ?> + +
+ + services_unknown ?> UNKNOWN + + services_unknown_unhandled): ?> + + services_unknown_unhandled ?> Unhandled + + +
+ + + services_ok): ?> + +
+ + services_ok ?> OK + +
+ + + services_pending): ?> + +
+ + services_pending ?> PENDING + +
+ + +
+
+
+ +
+