[icinga-checkins] icinga.org: icingaweb2/master: Servicegroups list: show how many services are unknown and handled

git at icinga.org git at icinga.org
Fri May 20 17:08:00 CEST 2016


Module: icingaweb2
Branch: master
Commit: 1be8e14772671e4a56a22384d555c508bb54ba59
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=1be8e14772671e4a56a22384d555c508bb54ba59

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Fri May 20 17:05:51 2016 +0200

Servicegroups list: show how many services are unknown and handled

fixes #11708

---

 modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php b/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php
index 04aa026..31f4434 100644
--- a/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php
+++ b/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php
@@ -321,7 +321,10 @@ class StateBadges extends AbstractWidget
                 array(static::STATE_UNREACHABLE, static::STATE_UNREACHABLE_HANDLED),
                 $badges
             )
-            ->createBadge(static::STATE_UNKNOWN, $badges)
+            ->createBadgeGroup(
+                array(static::STATE_UNKNOWN, static::STATE_UNKNOWN_HANDLED),
+                $badges
+            )
             ->createBadge(static::STATE_OK, $badges)
             ->createBadge(static::STATE_UP, $badges)
             ->createBadge(static::STATE_PENDING, $badges);



More information about the icinga-checkins mailing list