From 03ebe4e517ae32206737eb883a787ba7384615a7 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Fri, 3 Jun 2016 18:12:01 -0700 Subject: [PATCH] smart.sh: default rc to 0 (saw false UNKNOWNs with non-raid) Signed-off-by: Dan Mick --- roles/testnode/files/libexec/smart.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/testnode/files/libexec/smart.sh b/roles/testnode/files/libexec/smart.sh index 486b5cc..2f71a60 100755 --- a/roles/testnode/files/libexec/smart.sh +++ b/roles/testnode/files/libexec/smart.sh @@ -21,8 +21,8 @@ numdrives=0 failingdrives=0 # Fallback message for UNKNOWN return code output unknownmsg="Unknown error" -# Return code for nagios (Default to UNKNOWN) -rc=3 +# Return code for nagios (Default to SUCCESS) +rc=0 # Array of messages indicating drive health. Output after nagios status. declare -a messages -- 2.39.5