From c408fed3cd1b960a53bbde75e842ff498de79420 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Wed, 11 Jun 2014 14:26:51 +0530 Subject: glusterpmd: fix issue in CTDB status Fixing issue in CTDB status. SMB and NFS status codes were not passed properly to the check_proc_util.getCtdbStatus() method. Bug-Url: https://bugzilla.redhat.com/1107977 Change-Id: I4bb7f61488e83fb1fbd6d0b4369b782ada37af7c Signed-off-by: Ramesh Nachimuthu Reviewed-on: http://review.gluster.org/8033 Reviewed-by: Sahina Bose --- plugins/check_proc_status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/check_proc_status.py b/plugins/check_proc_status.py index 31825f1..99f7832 100755 --- a/plugins/check_proc_status.py +++ b/plugins/check_proc_status.py @@ -125,7 +125,8 @@ class App(): if smbStatus.isStatusChanged(status, msg): nscautils.send_to_nsca(hostName, _smbService, status, msg) - status, msg = check_proc_util.getCtdbStatus(smbStatus, nfsStatus) + status, msg = check_proc_util.getCtdbStatus(smbStatus.code, + nfsStatus.code) if ctdbStatus.isStatusChanged(status, msg): nscautils.send_to_nsca(hostName, _ctdbdService, status, msg) -- cgit