mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
Introduce NODE_EMPTY state for empty nodes
An empty node state called `NODE_EMPTY` has been introduced with a value of 128 in class `Node`, and this state has been mapped to value *0* in structure `$stateToSortStateMap`.
This commit is contained in:
parent
32abce2529
commit
e533ff95f5
1 changed files with 4 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ abstract class Node
|
||||||
const ICINGA_DOWN = 1;
|
const ICINGA_DOWN = 1;
|
||||||
const ICINGA_UNREACHABLE = 2;
|
const ICINGA_UNREACHABLE = 2;
|
||||||
const ICINGA_PENDING = 99;
|
const ICINGA_PENDING = 99;
|
||||||
|
const NODE_EMPTY = 128;
|
||||||
|
|
||||||
/** @var bool Whether to treat acknowledged hosts/services always as UP/OK */
|
/** @var bool Whether to treat acknowledged hosts/services always as UP/OK */
|
||||||
protected static $ackIsOk = false;
|
protected static $ackIsOk = false;
|
||||||
|
|
@ -42,6 +43,7 @@ abstract class Node
|
||||||
self::ICINGA_CRITICAL => 4,
|
self::ICINGA_CRITICAL => 4,
|
||||||
self::ICINGA_WARNING => 2,
|
self::ICINGA_WARNING => 2,
|
||||||
self::ICINGA_OK => 0,
|
self::ICINGA_OK => 0,
|
||||||
|
self::NODE_EMPTY => 0
|
||||||
);
|
);
|
||||||
|
|
||||||
/** @var string Alias of the node */
|
/** @var string Alias of the node */
|
||||||
|
|
@ -115,7 +117,8 @@ abstract class Node
|
||||||
'WARNING',
|
'WARNING',
|
||||||
'CRITICAL',
|
'CRITICAL',
|
||||||
'UNKNOWN',
|
'UNKNOWN',
|
||||||
99 => 'PENDING'
|
99 => 'PENDING',
|
||||||
|
128 => 'EMPTY'
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue