Node: set missing state class if node is missing

Does not yet work for process nodes, we might be forced to introduce
a full-blown "missing flag" for our numeric state
This commit is contained in:
Thomas Gelf 2015-02-06 23:32:17 +01:00
parent 9c2f5e0063
commit 98358cc64a

View file

@ -256,6 +256,7 @@ abstract class Node
{
$id = $this->getId($prefix);
$state = strtolower($this->getStateName());
if ($this->isMissing()) $state = 'missing';
$handled = $this->isAcknowledged() || $this->isInDowntime();
$html = sprintf(
'<table class="bp %s%s%s" id="%s"><tbody><tr>',