diff --git a/modules/monitoring/application/views/scripts/list/servicegroups.phtml b/modules/monitoring/application/views/scripts/list/servicegroups.phtml index 8ab146226..3c874fa03 100644 --- a/modules/monitoring/application/views/scripts/list/servicegroups.phtml +++ b/modules/monitoring/application/views/scripts/list/servicegroups.phtml @@ -22,28 +22,28 @@ peekAhead($this->compact); -foreach ($servicegroups as $s): ?> - +foreach ($servicegroups as $serviceGroup): ?> + qlink( - $s->servicegroup_alias, + $serviceGroup->servicegroup_alias, 'monitoring/list/services', - array('servicegroup_name' => $s->servicegroup_name), - array('title' => sprintf($this->translate('List all services in the group "%s"'), $s->servicegroup_alias)) + array('servicegroup_name' => $serviceGroup->servicegroup_name), + array('title' => sprintf($this->translate('List all services in the group "%s"'), $serviceGroup->servicegroup_alias)) ) ?> - services_total ?> + services_total ?> - services_ok): ?> + services_ok): ?> qlink( - $s->services_ok, + $serviceGroup->services_ok, 'monitoring/list/services', array( 'service_state' => 0, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -51,26 +51,26 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currently in state OK in service group "%s"', 'List %s services which are currently in state OK in service group "%s"', - $s->services_ok + $serviceGroup->services_ok ), - $s->services_ok, - $s->servicegroup_alias + $serviceGroup->services_ok, + $serviceGroup->servicegroup_alias ) ) ) ?> - services_critical_unhandled): ?> + services_critical_unhandled): ?> qlink( - $s->services_critical_unhandled, + $serviceGroup->services_critical_unhandled, 'monitoring/list/services', array( 'service_state' => 2, 'service_acknowledged' => 0, 'service_in_downtime' => 0, 'host_problem' => 0, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -78,23 +78,23 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currently in state CRITICAL in service group "%s"', 'List %s services which are currently in state CRITICAL in service group "%s"', - $s->services_critical_unhandled + $serviceGroup->services_critical_unhandled ), - $s->services_critical_unhandled, - $s->servicegroup_alias + $serviceGroup->services_critical_unhandled, + $serviceGroup->servicegroup_alias ) ) ) ?> - services_critical_handled): ?> + services_critical_handled): ?> qlink( - $s->services_critical_handled, + $serviceGroup->services_critical_handled, 'monitoring/list/services', array( 'service_state' => 2, 'service_handled' => 1, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -102,29 +102,29 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currently in state CRITICAL (Acknowledged) in service group "%s"', 'List %s services which are currently in state CRITICAL (Acknowledged) in service group "%s"', - $s->services_critical_handled + $serviceGroup->services_critical_handled ), - $s->services_critical_handled, - $s->servicegroup_alias + $serviceGroup->services_critical_handled, + $serviceGroup->servicegroup_alias ) ) ) ?> - services_critical_unhandled): ?> + services_critical_unhandled): ?> - services_unknown_unhandled): ?> + services_unknown_unhandled): ?> qlink( - $s->services_unknown_unhandled, + $serviceGroup->services_unknown_unhandled, 'monitoring/list/services', array( 'service_state' => 3, 'service_acknowledged' => 0, 'service_in_downtime' => 0, 'host_problem' => 0, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -132,23 +132,23 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currently in state UNKNOWN in service group "%s"', 'List %s services which are currently in state UNKNOWN in service group "%s"', - $s->services_unknown_unhandled + $serviceGroup->services_unknown_unhandled ), - $s->services_unknown_unhandled, - $s->servicegroup_alias + $serviceGroup->services_unknown_unhandled, + $serviceGroup->servicegroup_alias ) ) ) ?> - services_unknown_handled): ?> + services_unknown_handled): ?> qlink( - $s->services_unknown_handled, + $serviceGroup->services_unknown_handled, 'monitoring/list/services', array( 'service_state' => 3, 'service_handled' => 1, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -156,29 +156,29 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currently in state UNKNOWN (Acknowledged) in service group "%s"', 'List %s services which are currently in state UNKNOWN (Acknowledged) in service group "%s"', - $s->services_unknown_handled + $serviceGroup->services_unknown_handled ), - $s->services_unknown_handled, - $s->servicegroup_alias + $serviceGroup->services_unknown_handled, + $serviceGroup->servicegroup_alias ) ) ) ?> - services_unknown_unhandled): ?> + services_unknown_unhandled): ?> - services_warning_unhandled): ?> + services_warning_unhandled): ?> qlink( - $s->services_warning_unhandled, + $serviceGroup->services_warning_unhandled, 'monitoring/list/services', array( 'service_state' => 1, 'service_acknowledged' => 0, 'service_in_downtime' => 0, 'host_problem' => 0, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -186,23 +186,23 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currently in state WARNING in service group "%s"', 'List %s services which are currently in state WARNING in service group "%s"', - $s->services_warning_unhandled + $serviceGroup->services_warning_unhandled ), - $s->services_warning_unhandled, - $s->servicegroup_alias + $serviceGroup->services_warning_unhandled, + $serviceGroup->servicegroup_alias ) ) ) ?> - services_warning_handled): ?> + services_warning_handled): ?> qlink( - $s->services_warning_handled, + $serviceGroup->services_warning_handled, 'monitoring/list/services', array( 'service_state' => 1, 'service_handled' => 1, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -210,26 +210,26 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currently in state WARNING (Acknowledged) in service group "%s"', 'List %s services which are currently in state WARNING (Acknowledged) in service group "%s"', - $s->services_warning_handled + $serviceGroup->services_warning_handled ), - $s->services_warning_handled, - $s->servicegroup_alias + $serviceGroup->services_warning_handled, + $serviceGroup->servicegroup_alias ) ) ) ?> - services_warning_unhandled): ?> + services_warning_unhandled): ?> - services_pending): ?> + services_pending): ?> qlink( - $s->services_pending, + $serviceGroup->services_pending, 'monitoring/list/services', array( 'service_state' => 99, - 'servicegroup_name' => $s->servicegroup_name, + 'servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity' ), array( @@ -237,10 +237,10 @@ foreach ($servicegroups as $s): ?> $this->translatePlural( 'List %s service that is currenlty in state PENDING in service group "%s"', 'List %s services which are currently in state PENDING in service group "%s"', - $s->services_pending + $serviceGroup->services_pending ), - $s->services_pending, - $s->servicegroup_alias + $serviceGroup->services_pending, + $serviceGroup->servicegroup_alias ) ) ) ?>