parent
bb9bc39522
commit
8abefaee3c
|
@ -21,6 +21,11 @@ icon = "img/icons/down.png"
|
|||
priority = 30
|
||||
icon = "img/icons/hostgroup.png"
|
||||
|
||||
[Overview.Tactical Overview]
|
||||
title = "Tactical Overview"
|
||||
url = "monitoring/tactical"
|
||||
priority = 50
|
||||
|
||||
[Overview.Hosts]
|
||||
title = "Hosts"
|
||||
url = "monitoring/list/hosts"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<?php if ($this->statusSummary->hosts_active): ?>
|
||||
<span class="state active">
|
||||
<span class="state check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 1)
|
||||
|
@ -18,7 +18,7 @@
|
|||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_passive): ?>
|
||||
<span class="state passive">
|
||||
<span class="state check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 1)
|
||||
|
@ -28,7 +28,7 @@
|
|||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_not_checked): ?>
|
||||
<span class="state not_checked">
|
||||
<span class="state check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 0)
|
||||
|
@ -40,7 +40,7 @@
|
|||
</td>
|
||||
<td>
|
||||
<?php if ($this->statusSummary->services_active): ?>
|
||||
<span class="state active">
|
||||
<span class="state check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 1)
|
||||
|
@ -50,7 +50,7 @@
|
|||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->services_passive): ?>
|
||||
<span class="state passive">
|
||||
<span class="state check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 1)
|
||||
|
@ -60,7 +60,7 @@
|
|||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->services_not_checked): ?>
|
||||
<span class="state not_checked">
|
||||
<span class="state check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 0)
|
||||
|
|
|
@ -29,8 +29,8 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="state flap_detection">
|
||||
<?php if ($hosts_without_flap_detection): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_flap_detection_enabled' => 0)
|
||||
|
@ -38,6 +38,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
<?= $hosts_without_flap_detection; ?> hosts disabled
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_flap_detection_enabled' => 1)
|
||||
|
@ -46,7 +47,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($summary->hosts_flapping): ?>
|
||||
<span class="state flap_detection flapping">
|
||||
<span class="state flapping">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_is_flapping' => 1)
|
||||
|
@ -58,8 +59,8 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="state flap_detection">
|
||||
<?php if ($services_without_flap_detection): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_flap_detection_enabled' => 0)
|
||||
|
@ -67,6 +68,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
<?= $services_without_flap_detection; ?> services disabled
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_flap_detection_enabled' => 1)
|
||||
|
@ -75,7 +77,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($summary->services_flapping): ?>
|
||||
<span class="state flap_detection flapping">
|
||||
<span class="state flapping">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_is_flapping' => 1)
|
||||
|
@ -94,8 +96,8 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="state notifications">
|
||||
<?php if ($hosts_not_triggering_notifications): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_notifications_enabled' => 0)
|
||||
|
@ -103,6 +105,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
<?= $hosts_not_triggering_notifications; ?> hosts disabled
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_notifications_enabled' => 1)
|
||||
|
@ -113,8 +116,8 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="state notifications">
|
||||
<?php if ($services_not_triggering_notifications): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_notifications_enabled' => 0)
|
||||
|
@ -122,6 +125,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
<?= $services_not_triggering_notifications; ?> hosts disabled
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_notifications_enabled' => 1)
|
||||
|
@ -139,8 +143,8 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="state eventhandlers">
|
||||
<?php if ($hosts_not_processing_event_handlers): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_event_handler_enabled' => 0)
|
||||
|
@ -148,6 +152,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
<?= $hosts_not_processing_event_handlers; ?> hosts disabled
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_event_handler_enabled' => 1)
|
||||
|
@ -158,8 +163,8 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="state notifications">
|
||||
<?php if ($services_not_processing_event_handlers): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_event_handler_enabled' => 0)
|
||||
|
@ -167,6 +172,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
|||
<?= $services_not_processing_event_handlers; ?> hosts disabled
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_event_handler_enabled' => 1)
|
||||
|
|
|
@ -50,4 +50,10 @@
|
|||
@colorInvalid: #999;
|
||||
@colorUnreachable: #dd66ff;
|
||||
@colorUnreachableHandled: #ee99ff;
|
||||
@colorActiveCheck: #44bb77;
|
||||
@colorPassiveCheck: #44ccaa;
|
||||
@colorDisabledCheck: #ff5566;
|
||||
@colorEnabled: #44bb77;
|
||||
@colorDisabled: #cccccc;
|
||||
@colorFlapping: #ff5566;
|
||||
|
||||
|
|
|
@ -273,11 +273,24 @@ span.state {
|
|||
margin: 0.2em 0.5em 0.2em 0.5em;
|
||||
}
|
||||
|
||||
/* span.state title element */
|
||||
span.state caption {
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
/* span.state Subtitle element */
|
||||
span.state.subtitle {
|
||||
color: black;
|
||||
}
|
||||
|
||||
span.state.ok, span.state.up {
|
||||
background-color: @colorOk;
|
||||
}
|
||||
|
||||
span.state.pending {
|
||||
background-color: @colorPending;
|
||||
}
|
||||
|
||||
span.state.warning {
|
||||
background-color: @colorWarning;
|
||||
}
|
||||
|
@ -306,6 +319,30 @@ span.state.invalid {
|
|||
background-color: @colorInvalid;
|
||||
}
|
||||
|
||||
span.state.check_active {
|
||||
background-color: @colorActiveCheck;
|
||||
}
|
||||
|
||||
span.state.check_passive {
|
||||
background-color: @colorPassiveCheck;
|
||||
}
|
||||
|
||||
span.state.check_disabled {
|
||||
background-color: @colorDisabledCheck;
|
||||
}
|
||||
|
||||
span.state.enabled {
|
||||
background-color: @colorEnabled;
|
||||
}
|
||||
|
||||
span.state.disabled {
|
||||
background-color: @colorDisabled;
|
||||
}
|
||||
|
||||
span.state.flapping {
|
||||
background-color: @colorFlapping;
|
||||
}
|
||||
|
||||
.summary a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
|
@ -333,6 +370,10 @@ span.state.invalid {
|
|||
color: #333;
|
||||
}
|
||||
|
||||
.summary span.state.disabled > a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.summary span.state {
|
||||
width: 26em;
|
||||
vertical-align: top;
|
||||
|
|
Loading…
Reference in New Issue