From 57942c8dbfbe1e6b2f99e2c21860befc2254f25b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 4 Mar 2014 16:24:54 +0100 Subject: [PATCH] Fix style information for tactical overview refs #3782 --- ...statussummary.phtml => hostsoffline.phtml} | 142 ++---------------- .../tactical/components/hostsonline.phtml | 127 ++++++++++++++++ .../servicestatesummarybyhoststate.phtml | 40 ++--- .../views/scripts/tactical/index.phtml | 3 +- public/css/icinga/layout-colors.less | 4 +- public/css/icinga/monitoring-colors.less | 4 + 6 files changed, 168 insertions(+), 152 deletions(-) rename modules/monitoring/application/views/scripts/tactical/components/{statussummary.phtml => hostsoffline.phtml} (66%) create mode 100644 modules/monitoring/application/views/scripts/tactical/components/hostsonline.phtml diff --git a/modules/monitoring/application/views/scripts/tactical/components/statussummary.phtml b/modules/monitoring/application/views/scripts/tactical/components/hostsoffline.phtml similarity index 66% rename from modules/monitoring/application/views/scripts/tactical/components/statussummary.phtml rename to modules/monitoring/application/views/scripts/tactical/components/hostsoffline.phtml index 018a90509..01ed2bb62 100644 --- a/modules/monitoring/application/views/scripts/tactical/components/statussummary.phtml +++ b/modules/monitoring/application/views/scripts/tactical/components/hostsoffline.phtml @@ -1,127 +1,11 @@ - + -statusSummary->hosts_up): ?> - - - - - -statusSummary->hosts_pending): ?> - - - - -statusSummary->hosts_down): ?>
Status SummaryHosts offline
Hosts Services
- - - statusSummary->hosts_up; ?> UP - -statusSummary->hosts_up_not_checked): ?> - - - statusSummary->hosts_up_not_checked; ?> disabled - - - - - - partial( - 'tactical/components/parts/servicestatesummarybyhoststate.phtml', - array( - 'hostState' => 0, - 'services_ok' => $this->statusSummary->services_ok_on_up_hosts, - 'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_up_hosts, - 'services_pending' => $this->statusSummary->services_pending_on_up_hosts, - 'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_up_hosts, - 'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_up_hosts, - 'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_up_hosts, - 'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_up_hosts, - 'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_up_hosts, - 'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_up_hosts, - 'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_up_hosts, - 'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_up_hosts, - 'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_up_hosts, - 'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_up_hosts, - 'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_up_hosts, - 'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_up_hosts, - 'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_up_hosts, - 'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_up_hosts, - 'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_up_hosts, - 'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_up_hosts, - 'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_up_hosts, - 'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_up_hosts, - 'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_up_hosts - ) - ); ?> -
- - - statusSummary->hosts_pending; ?> PENDING - -statusSummary->hosts_pending_not_checked): ?> - - - statusSummary->hosts_pending_not_checked; ?> disabled - - - - - - partial( - 'tactical/components/parts/servicestatesummarybyhoststate.phtml', - array( - 'hostState' => 99, - 'services_ok' => $this->statusSummary->services_ok_on_pending_hosts, - 'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_pending_hosts, - 'services_pending' => $this->statusSummary->services_pending_on_pending_hosts, - 'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_pending_hosts, - 'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_pending_hosts, - 'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_pending_hosts, - 'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_pending_hosts, - 'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_pending_hosts, - 'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_pending_hosts, - 'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_pending_hosts, - 'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_pending_hosts, - 'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_pending_hosts, - 'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_pending_hosts, - 'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_pending_hosts, - 'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_pending_hosts, - 'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_pending_hosts, - 'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_pending_hosts, - 'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_pending_hosts, - 'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_pending_hosts, - 'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_pending_hosts, - 'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_pending_hosts, - 'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_pending_hosts - ) - ); ?> -
@@ -141,7 +25,7 @@ statusSummary->hosts_down_unhandled; ?> unhandled statusSummary->hosts_down_unhandled_active): ?> - + + + + + + + + + + + + + + + + + + + +statusSummary->hosts_up): ?> + + + + + +statusSummary->hosts_pending): ?> + + + + + + +
Hosts online
HostsServices
+ + + statusSummary->hosts_up; ?> UP + +statusSummary->hosts_up_not_checked): ?> + + + statusSummary->hosts_up_not_checked; ?> Not checked + + + + + + partial( + 'tactical/components/parts/servicestatesummarybyhoststate.phtml', + array( + 'hostState' => 0, + 'services_ok' => $this->statusSummary->services_ok_on_up_hosts, + 'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_up_hosts, + 'services_pending' => $this->statusSummary->services_pending_on_up_hosts, + 'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_up_hosts, + 'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_up_hosts, + 'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_up_hosts, + 'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_up_hosts, + 'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_up_hosts, + 'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_up_hosts, + 'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_up_hosts, + 'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_up_hosts, + 'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_up_hosts, + 'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_up_hosts, + 'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_up_hosts, + 'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_up_hosts, + 'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_up_hosts, + 'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_up_hosts, + 'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_up_hosts, + 'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_up_hosts, + 'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_up_hosts, + 'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_up_hosts, + 'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_up_hosts + ) + ); ?> +
+ + + statusSummary->hosts_pending; ?> PENDING + +statusSummary->hosts_pending_not_checked): ?> + + + statusSummary->hosts_pending_not_checked; ?> Not checked + + + + + + partial( + 'tactical/components/parts/servicestatesummarybyhoststate.phtml', + array( + 'hostState' => 99, + 'services_ok' => $this->statusSummary->services_ok_on_pending_hosts, + 'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_pending_hosts, + 'services_pending' => $this->statusSummary->services_pending_on_pending_hosts, + 'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_pending_hosts, + 'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_pending_hosts, + 'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_pending_hosts, + 'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_pending_hosts, + 'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_pending_hosts, + 'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_pending_hosts, + 'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_pending_hosts, + 'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_pending_hosts, + 'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_pending_hosts, + 'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_pending_hosts, + 'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_pending_hosts, + 'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_pending_hosts, + 'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_pending_hosts, + 'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_pending_hosts, + 'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_pending_hosts, + 'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_pending_hosts, + 'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_pending_hosts, + 'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_pending_hosts, + 'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_pending_hosts + ) + ); ?> +
+
diff --git a/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml b/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml index 51ed78c53..d3538f29b 100644 --- a/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml +++ b/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml @@ -30,7 +30,7 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled; unhandled - + + + + + + + + + + + + + + + + + + + +
+ render('tactical/components/hostsonline.phtml'); ?> + render('tactical/components/hostsoffline.phtml'); ?> render('tactical/components/hostservicechecks.phtml'); ?> render('tactical/components/monitoringfeatures.phtml'); ?> - render('tactical/components/statussummary.phtml'); ?>
diff --git a/public/css/icinga/layout-colors.less b/public/css/icinga/layout-colors.less index f4052ba2d..1d9211675 100644 --- a/public/css/icinga/layout-colors.less +++ b/public/css/icinga/layout-colors.less @@ -52,8 +52,8 @@ @colorUnreachableHandled: #ee99ff; @colorActiveCheck: #44bb77; @colorPassiveCheck: #44ccaa; -@colorDisabledCheck: #ff5566; +@colorDisabledCheck: #cccccc; @colorEnabled: #44bb77; @colorDisabled: #cccccc; -@colorFlapping: #ff5566; +@colorFlapping: #16c3cc; diff --git a/public/css/icinga/monitoring-colors.less b/public/css/icinga/monitoring-colors.less index c1bfa8ae2..0902817e2 100644 --- a/public/css/icinga/monitoring-colors.less +++ b/public/css/icinga/monitoring-colors.less @@ -374,6 +374,10 @@ span.state.flapping { color: #333; } +.summary span.state.check_disabled > a { + color: #333; +} + .summary span.state { width: 26em; vertical-align: top;