Module: check_mk
Branch: master
Commit: a8e8a676a5662bab2806890b59f76be3fa22f762
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a8e8a676a5662b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 15 10:01:45 2016 +0200
smart: Supressing error message when calling manually and no megacli present
---
agents/plugins/smart | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/agents/plugins/smart b/agents/plugins/smart
index 0d02572..e8141e7 100755
--- a/agents/plugins/smart
+++ b/agents/plugins/smart
@@ -159,11 +159,11 @@ if which smartctl > /dev/null 2>&1 ; then
# Call MegaRaid submodule if conditions are met
- if type MegaCli >/dev/null ; then
+ if type MegaCli >/dev/null 2>&1; then
MegaCli_bin="MegaCli"
- elif type MegaCli64 >/dev/null ; then
+ elif type MegaCli64 >/dev/null 2>&1; then
MegaCli_bin="MegaCli64"
- elif type megacli >/dev/null ; then
+ elif type megacli >/dev/null 2>&1; then
MegaCli_bin="megacli"
else
MegaCli_bin="unknown"