summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-11-12 12:49:38 +0530
committerSahina Bose <sabose@redhat.com>2014-11-12 00:02:21 -0800
commit40a0f0670b126897f5a98445ed51669b9dc88ec6 (patch)
tree34ac8943b7233961ffeddacb0b3663f379a9c13b
parent60064cf343ac5c4393f0cef65a21cb505edcff10 (diff)
plugins: Modified the quorum messages
Modified the quorum messages to be friendlier Change-Id: I8d76a094cc455847a76ece5c1744b8399f4e7e58 Bug-Url: https://bugzilla.redhat.com/1109702 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/9101 Reviewed-by: Ramesh N <rnachimu@redhat.com>
-rwxr-xr-xplugins/check_gluster_syslog.py4
-rw-r--r--tests/test_check_gluster_syslog.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/check_gluster_syslog.py b/plugins/check_gluster_syslog.py
index 46bc344..6a37f52 100755
--- a/plugins/check_gluster_syslog.py
+++ b/plugins/check_gluster_syslog.py
@@ -53,13 +53,13 @@ def processQuorumMsg(msgid, msg, level):
# [MSGID: 106002] Server quorum lost for volume dist.
# Stopping local bricks.
# [MSGID: 106001] Server quorum not met. Rejecting operation.
- alertMsg = "QUORUM: Server quorum lost."
+ alertMsg = "QUORUM: Cluster server-side quorum lost."
pluginstatus = utils.PluginStatusCode.CRITICAL
# elif msgid == 106003:
elif "[MSGID: 106003]" in msg:
# [MSGID: 106003] Server quorum regained for volume dist.
# Starting local bricks.
- alertMsg = "QUORUM: Server quorum regained."
+ alertMsg = "QUORUM: Cluster server-side quorum regained."
pluginstatus = utils.PluginStatusCode.OK
if pluginstatus >= 0:
diff --git a/tests/test_check_gluster_syslog.py b/tests/test_check_gluster_syslog.py
index c5d64df..a3f341c 100644
--- a/tests/test_check_gluster_syslog.py
+++ b/tests/test_check_gluster_syslog.py
@@ -60,7 +60,8 @@ class TestGlusterSyslog(TestCaseBase):
mock_send_to_nsca.assert_called_with("test-cluster",
"Cluster - Quorum",
utils.PluginStatusCode.CRITICAL,
- "QUORUM: Server quorum lost.")
+ "QUORUM: Cluster server-side "
+ "quorum lost.")
@mock.patch('plugins.nscautils.getNagiosClusterName')
@mock.patch('plugins.nscautils.send_to_nsca_subproc')