summaryrefslogtreecommitdiffstats
path: root/plugins/check_proc_util.py
diff options
context:
space:
mode:
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