From: Dan Mick Date: Sat, 4 Jun 2016 01:12:01 +0000 (-0700) Subject: smart.sh: default rc to 0 (saw false UNKNOWNs with non-raid) X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=03ebe4e517ae32206737eb883a787ba7384615a7;p=ceph-cm-ansible.git smart.sh: default rc to 0 (saw false UNKNOWNs with non-raid) Signed-off-by: Dan Mick --- 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