= $this->sortControl->render($this); ?>
@@ -48,6 +49,7 @@ function formatDateString($self,$dateString){
Downtime ID |
Trigger ID |
Duration |
+
|
@@ -109,6 +111,22 @@ function formatDateString($self,$dateString){
= $this->util()->showHourMin(intval($downtime->downtime_duration)); ?>
+ $downtime->downtime_internal_downtime_id,
+ 'host' => $downtime->host_name
+ );
+
+ if ($downtime->object_type == 'service') {
+ $data['service'] = $downtime->service_description;
+ }
+
+ echo $commandHelper->simpleForm(
+ 'removedowntime',
+ 'Remove Downtime',
+ $data
+ );
+ ?>
|
diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml
index f795aa7a6..6e2009ff1 100644
--- a/modules/monitoring/application/views/scripts/list/hosts.phtml
+++ b/modules/monitoring/application/views/scripts/list/hosts.phtml
@@ -1,22 +1,14 @@
-= $this->tabs->render($this); ?>
-
getHelper('MonitoringState');
?>
+= $this->tabs->render($this); ?>
Hosts Status
-
= $this->sortControl->render($this); ?>
= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)); ?>
-
-
-
- | Status |
- Host |
-
-
+
@@ -27,11 +19,6 @@ $viewHelper = $this->getHelper('MonitoringState');
@@ -69,11 +56,11 @@ $viewHelper = $this->getHelper('MonitoringState');
host_active_checks_enabled): ?>
host_passive_checks_enabled): ?>
- {{ACTIVE_PASSIVE_CHECKS_DISABLED_ICON}}
+
-
+
@@ -89,32 +76,39 @@ $viewHelper = $this->getHelper('MonitoringState');
host_unhandled_service_count): ?>
-
+
= $host->host_unhandled_service_count; ?>
- = ucfirst($viewHelper->monitoringState($host, 'host')); ?> Since
- = $this->timeSince($host->host_last_state_change); ?> (= $host->host_current_check_attempt; ?>/= $host->host_max_check_attempts; ?>)
+ = ucfirst($viewHelper->monitoringState($host, 'host')); ?>
+
+ Since = $this->timeSince($host->host_last_state_change); ?>
+ host_state > 0): ?>
+
+ Attempt: = $host->host_current_check_attempt; ?>/= $host->host_max_check_attempts; ?>
+ (= ($host->host_state_type === '1') ? 'Hard' : 'Soft'; ?>)
+
+
|
+ host_icon_image) : ?>
+
+
+
+
- = $host->host_name ?> (= $host->host_address ?>)
+ = $host->host_name ?>
- host_action_url)): ?>
- Action
-
- host_notes_url)): ?>
- Notes
-
-
- = $this->escape(substr(strip_tags($host->host_output), 0, 10000)); ?>
+
+ = $this->escape(substr(strip_tags($host->host_output), 0, 10000)); ?>
+
|
diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml
index e1190e9f5..c7fb858c6 100644
--- a/modules/monitoring/application/views/scripts/list/services.phtml
+++ b/modules/monitoring/application/views/scripts/list/services.phtml
@@ -1,141 +1,120 @@
-= $this->tabs->render($this); ?>
-
getHelper('MonitoringState');
?>
+= $this->tabs->render($this); ?>
Services Status
-
= $this->sortControl->render($this); ?>
= $this->paginationControl($services, null, null, array('preserve' => $this->preserve)); ?>
-
-
-
- | Status |
- Service |
- Host |
- Output |
- |
-
-
href('monitoring/show/service',array(
- 'host' => $service->host_name,
- 'service' => $service->service_description
- )
- );
- $hostLink = $this->href('monitoring/show/host',array(
- 'host' => $service->host_name,
- )
- );
+ $serviceLink = $this->href(
+ 'monitoring/show/service',
+ array(
+ 'host' => $service->host_name,
+ 'service' => $service->service_description
+ )
+ );
+ $hostLink = $this->href(
+ 'monitoring/show/host',
+ array(
+ 'host' => $service->host_name,
+ )
+ );
+ $serviceStateName = strtolower($this->util()->getServiceStateName($service->service_state));
?>
activeRowHref === $serviceLink) ? 'class="active"' : ''; ?>>
+
+
- service_icon_image) : ?>
-
-
- |
-
-
service_handled && $service->service_state > 0): ?>
- {{UNHANDLED_ICON}}
+
service_acknowledged && !$service->service_in_downtime): ?>
- {{ACKNOWLEDGED_ICON}}
+
service_is_flapping): ?>
- {{FLAPPING_ICON}}
+
service_notifications_enabled): ?>
- {{NOTIFICATIONS_DISABLED_ICON}}
+
service_in_downtime): ?>
- {{IN_DOWNTIME_ICON}}
+
service_active_checks_enabled): ?>
service_passive_checks_enabled): ?>
- {{ACTIVE_PASSIVE_CHECKS_DISABLED_ICON}}
+
- {{ACTIVE_CHECKS_DISABLED_ICON}}
+
service_last_comment !== null): ?>
- {{COMMENT_ICON}}
+
|
-
- service_state_type == 0): ?>
-
- {{SOFTSTATE_ICON}}
-
-
- = ucfirst($viewHelper->monitoringState($service, 'service')); ?>
- Since
- = $this->timeSince($service->service_last_state_change); ?>
+ = ucfirst($viewHelper->monitoringState($service, 'service')); ?>
+
+
+ Since = $this->timeSince($service->service_last_state_change); ?>
+ service_state): ?>
+
+ Attempt:
+ = $service->service_current_check_attempt; ?>/= $service->service_max_check_attempts; ?>
+ (= ($service->service_state_type === '1') ? 'Hard' : 'Soft'; ?>)
+
+
|
-
-
- = $service->service_display_name; ?>
-
-
-
- service_action_url)): ?>
- Action
-
-
- service_notes_url)): ?>
- Notes
-
- |
-
- host_handled && $service->host_state > 0): ?>
-
- {{UNHANDLED_ICON}}
-
+ service_icon_image): ?>
+
+
+
-
- = $service->host_name; ?>
- host_state != 0): ?>
- (= ucfirst($viewHelper->monitoringState($service, 'host')); ?>)
-
- = $service->host_address ?>
-
- |
-
-
+ = $service->service_display_name; ?>
+
+ on
+ = $service->host_name; ?>
+ host_state != 0): ?>
+ (= ucfirst($viewHelper->monitoringState($service, 'host')); ?>)
+
+
+
+
= $this->escape(substr(strip_tags($service->service_output), 0, 10000)); ?>
+
|
diff --git a/public/css/icons.css b/public/css/icons.css
index f5508b888..ae314f4ff 100644
--- a/public/css/icons.css
+++ b/public/css/icons.css
@@ -1,104 +1,138 @@
+.icinga-icon-blank {
+ background: transparent;
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+}
.icinga-icon-acknowledgement {
- background: transparent url("../img/images/acknowledgement.png") center center no-repeat;
+ background: transparent url("../img/icons/acknowledgement.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-comment {
- background: transparent url("../img/images/comment.png") center center no-repeat;
+ background: transparent url("../img/icons/comment.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-create {
- background: transparent url("../img/images/create.png") center center no-repeat;
+ background: transparent url("../img/icons/create.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-dashboard {
- background: transparent url("../img/images/dashboard.png") center center no-repeat;
+ background: transparent url("../img/icons/dashboard.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-disabled {
- background: transparent url("../img/images/disabled.png") center center no-repeat;
+ background: transparent url("../img/icons/disabled.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-edit {
- background: transparent url("../img/images/edit.png") center center no-repeat;
+ background: transparent url("../img/icons/edit.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-error {
- background: transparent url("../img/images/error.png") center center no-repeat;
+ background: transparent url("../img/icons/error.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-flapping {
- background: transparent url("../img/images/flapping.png") center center no-repeat;
+ background: transparent url("../img/icons/flapping.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-in-downtime {
- background: transparent url("../img/images/in_downtime.png") center center no-repeat;
+ background: transparent url("../img/icons/in_downtime.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-remove {
- background: transparent url("../img/images/remove.png") center center no-repeat;
+ background: transparent url("../img/icons/remove.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-save {
- background: transparent url("../img/images/save.png") center center no-repeat;
+ background: transparent url("../img/icons/save.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-service {
- background: transparent url("../img/images/service.png") center center no-repeat;
+ background: transparent url("../img/icons/service.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-submit {
- background: transparent url("../img/images/submit.png") center center no-repeat;
+ background: transparent url("../img/icons/submit.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-unhandled {
- background: transparent url("../img/images/unhandled.png") center center no-repeat;
+ background: transparent url("../img/icons/unhandled.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
.icinga-icon-user {
- background: transparent url("../img/images/user.png") center center no-repeat;
+ background: transparent url("../img/icons/user.png") center center no-repeat;
display: inline-block;
width: 16px;
height: 16px;
}
+
+.icinga-icon-active-checks-disabled {
+ background: transparent url("../img/icons/active_checks_disabled.png") center center no-repeat;
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+}
+
+.icinga-icon-active-passive-checks-disabled {
+ background: transparent url("../img/icons/active_passive_checks_disabled.png") center center no-repeat;
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+}
+
+.icinga-icon-notification {
+ background: transparent url("../img/icons/notification.png") center center no-repeat;
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+}
+
+.icinga-icon-notification-disabled {
+ background: transparent url("../img/icons/notification_disabled.png") center center no-repeat;
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+}
\ No newline at end of file
diff --git a/public/css/main.css b/public/css/main.css
index 2c1c64bd1..5d187866d 100644
--- a/public/css/main.css
+++ b/public/css/main.css
@@ -24,6 +24,18 @@ body { padding-top: 70px; }
border: none;
}
+.inline-image {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ background: #c0c0c0 center center no-repeat;
+}
+
+.small-row {
+ font-size: 12px;
+ line-height: 16px;
+ display: block;
+}
/* ==========================================================================
Icinga Design
@@ -188,12 +200,10 @@ td {
.output-text {
font-size: 12px;
- line-height: 14px;
- display: inline-block;
+ line-height: 16px;
+ display: block;
}
-
-
/* ==========================================================================
Forms
========================================================================== */
@@ -291,10 +301,11 @@ select.input-sm {
background-color: #00cc33; /* xx */
}
-
+.tacheader-status-pending {
+ background-color: #bababa;
+}
/** Service status **/
-
.tacheader-status-critical {
background-color: #FF3300;
}
diff --git a/public/img/images/acknowledgement.png b/public/img/icons/acknowledgement.png
similarity index 100%
rename from public/img/images/acknowledgement.png
rename to public/img/icons/acknowledgement.png
diff --git a/public/img/icons/active_checks_disabled.png b/public/img/icons/active_checks_disabled.png
new file mode 100644
index 000000000..ef86c5322
Binary files /dev/null and b/public/img/icons/active_checks_disabled.png differ
diff --git a/public/img/icons/active_passive_checks_disabled.png b/public/img/icons/active_passive_checks_disabled.png
new file mode 100644
index 000000000..3a44ebcf9
Binary files /dev/null and b/public/img/icons/active_passive_checks_disabled.png differ
diff --git a/public/img/images/comment.png b/public/img/icons/comment.png
similarity index 100%
rename from public/img/images/comment.png
rename to public/img/icons/comment.png
diff --git a/public/img/images/create.png b/public/img/icons/create.png
similarity index 100%
rename from public/img/images/create.png
rename to public/img/icons/create.png
diff --git a/public/img/icons/csv.png b/public/img/icons/csv.png
new file mode 100644
index 000000000..5b419179e
Binary files /dev/null and b/public/img/icons/csv.png differ
diff --git a/public/img/images/dashboard.png b/public/img/icons/dashboard.png
similarity index 100%
rename from public/img/images/dashboard.png
rename to public/img/icons/dashboard.png
diff --git a/public/img/images/disabled.png b/public/img/icons/disabled.png
similarity index 100%
rename from public/img/images/disabled.png
rename to public/img/icons/disabled.png
diff --git a/public/img/icons/downtime_end.png b/public/img/icons/downtime_end.png
new file mode 100644
index 000000000..e1d0d9723
Binary files /dev/null and b/public/img/icons/downtime_end.png differ
diff --git a/public/img/icons/downtime_start.png b/public/img/icons/downtime_start.png
new file mode 100644
index 000000000..8e33280fb
Binary files /dev/null and b/public/img/icons/downtime_start.png differ
diff --git a/public/img/images/edit.png b/public/img/icons/edit.png
similarity index 100%
rename from public/img/images/edit.png
rename to public/img/icons/edit.png
diff --git a/public/img/images/error.png b/public/img/icons/error.png
similarity index 100%
rename from public/img/images/error.png
rename to public/img/icons/error.png
diff --git a/public/img/images/flapping.png b/public/img/icons/flapping.png
similarity index 100%
rename from public/img/images/flapping.png
rename to public/img/icons/flapping.png
diff --git a/public/img/icons/host.png b/public/img/icons/host.png
new file mode 100644
index 000000000..33e2f5dba
Binary files /dev/null and b/public/img/icons/host.png differ
diff --git a/public/img/icons/hostgroup.png b/public/img/icons/hostgroup.png
new file mode 100644
index 000000000..e71e3c92f
Binary files /dev/null and b/public/img/icons/hostgroup.png differ
diff --git a/public/img/images/in_downtime.png b/public/img/icons/in_downtime.png
similarity index 100%
rename from public/img/images/in_downtime.png
rename to public/img/icons/in_downtime.png
diff --git a/public/img/icons/json.png b/public/img/icons/json.png
new file mode 100644
index 000000000..4d0ae632a
Binary files /dev/null and b/public/img/icons/json.png differ
diff --git a/public/img/icons/notification.png b/public/img/icons/notification.png
new file mode 100644
index 000000000..ea805d561
Binary files /dev/null and b/public/img/icons/notification.png differ
diff --git a/public/img/icons/notification_disabled.png b/public/img/icons/notification_disabled.png
new file mode 100644
index 000000000..ec60e1813
Binary files /dev/null and b/public/img/icons/notification_disabled.png differ
diff --git a/public/img/icons/pdf.png b/public/img/icons/pdf.png
new file mode 100644
index 000000000..eefcef63b
Binary files /dev/null and b/public/img/icons/pdf.png differ
diff --git a/public/img/images/remove.png b/public/img/icons/remove.png
similarity index 100%
rename from public/img/images/remove.png
rename to public/img/icons/remove.png
diff --git a/public/img/images/save.png b/public/img/icons/save.png
similarity index 100%
rename from public/img/images/save.png
rename to public/img/icons/save.png
diff --git a/public/img/images/service.png b/public/img/icons/service.png
similarity index 100%
rename from public/img/images/service.png
rename to public/img/icons/service.png
diff --git a/public/img/icons/servicegroup.png b/public/img/icons/servicegroup.png
new file mode 100644
index 000000000..38ee3529a
Binary files /dev/null and b/public/img/icons/servicegroup.png differ
diff --git a/public/img/images/submit.png b/public/img/icons/submit.png
similarity index 100%
rename from public/img/images/submit.png
rename to public/img/icons/submit.png
diff --git a/public/img/icons/success.png b/public/img/icons/success.png
new file mode 100644
index 000000000..2f95639dd
Binary files /dev/null and b/public/img/icons/success.png differ
diff --git a/public/img/icons/uebersicht.png b/public/img/icons/uebersicht.png
new file mode 100644
index 000000000..e94c443e3
Binary files /dev/null and b/public/img/icons/uebersicht.png differ
diff --git a/public/img/images/unhandled.png b/public/img/icons/unhandled.png
similarity index 100%
rename from public/img/images/unhandled.png
rename to public/img/icons/unhandled.png
diff --git a/public/img/images/user.png b/public/img/icons/user.png
similarity index 100%
rename from public/img/images/user.png
rename to public/img/icons/user.png