From 8ec21869a9eeb4149646800f6f638a3fc14faea1 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 7 Jul 2017 11:46:24 +0200 Subject: [PATCH 1/2] netlog: add bbu check for battery weak or hot --- netlog/netlog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netlog/netlog b/netlog/netlog index d0bf9c8..816166a 100755 --- a/netlog/netlog +++ b/netlog/netlog @@ -126,6 +126,12 @@ sub filter { if ($proc eq 'kernel') { /3w-9xxx.*ERROR/ and return 'DISKFAIL'; /3w-9xxx.*Enclosure added|timed out, resetting card/ and return 'CONTROLLERFAIL'; + /3w-9xxx.*Battery is (weak|not present)/ and return 'BBUFAIL'; + /3w-9xxx.*Battery temperature is (high|too high)/ and return 'BBUTEMP'; + /3w-sas.*ERROR/ and return 'DISKFAIL'; + /3w-sas.*Enclosure added|timed out, resetting card/ and return 'CONTROLLERFAIL'; + /3w-sas.*Battery is (weak|not present)/ and return 'BBUFAIL'; + /3w-sas.*Battery temperature is (high|too high)/ and return 'BBUTEMP'; # /^Pid:/ and return 'KERNEL'; /I\/O error in filesystem/ and return 'FSCRASH'; /I\/O error, dev/ and return 'FSCRASH'; From 62be7c17317d5aaae9de80f4864c6ec91fbf2925 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 11 Jul 2017 17:01:03 +0200 Subject: [PATCH 2/2] netlog: Combine 3w-9xxx and 3w-sas into a pattern --- netlog/netlog | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/netlog/netlog b/netlog/netlog index 816166a..a5e7abf 100755 --- a/netlog/netlog +++ b/netlog/netlog @@ -124,14 +124,10 @@ sub filter { $proc eq 'GNZ optic' and /BAD!/ and return 'GNZ'; $proc eq 'nachtwaechter' and return 'NACHTWAECHTER'; if ($proc eq 'kernel') { - /3w-9xxx.*ERROR/ and return 'DISKFAIL'; - /3w-9xxx.*Enclosure added|timed out, resetting card/ and return 'CONTROLLERFAIL'; - /3w-9xxx.*Battery is (weak|not present)/ and return 'BBUFAIL'; - /3w-9xxx.*Battery temperature is (high|too high)/ and return 'BBUTEMP'; - /3w-sas.*ERROR/ and return 'DISKFAIL'; - /3w-sas.*Enclosure added|timed out, resetting card/ and return 'CONTROLLERFAIL'; - /3w-sas.*Battery is (weak|not present)/ and return 'BBUFAIL'; - /3w-sas.*Battery temperature is (high|too high)/ and return 'BBUTEMP'; + /3w-(9xxx|sas).*ERROR/ and return 'DISKFAIL'; + /3w-(9xxx|sas).*Enclosure added|timed out, resetting card/ and return 'CONTROLLERFAIL'; + /3w-(9xxx|sas).*Battery is (weak|not present)/ and return 'BBUFAIL'; + /3w-(9xxx|sas).*Battery temperature is (high|too high)/ and return 'BBUTEMP'; # /^Pid:/ and return 'KERNEL'; /I\/O error in filesystem/ and return 'FSCRASH'; /I\/O error, dev/ and return 'FSCRASH';