Merge pull request #1610 from s-duret/fix-hp-p2000-health-status

fix hp-p2000-xmlapi - add ok state for health mode
This commit is contained in:
qgarnier 2019-08-07 11:39:55 +02:00 committed by GitHub
commit 80c97f3130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -38,19 +38,22 @@ sub set_system {
$self->{thresholds} = {
# disk, enclosure, vdisk
default => [
['ok', 'OK'],
['degraded', 'WARNING'],
['failed', 'CRITICAL'],
['failed|fault', 'CRITICAL'],
['unknown|not available', 'UNKNOWN'],
],
fru => [
['ok', 'OK'],
['absent', 'WARNING'],
['fault', 'CRITICAL'],
['not available', 'UNKNOWN'],
],
sensor => [
['ok', 'OK'],
['warning|not installed|unavailable', 'WARNING'],
['error|unrecoverable', 'CRITICAL'],
['nknown|unsupported', 'UNKNOWN'],
['unknown|unsupported', 'UNKNOWN'],
],
};