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-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F246%2Fhead;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 486b5ccb..2f71a609 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