diff --git a/modules/monitoring/application/controllers/HealthController.php b/modules/monitoring/application/controllers/HealthController.php
index c6f239d0c..bbfdcb030 100644
--- a/modules/monitoring/application/controllers/HealthController.php
+++ b/modules/monitoring/application/controllers/HealthController.php
@@ -129,6 +129,9 @@ class HealthController extends Controller
));
$this->applyRestriction('monitoring/filter/objects', $servicestats);
$this->view->servicestats = $servicestats->fetchRow();
+ $this->view->unhandledServiceProblems = $this->view->servicestats->services_critical_unhandled
+ + $this->view->servicestats->services_unknown_unhandled
+ + $this->view->servicestats->services_warning_unhandled;
$hoststats = $this->backend->select()->from('hoststatussummary', array(
'hosts_total',
@@ -142,7 +145,12 @@ class HealthController extends Controller
'hosts_pending',
));
$this->applyRestriction('monitoring/filter/objects', $hoststats);
- $this->view->hoststats = $hoststats;
+ $this->view->hoststats = $hoststats->fetchRow();
+ $this->view->unhandledhostProblems = $this->view->hoststats->hosts_down_unhandled
+ + $this->view->hoststats->hosts_unreachable_unhandled;
+
+ $this->view->unhandledProblems = $this->view->unhandledhostProblems
+ + $this->view->unhandledServiceProblems;
$this->view->runtimevariables = (object) $this->backend->select()
->from('runtimevariables', array('varname', 'varvalue'))
diff --git a/modules/monitoring/application/views/scripts/health/stats.phtml b/modules/monitoring/application/views/scripts/health/stats.phtml
index 30828cec7..275fbf4f8 100644
--- a/modules/monitoring/application/views/scripts/health/stats.phtml
+++ b/modules/monitoring/application/views/scripts/health/stats.phtml
@@ -9,16 +9,56 @@ if (! $this->compact): ?>
-
-
+
= $this->unhandledProblems ?> = $this->translate('Unhandled Problems:') ?>
+ = $this->unhandledProblems ?>
+
+
+
+
+ | = $this->translate('Service Problems:') ?> |
+
+
+ =
+ $this->qlink(
+ $this->unhandledServiceProblems,
+ 'monitoring/list/services?service_problem=1&service_handled=0&sort=service_severity'
+ )
+ ?>
+
+ |
+
+
+ | = $this->translate('Host Problems:') ?> |
+
+
+ =
+ $this->qlink(
+ $this->unhandledhostProblems,
+ 'monitoring/list/hosts?host_problem=1&host_handled=0'
+ )
+ ?>
+
+ |
+
+
+
+
+
stats = $hoststats ?>
= $this->render('list/components/hostssummary.phtml') ?>
-
+
+
+ | = $this->translate('Runtime Variables') ?> |
+ = $this->translate('Host Checks') ?> |
+ |
+ |
+
+
| = $this->translate('Total') ?> |
@@ -30,17 +70,17 @@ if (! $this->compact): ?>
+
stats = $servicestats ?>
= $this->render('list/components/servicesummary.phtml') ?>
-
- |
- = $this->translate('Amount') ?> |
+ = $this->translate('Runtime Variables') ?> |
+ = $this->translate('Service Checks') ?> |
= $this->translate('Per Host') ?> |
|
@@ -60,12 +100,13 @@ if (! $this->compact): ?>
+
= $this->translate('Active checks') ?>
- |
+ = $this->translate('Check Performance') ?> |
= $this->translate('Checks') ?> |
= $this->translate('Latency') ?> |
= $this->translate('Execution time') ?> |
@@ -86,9 +127,18 @@ if (! $this->compact): ?>
+
= $this->translate('Passive checks') ?>
+
+
+ | = $this->translate('Check Performance') ?> |
+ = $this->translate('Passive Checks') ?> |
+ |
+ |
+
+
| = $this->translate('Host Checks') ?> |
diff --git a/public/css/icinga/widgets.less b/public/css/icinga/widgets.less
index 95b64429a..9f884e746 100644
--- a/public/css/icinga/widgets.less
+++ b/public/css/icinga/widgets.less
@@ -234,6 +234,11 @@ li li .badge-container {
background-color: @colorInvalid;
}
+.badge a[href] {
+ color: white;
+ text-decoration: none;
+}
+
#menu nav ul .badge {
margin-right: 0em;
top: 0.3em;