fix hp-p2000-xmlapi - add ok state for health mode
This commit is contained in:
parent
757390d6ce
commit
e2b56a7696
|
@ -38,19 +38,22 @@ sub set_system {
|
||||||
$self->{thresholds} = {
|
$self->{thresholds} = {
|
||||||
# disk, enclosure, vdisk
|
# disk, enclosure, vdisk
|
||||||
default => [
|
default => [
|
||||||
|
['ok', 'OK'],
|
||||||
['degraded', 'WARNING'],
|
['degraded', 'WARNING'],
|
||||||
['failed', 'CRITICAL'],
|
['failed|fault', 'CRITICAL'],
|
||||||
['unknown|not available', 'UNKNOWN'],
|
['unknown|not available', 'UNKNOWN'],
|
||||||
],
|
],
|
||||||
fru => [
|
fru => [
|
||||||
|
['ok', 'OK'],
|
||||||
['absent', 'WARNING'],
|
['absent', 'WARNING'],
|
||||||
['fault', 'CRITICAL'],
|
['fault', 'CRITICAL'],
|
||||||
['not available', 'UNKNOWN'],
|
['not available', 'UNKNOWN'],
|
||||||
],
|
],
|
||||||
sensor => [
|
sensor => [
|
||||||
|
['ok', 'OK'],
|
||||||
['warning|not installed|unavailable', 'WARNING'],
|
['warning|not installed|unavailable', 'WARNING'],
|
||||||
['error|unrecoverable', 'CRITICAL'],
|
['error|unrecoverable', 'CRITICAL'],
|
||||||
['nknown|unsupported', 'UNKNOWN'],
|
['unknown|unsupported', 'UNKNOWN'],
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue