monitoring: Rename $s to $serviceGroup in the service groups overview

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-28 17:46:15 +02:00
parent 04d852d2ed
commit 56df5e1f8b
1 changed files with 57 additions and 57 deletions

View File

@ -22,28 +22,28 @@
<?php <?php
$servicegroups->peekAhead($this->compact); $servicegroups->peekAhead($this->compact);
foreach ($servicegroups as $s): ?> foreach ($servicegroups as $serviceGroup): ?>
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $s->servicegroup_name)) ?>"> <tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $serviceGroup->servicegroup_name)) ?>">
<td class="groupname"> <td class="groupname">
<?= $this->qlink( <?= $this->qlink(
$s->servicegroup_alias, $serviceGroup->servicegroup_alias,
'monitoring/list/services', 'monitoring/list/services',
array('servicegroup_name' => $s->servicegroup_name), array('servicegroup_name' => $serviceGroup->servicegroup_name),
array('title' => sprintf($this->translate('List all services in the group "%s"'), $s->servicegroup_alias)) array('title' => sprintf($this->translate('List all services in the group "%s"'), $serviceGroup->servicegroup_alias))
) ?> ) ?>
</td> </td>
<td class="total"> <td class="total">
<?= $s->services_total ?> <?= $serviceGroup->services_total ?>
</td> </td>
<td> <td>
<?php if ($s->services_ok): ?> <?php if ( $serviceGroup->services_ok): ?>
<span class="state ok"> <span class="state ok">
<?= $this->qlink( <?= $this->qlink(
$s->services_ok, $serviceGroup->services_ok,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 0, 'service_state' => 0,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -51,26 +51,26 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currently in state OK in service group "%s"', '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"', 'List %s services which are currently in state OK in service group "%s"',
$s->services_ok $serviceGroup->services_ok
), ),
$s->services_ok, $serviceGroup->services_ok,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_critical_unhandled): ?> <?php if ( $serviceGroup->services_critical_unhandled): ?>
<span class="state critical"> <span class="state critical">
<?= $this->qlink( <?= $this->qlink(
$s->services_critical_unhandled, $serviceGroup->services_critical_unhandled,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 2, 'service_state' => 2,
'service_acknowledged' => 0, 'service_acknowledged' => 0,
'service_in_downtime' => 0, 'service_in_downtime' => 0,
'host_problem' => 0, 'host_problem' => 0,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -78,23 +78,23 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currently in state CRITICAL in service group "%s"', '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"', '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, $serviceGroup->services_critical_unhandled,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($s->services_critical_handled): ?> <?php if ( $serviceGroup->services_critical_handled): ?>
<span class="state critical handled"> <span class="state critical handled">
<?= $this->qlink( <?= $this->qlink(
$s->services_critical_handled, $serviceGroup->services_critical_handled,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 2, 'service_state' => 2,
'service_handled' => 1, 'service_handled' => 1,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -102,29 +102,29 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currently in state CRITICAL (Acknowledged) in service group "%s"', '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"', '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, $serviceGroup->services_critical_handled,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_critical_unhandled): ?> <?php if ( $serviceGroup->services_critical_unhandled): ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_unknown_unhandled): ?> <?php if ( $serviceGroup->services_unknown_unhandled): ?>
<span class="state unknown"> <span class="state unknown">
<?= $this->qlink( <?= $this->qlink(
$s->services_unknown_unhandled, $serviceGroup->services_unknown_unhandled,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 3, 'service_state' => 3,
'service_acknowledged' => 0, 'service_acknowledged' => 0,
'service_in_downtime' => 0, 'service_in_downtime' => 0,
'host_problem' => 0, 'host_problem' => 0,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -132,23 +132,23 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currently in state UNKNOWN in service group "%s"', '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"', '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, $serviceGroup->services_unknown_unhandled,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($s->services_unknown_handled): ?> <?php if ( $serviceGroup->services_unknown_handled): ?>
<span class="state unknown handled"> <span class="state unknown handled">
<?= $this->qlink( <?= $this->qlink(
$s->services_unknown_handled, $serviceGroup->services_unknown_handled,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 3, 'service_state' => 3,
'service_handled' => 1, 'service_handled' => 1,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -156,29 +156,29 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currently in state UNKNOWN (Acknowledged) in service group "%s"', '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"', '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, $serviceGroup->services_unknown_handled,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_unknown_unhandled): ?> <?php if ( $serviceGroup->services_unknown_unhandled): ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_warning_unhandled): ?> <?php if ( $serviceGroup->services_warning_unhandled): ?>
<span class="state warning"> <span class="state warning">
<?= $this->qlink( <?= $this->qlink(
$s->services_warning_unhandled, $serviceGroup->services_warning_unhandled,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 1, 'service_state' => 1,
'service_acknowledged' => 0, 'service_acknowledged' => 0,
'service_in_downtime' => 0, 'service_in_downtime' => 0,
'host_problem' => 0, 'host_problem' => 0,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -186,23 +186,23 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currently in state WARNING in service group "%s"', '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"', '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, $serviceGroup->services_warning_unhandled,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($s->services_warning_handled): ?> <?php if ( $serviceGroup->services_warning_handled): ?>
<span class="state warning handled"> <span class="state warning handled">
<?= $this->qlink( <?= $this->qlink(
$s->services_warning_handled, $serviceGroup->services_warning_handled,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 1, 'service_state' => 1,
'service_handled' => 1, 'service_handled' => 1,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -210,26 +210,26 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currently in state WARNING (Acknowledged) in service group "%s"', '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"', '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, $serviceGroup->services_warning_handled,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_warning_unhandled): ?> <?php if ( $serviceGroup->services_warning_unhandled): ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_pending): ?> <?php if ( $serviceGroup->services_pending): ?>
<span class="state pending"> <span class="state pending">
<?= $this->qlink( <?= $this->qlink(
$s->services_pending, $serviceGroup->services_pending,
'monitoring/list/services', 'monitoring/list/services',
array( array(
'service_state' => 99, 'service_state' => 99,
'servicegroup_name' => $s->servicegroup_name, 'servicegroup_name' => $serviceGroup->servicegroup_name,
'sort' => 'service_severity' 'sort' => 'service_severity'
), ),
array( array(
@ -237,10 +237,10 @@ foreach ($servicegroups as $s): ?>
$this->translatePlural( $this->translatePlural(
'List %s service that is currenlty in state PENDING in service group "%s"', '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"', 'List %s services which are currently in state PENDING in service group "%s"',
$s->services_pending $serviceGroup->services_pending
), ),
$s->services_pending, $serviceGroup->services_pending,
$s->servicegroup_alias $serviceGroup->servicegroup_alias
) )
) )
) ?> ) ?>