diff --git a/modules/monitoring/application/views/scripts/show/components/notifications.phtml b/modules/monitoring/application/views/scripts/show/components/notifications.phtml
new file mode 100644
index 000000000..09c54539e
--- /dev/null
+++ b/modules/monitoring/application/views/scripts/show/components/notifications.phtml
@@ -0,0 +1,35 @@
+state, array(0, 99))) {
+ return;
+}
+
+?>
+
+ Notifications |
+
+current_notification_number > 0) {
+ if ((int) $object->current_notification_number === 1) {
+ $msg = sprintf(
+ $this->translate('A notication has been sent for this issue %s ago'),
+ $this->timeSince($object->last_notification)
+ );
+ } else {
+ $msg = sprintf(
+ $this->translate('%s notications have been sent for this issue'),
+ $object->current_notification_number
+ ) . ' ' . sprintf(
+ 'The last one occured %s ago',
+ $this->timeSince($object->last_notification)
+ );
+ }
+ echo $msg;
+} else {
+ echo $this->translate('No notification has been sent for this issue');
+}
+?>
+ |
+
diff --git a/modules/monitoring/application/views/scripts/show/components/status.phtml b/modules/monitoring/application/views/scripts/show/components/status.phtml
index 458c08c8b..73da5cb1e 100644
--- a/modules/monitoring/application/views/scripts/show/components/status.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/status.phtml
@@ -47,43 +47,5 @@
- 0): ?>
- service_description) {
- $notificationsHref = $this->href(
- 'monitoring/list/notifications',
- array(
- 'host' => $object->host_name,
- 'service' => $object->service_description
- )
- );
- } else {
- $notificationsHref = $this->href(
- 'monitoring/list/notifications',
- array(
- 'host' => $object->host_name
- )
- );
- }
- ?>
-
-
- Last Notification
-
-
-
-
diff --git a/modules/monitoring/application/views/scripts/show/host.phtml b/modules/monitoring/application/views/scripts/show/host.phtml
index 2c7083690..145f7be8a 100644
--- a/modules/monitoring/application/views/scripts/show/host.phtml
+++ b/modules/monitoring/application/views/scripts/show/host.phtml
@@ -9,6 +9,7 @@
= $this->render('show/components/comments.phtml') ?>
+= $this->render('show/components/notifications.phtml') ?>
= $this->render('show/components/downtime.phtml') ?>
= $this->render('show/components/flapping.phtml') ?>
= $this->render('show/components/perfdata.phtml') ?>
diff --git a/modules/monitoring/application/views/scripts/show/service.phtml b/modules/monitoring/application/views/scripts/show/service.phtml
index 4123120a9..95ce6a0d6 100644
--- a/modules/monitoring/application/views/scripts/show/service.phtml
+++ b/modules/monitoring/application/views/scripts/show/service.phtml
@@ -9,6 +9,7 @@
= $this->render('show/components/comments.phtml') ?>
+= $this->render('show/components/notifications.phtml') ?>
= $this->render('show/components/downtime.phtml') ?>
= $this->render('show/components/flapping.phtml') ?>
= $this->render('show/components/perfdata.phtml') ?>
diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
index dba3e4b76..eb5702dbb 100644
--- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
+++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
@@ -79,8 +79,8 @@ class StatusQuery extends IdoQuery
'host_attempt' => 'hs.current_check_attempt || \'/\' || hs.max_check_attempts',
'host_check_type' => 'hs.check_type',
'host_state_type' => 'hs.state_type',
- 'host_last_notification' => 'hs.last_notification',
- 'host_next_notification' => 'hs.next_notification',
+ 'host_last_notification' => 'UNIX_TIMESTAMP(hs.last_notification)',
+ 'host_next_notification' => 'UNIX_TIMESTAMP(hs.next_notification)',
'host_no_more_notifications' => 'hs.no_more_notifications',
'host_problem_has_been_acknowledged' => 'hs.problem_has_been_acknowledged',
'host_acknowledgement_type' => 'hs.acknowledgement_type',
diff --git a/modules/monitoring/library/Monitoring/DataView/ServiceStatus.php b/modules/monitoring/library/Monitoring/DataView/ServiceStatus.php
index caf622e59..c4520a065 100644
--- a/modules/monitoring/library/Monitoring/DataView/ServiceStatus.php
+++ b/modules/monitoring/library/Monitoring/DataView/ServiceStatus.php
@@ -71,6 +71,7 @@ class ServiceStatus extends DataView
'service_attempt',
'service_last_notification',
'service_check_command',
+ 'service_current_notification_number',
'host_icon_image',
'host_acknowledged',
'host_output',