monitoring: Use StateBadges::STATE_UP in the host groups overview

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-27 14:43:52 +02:00
parent 8de1c6c0f9
commit d8f45fc9b1
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ if (! $this->compact): ?>
$stateBadges
->setUrl('monitoring/list/hosts')
->add(
StateBadges::STATE_OK,
StateBadges::STATE_UP,
array(
'host_state' => 0,
'hostgroup_name' => $hostgroup->hostgroup_name,

View File

@ -283,6 +283,7 @@ class StateBadges extends AbstractWidget
)
->createBadge(static::STATE_UNKNOWN, $badges)
->createBadge(static::STATE_OK, $badges)
->createBadge(static::STATE_UP, $badges)
->createBadge(static::STATE_PENDING, $badges);
return $badges
->getRenderer()