summaryrefslogtreecommitdiffstats
path: root/plugins/check_proc_util.py
diff options
context:
space:
mode:
authorKanagaraj M <kmayilsa@redhat.com>2014-05-07 23:43:01 +0530
committerTimothy Asir <tim.gluster@gmail.com>2014-05-08 01:10:17 -0700
commitb87f9527515f27f145cc6b5cff1e68bab5cf2b21 (patch)
tree6ef1f358c59b15ba4d964f7711afb8454ff942e8 /plugins/check_proc_util.py
parent4c63ceaf48a3641adb4e087125d6698fa857ad37 (diff)
plugin: fix issue in smb monitoring
- changed the service name to 'SMB' - changed the default value to 'disable' Change-Id: I3b7a3b789495278e4b1de0a78e500994739d305a Signed-off-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-on: http://review.gluster.org/7701 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins/check_proc_util.py')
-rwxr-xr-xplugins/check_proc_util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_proc_util.py b/plugins/check_proc_util.py
index 20f57eb..94d620b 100755
--- a/plugins/check_proc_util.py
+++ b/plugins/check_proc_util.py
@@ -131,9 +131,9 @@ def getSmbStatus(volInfo):
# if smb is not running and any of the volume uses smb
# then its required to alert the user
for k, v in volInfo.iteritems():
- cifsStatus = v.get('options', {}).get('user.cifs', 'enable')
- smbStatus = v.get('options', {}).get('user.smb', 'enable')
- if cifsStatus == 'enable' and smbStatus == 'enable':
+ cifsStatus = v.get('options', {}).get('user.cifs', 'disable')
+ smbStatus = v.get('options', {}).get('user.smb', 'disable')
+ if cifsStatus == 'enable' or smbStatus == 'enable':
msg = "CRITICAL: Process smb is not running"
status = utils.PluginStatusCode.CRITICAL
break