From e49c94ef218c0347c9d29fb413234aef5574eeb0 Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 6 Nov 2022 09:54:27 +0100 Subject: [PATCH] added new RAID OK status ^ +State : active, checking $|^ +State : clean, checking $ --- runchecks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runchecks.yml b/runchecks.yml index 0514afe..a7997a8 100644 --- a/runchecks.yml +++ b/runchecks.yml @@ -131,7 +131,7 @@ mdadm -D --scan | egrep "^ARRAY" | cut -d" " -f2 | while read array do mdadm -D $array >$g_tmp/raiddetails - if ! cat $g_tmp/raiddetails | egrep "^ +State : " | egrep -q "^ +State : clean $|^ +State : active $|^ +State : active, checking $" + if ! cat $g_tmp/raiddetails | egrep "^ +State : " | egrep -q "^ +State : clean $|^ +State : active $|^ +State : active, checking $|^ +State : clean, checking $" then g_echo_error "RAID $array state unhealthy - mdadm -D $array: $(cat $g_tmp/raiddetails)" fi