summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/check_gluster_proc_status.py2
-rwxr-xr-xplugins/check_proc_status.py2
-rwxr-xr-xplugins/check_proc_util.py6
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_gluster_proc_status.py b/plugins/check_gluster_proc_status.py
index bc15672..da719d4 100755
--- a/plugins/check_gluster_proc_status.py
+++ b/plugins/check_gluster_proc_status.py
@@ -24,7 +24,7 @@ from glusternagios import glustercli
_NFS = "NFS"
-_SMB = "CIFS"
+_SMB = "SMB"
_CTDB = "CTDB"
_SHD = "SHD"
_QUOTA = "QUOTA"
diff --git a/plugins/check_proc_status.py b/plugins/check_proc_status.py
index 8895b0f..bf3b077 100755
--- a/plugins/check_proc_status.py
+++ b/plugins/check_proc_status.py
@@ -32,7 +32,7 @@ from glusternagios import glustercli
_nfsService = "NFS"
_shdService = "Self-Heal"
-_smbService = "CIFS"
+_smbService = "SMB"
_brickService = "Brick - %s"
_glusterdService = "Gluster Management"
_quotadService = "Quota"
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