From b325c4769a6632001f55097890a4fafda074c1ec Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 28 Oct 2015 12:08:37 +0100 Subject: [PATCH] monitoring: Display soft states in the host detail view refs #5543 --- .../views/scripts/partials/object/host-header.phtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/partials/object/host-header.phtml b/modules/monitoring/application/views/scripts/partials/object/host-header.phtml index 673d75d62..c24ddae49 100644 --- a/modules/monitoring/application/views/scripts/partials/object/host-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/object/host-header.phtml @@ -6,7 +6,12 @@ use Icinga\Module\Monitoring\Object\Host;
host_state, true) ?>
-
timeSince($object->host_last_state_change) ?>
+
+ timeSince($object->host_last_state_change) ?> + host_state > 0 && (int) $object->host_state_type === 0): ?> +
translate('Soft', 'Soft state') ?> host_attempt ?>
+ +
iconImage()->host($object) ?>