diff --git a/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml b/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml
new file mode 100644
index 000000000..b16607be7
--- /dev/null
+++ b/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml
@@ -0,0 +1,83 @@
+ $this->object->host_name));
+$currentUrl = Url::fromRequest()->without('limit')->getRelativeUrl();
+
+?>
+
compact ? ' data-base-target="col1"' : '' ?>>
+= $this->qlink(sprintf($this->translate('%s service configured:'), $this->stats->services_total), $selfUrl) ?>
+stats->services_ok > 0): ?>
+ = $this->qlink(
+ $this->stats->services_ok,
+ $selfUrl,
+ array('service_state' => 0),
+ array('title' => sprintf($this->translate('Services with state %s'), strtoupper($this->translate('ok'))))
+) ?>
+
+ 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $state) {
+ $pre = 'services_' . $state;
+ if ($this->stats->$pre) {
+ $handled = $pre . '_handled';
+ $unhandled = $pre . '_unhandled';
+ $paramsHandled = array('service_state' => $stateId, 'service_handled' => 1);
+ $paramsUnhandled = array('service_state' => $stateId, 'service_handled' => 0);
+ if ($this->stats->$unhandled) {
+ $compareUrl = $selfUrl->with($paramsUnhandled)->getRelativeUrl();
+ } else {
+ $compareUrl = $selfUrl->with($paramsHandled)->getRelativeUrl();
+ }
+
+ if ($compareUrl === $currentUrl) {
+ $active = ' active';
+ } else {
+ $active = '';
+ }
+
+ echo '';
+ if ($this->stats->$unhandled) {
+
+ echo $this->qlink(
+ $this->stats->$unhandled,
+ $selfUrl,
+ $paramsUnhandled,
+ array('title' => sprintf($this->translate('Unandled services with state %s'), strtoupper($this->translate($state))))
+ );
+ }
+ if ($this->stats->$handled) {
+
+ if ($selfUrl->with($paramsHandled)->getRelativeUrl() === $currentUrl) {
+ $active = ' active';
+ } else {
+ $active = '';
+ }
+ if ($this->stats->$unhandled) {
+ echo '';
+ }
+ echo $this->qlink(
+ $this->stats->$handled,
+ $selfUrl,
+ $paramsHandled,
+ array('title' => sprintf($this->translate('Handled services with state %s'), strtoupper($this->translate($state))))
+ );
+ if ($this->stats->$unhandled) {
+ echo "\n";
+ }
+ }
+ echo "\n";
+ }
+}
+
+?>
+stats->services_pending): ?>
+ = $this->qlink(
+ $this->stats->services_pending,
+ $selfUrl,
+ array('service_state' => 99),
+ array('title' => sprintf($this->translate('Services with state %s'), strtoupper($this->translate('pending'))))
+) ?>
+
+
+