From 1a4c1a5d948a2056b007edaf5a1f78e3b067cd60 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 25 Sep 2015 11:01:47 +0200 Subject: [PATCH] monitoring: No longer render last problem column in the host groups overview I doubt that this column had any real value. If there's a "problem" on a host group, the state badges help you. refs #5543 --- .../views/scripts/list/hostgroups.phtml | 38 +------------------ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hostgroups.phtml b/modules/monitoring/application/views/scripts/list/hostgroups.phtml index cd93d8aee..a5e6fb3b0 100644 --- a/modules/monitoring/application/views/scripts/list/hostgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/hostgroups.phtml @@ -18,7 +18,6 @@ if (! $this->compact): ?> - @@ -27,41 +26,8 @@ if (! $this->compact): ?> -hosts_down_unhandled) { - $handled = false; - $state = Host::STATE_DOWN; - $lastStateChange = $hostgroup->hosts_down_last_state_change_unhandled; -} elseif ($hostgroup->hosts_unreachable_unhandled) { - $handled = false; - $state = Host::STATE_UNREACHABLE; - $lastStateChange = $hostgroup->hosts_unreachable_last_state_change_unhandled; -} else { - $handled = true; - if ($hostgroup->hosts_down_handled) { - $state = Host::STATE_DOWN; - $lastStateChange = $hostgroup->hosts_down_last_state_change_handled; - } elseif ($hostgroup->hosts_unreachable_handled) { - $state = Host::STATE_UNREACHABLE; - $lastStateChange = $hostgroup->hosts_unreachable_last_state_change_handled; - } elseif ($hostgroup->hosts_up) { - $state = Host::STATE_UP; - $lastStateChange = $hostgroup->hosts_up_last_state_change; - } else { - $state = Host::STATE_PENDING; - $lastStateChange = $hostgroup->hosts_pending_last_state_change; - } -} - -?> - - + +
translate('Last Problem') ?> translate('Host Group') ?> translate('Total Hosts') ?> translate('Host States') ?>
- -
- timeSince($lastStateChange, $this->compact) ?> -
qlink( $hostgroup->hostgroup_alias,