diff --git a/modules/monitoring/application/views/scripts/list/hostgroups.phtml b/modules/monitoring/application/views/scripts/list/hostgroups.phtml index f1a3e2004..27527591c 100644 --- a/modules/monitoring/application/views/scripts/list/hostgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/hostgroups.phtml @@ -13,11 +13,10 @@ if (! $this->compact): ?>
= $this->translate('Last Problem'); ?> | @@ -28,32 +27,35 @@ if (count($hostgroups) === 0) {= $this->translate('Service States'); ?> | - hosts_down_unhandled) { - $handled = false; - $state = Host::STATE_DOWN; - $lastStateChange = $h->hosts_down_last_state_change_unhandled; - } elseif ($h->hosts_unreachable_unhandled) { - $handled = false; - $state = Host::STATE_UNREACHABLE; - $lastStateChange = $h->hosts_unreachable_last_state_change_unhandled; - } else { - $handled = true; - if ($h->hosts_down_handled) { - $state = Host::STATE_DOWN; - $lastStateChange = $h->hosts_down_last_state_change_handled; - } elseif ($h->hosts_unreachable_handled) { - $state = Host::STATE_UNREACHABLE; - $lastStateChange = $h->hosts_unreachable_last_state_change_handled; - } elseif ($h->hosts_up) { - $state = Host::STATE_UP; - $lastStateChange = $h->hosts_up_last_state_change; - } else { - $state = Host::STATE_PENDING; - $lastStateChange = $h->hosts_pending_last_state_change; - } - } - ?> + +hosts_down_unhandled) { + $handled = false; + $state = Host::STATE_DOWN; + $lastStateChange = $h->hosts_down_last_state_change_unhandled; +} elseif ($h->hosts_unreachable_unhandled) { + $handled = false; + $state = Host::STATE_UNREACHABLE; + $lastStateChange = $h->hosts_unreachable_last_state_change_unhandled; +} else { + $handled = true; + if ($h->hosts_down_handled) { + $state = Host::STATE_DOWN; + $lastStateChange = $h->hosts_down_last_state_change_handled; + } elseif ($h->hosts_unreachable_handled) { + $state = Host::STATE_UNREACHABLE; + $lastStateChange = $h->hosts_unreachable_last_state_change_handled; + } elseif ($h->hosts_up) { + $state = Host::STATE_UP; + $lastStateChange = $h->hosts_up_last_state_change; + } else { + $state = Host::STATE_PENDING; + $lastStateChange = $h->hosts_pending_last_state_change; + } +} + +?>
---|