From e2b56a76969069e0ca8d4ab83b7e93ded1006c1e Mon Sep 17 00:00:00 2001 From: Stephane Duret Date: Wed, 7 Aug 2019 11:34:56 +0200 Subject: [PATCH] fix hp-p2000-xmlapi - add ok state for health mode --- storage/hp/p2000/xmlapi/mode/health.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/storage/hp/p2000/xmlapi/mode/health.pm b/storage/hp/p2000/xmlapi/mode/health.pm index ae7ac292d..152c1d7ca 100644 --- a/storage/hp/p2000/xmlapi/mode/health.pm +++ b/storage/hp/p2000/xmlapi/mode/health.pm @@ -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'], ], };