monitoring: Rename $s to $serviceGroup in the service groups overview
refs #5543
This commit is contained in:
parent
04d852d2ed
commit
56df5e1f8b
|
@ -22,28 +22,28 @@
|
|||
<?php
|
||||
|
||||
$servicegroups->peekAhead($this->compact);
|
||||
foreach ($servicegroups as $s): ?>
|
||||
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $s->servicegroup_name)) ?>">
|
||||
foreach ($servicegroups as $serviceGroup): ?>
|
||||
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $serviceGroup->servicegroup_name)) ?>">
|
||||
<td class="groupname">
|
||||
<?= $this->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))
|
||||
) ?>
|
||||
</td>
|
||||
<td class="total">
|
||||
<?= $s->services_total ?>
|
||||
<?= $serviceGroup->services_total ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($s->services_ok): ?>
|
||||
<?php if ( $serviceGroup->services_ok): ?>
|
||||
<span class="state ok">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_critical_unhandled): ?>
|
||||
<?php if ( $serviceGroup->services_critical_unhandled): ?>
|
||||
<span class="state critical">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_critical_handled): ?>
|
||||
<?php if ( $serviceGroup->services_critical_handled): ?>
|
||||
<span class="state critical handled">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_critical_unhandled): ?>
|
||||
<?php if ( $serviceGroup->services_critical_unhandled): ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_unknown_unhandled): ?>
|
||||
<?php if ( $serviceGroup->services_unknown_unhandled): ?>
|
||||
<span class="state unknown">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_unknown_handled): ?>
|
||||
<?php if ( $serviceGroup->services_unknown_handled): ?>
|
||||
<span class="state unknown handled">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_unknown_unhandled): ?>
|
||||
<?php if ( $serviceGroup->services_unknown_unhandled): ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_warning_unhandled): ?>
|
||||
<?php if ( $serviceGroup->services_warning_unhandled): ?>
|
||||
<span class="state warning">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_warning_handled): ?>
|
||||
<?php if ( $serviceGroup->services_warning_handled): ?>
|
||||
<span class="state warning handled">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_warning_unhandled): ?>
|
||||
<?php if ( $serviceGroup->services_warning_unhandled): ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($s->services_pending): ?>
|
||||
<?php if ( $serviceGroup->services_pending): ?>
|
||||
<span class="state pending">
|
||||
<?= $this->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
|
||||
)
|
||||
)
|
||||
) ?>
|
||||
|
|
Loading…
Reference in New Issue