From a7ff54b70154d85b782edc48ccff006c3e82b158 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Tue, 29 Sep 2020 20:41:57 -0400 Subject: [PATCH 1/2] Fix missing quote on status check my bad :( --- plugins/dynamix/scripts/statuscheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/scripts/statuscheck b/plugins/dynamix/scripts/statuscheck index 3a65199a0..c13ac3a77 100755 --- a/plugins/dynamix/scripts/statuscheck +++ b/plugins/dynamix/scripts/statuscheck @@ -183,7 +183,7 @@ $warn = ($error0 || $error3) ? "alert" : (($error1 || $error2) ? "warning" : "no $stat = $warn=="normal" ? "[PASS]" : "[FAIL]"; $info = "Array has $size disk".($size==1 ? "" : "s").($parity ? " ({$word}parity".($cache ? " & cache)" : ")") : ($cache ? " ({$word}cache)" : "")); $message = implode('\n', $data); -exec("$notify -s ".escapeshellarg("Notice [$server] - array health report $stat")." -d ".escapeshellarg("$info")." -m ".escapeshellarg("$message")." -i ".escapeshellarg("$warn $output")."-l '/Main'); +exec("$notify -s ".escapeshellarg("Notice [$server] - array health report $stat")." -d ".escapeshellarg("$info")." -m ".escapeshellarg("$message")." -i ".escapeshellarg("$warn $output")."-l '/Main'"); exit(0); ?> From c22a39948148528804e939366f0046ddc0148224 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Tue, 29 Sep 2020 20:46:10 -0400 Subject: [PATCH 2/2] Update statuscheck --- plugins/dynamix/scripts/statuscheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/scripts/statuscheck b/plugins/dynamix/scripts/statuscheck index c13ac3a77..d48c73e7d 100755 --- a/plugins/dynamix/scripts/statuscheck +++ b/plugins/dynamix/scripts/statuscheck @@ -183,7 +183,7 @@ $warn = ($error0 || $error3) ? "alert" : (($error1 || $error2) ? "warning" : "no $stat = $warn=="normal" ? "[PASS]" : "[FAIL]"; $info = "Array has $size disk".($size==1 ? "" : "s").($parity ? " ({$word}parity".($cache ? " & cache)" : ")") : ($cache ? " ({$word}cache)" : "")); $message = implode('\n', $data); -exec("$notify -s ".escapeshellarg("Notice [$server] - array health report $stat")." -d ".escapeshellarg("$info")." -m ".escapeshellarg("$message")." -i ".escapeshellarg("$warn $output")."-l '/Main'"); +exec("$notify -s ".escapeshellarg("Notice [$server] - array health report $stat")." -d ".escapeshellarg("$info")." -m ".escapeshellarg("$message")." -i ".escapeshellarg("$warn $output")." -l '/Main'"); exit(0); ?>