diff options
author | Ramesh Nachimuthu <rnachimu@redhat.com> | 2014-06-20 11:40:19 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-07-10 02:24:57 -0700 |
commit | 1fe7a5d03799ba043c99e7a3bdcac5579ed5174a (patch) | |
tree | 305e4c32b0054a0668ef43c31105d44850954898 | |
parent | 4486bdfd2a024fdbc6079ff81040639b38c65134 (diff) |
nagios-addons: return correct error mesage when glusterd is stopped
Fixing issue in error message returned for gluster related process
when 'glusterd' is stopped.
Change-Id: I8dd4595c45357ce7192db72ff3e8f2365e6fbefa
Bug-Url: https://bugzilla.redhat.com/1105568
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: http://review.gluster.org/8125
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
-rwxr-xr-x | plugins/check_gluster_proc_status.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_gluster_proc_status.py b/plugins/check_gluster_proc_status.py index f17ded4..5041ded 100755 --- a/plugins/check_gluster_proc_status.py +++ b/plugins/check_gluster_proc_status.py @@ -84,8 +84,8 @@ if __name__ == '__main__': status = utils.PluginStatusCode.CRITICAL msg = "Brick - %s not found" % args.brickPath elif args.type != _GLUSTERD: - msg = "UNKNOWN: Brick - %s status could not be determined" % \ - (args.brickPath) + msg = "UNKNOWN: Status could not be determined as " \ + "glusterd is not running" status = utils.PluginStatusCode.UNKNOWN print msg exit(status) |