Address Node which is UP or OK with downtime.

This commit is contained in:
Ravi Kumar Kempapura Srinivasa 2021-09-28 13:58:28 +02:00 committed by Johannes Meyer
parent f0aae66544
commit af4226aa43
3 changed files with 4 additions and 3 deletions

View file

@ -74,7 +74,7 @@ class BpNode extends Node
$this->counters['MISSING']++;
} else {
$state = $child->getStateName($this->getChildState($child));
if ($child->isHandled()) {
if ($child->isHandled() && ($state !== 'UP' && $state !== 'OK')) {
$state = $state . '-HANDLED';
}

View file

@ -6,7 +6,7 @@
min-width: 2em;
padding: .25em;
text-align: center;
border: 1px solid black;
border: 1px solid @body-bg-color;
&.state-critical {
background-color: @color-critical

View file

@ -13,6 +13,7 @@
li > ul > li:first-child:not(:last-child) .state-badge {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border-right: 0;
}
li > ul > li:last-child:not(:first-child) .state-badge {
@ -21,7 +22,7 @@
}
> li:not(:last-child) {
margin-right: .25em;
margin-right: 1px;
}
}
}