summaryrefslogtreecommitdiffstats
path: root/plugins/nscautils.py.in
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-05-02 16:49:16 +0530
committerSahina Bose <sabose@redhat.com>2014-05-05 02:38:50 -0700
commit4d66729bfae280e3765f11b34c34617e499ab25e (patch)
tree93160454593090200c04533357ab7d6a333f7175 /plugins/nscautils.py.in
parentec287fcc84f8bebb52ccaad63f894689fb79862d (diff)
plugins: Plugin to handle server quorum
Plugin to handle log messages related to server quorum Message is parsed for msgid as the msgid is not correctly populated now Fixed pep8 errors in nscautils and added tests Also changed the service name to remove "Status" -it now reads Volume Quota, for instance Change-Id: I339ed16b3806f853ae3555a998974c47157c95ad Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7648 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
Diffstat (limited to 'plugins/nscautils.py.in')
-rw-r--r--plugins/nscautils.py.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/nscautils.py.in b/plugins/nscautils.py.in
index cf5f58b..703e13f 100644
--- a/plugins/nscautils.py.in
+++ b/plugins/nscautils.py.in
@@ -69,15 +69,15 @@ def send_to_nsca_subproc(hostName, serviceName, exitStatus, resultString):
resultString)
nagiosIP = getNagiosServerIP()
p = subprocess.Popen(
- args=(
- __NSCA_CMD_PATH.cmd,
- '-c', __NSCA_CONF_PATH,
- '-H', nagiosIP,
- ),
- stdin=subprocess.PIPE,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- close_fds=True,
+ args=(
+ __NSCA_CMD_PATH.cmd,
+ '-c', __NSCA_CONF_PATH,
+ '-H', nagiosIP,
+ ),
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ close_fds=True,
)
stdout, stderr = p.communicate(input=cmddata)
@@ -86,4 +86,4 @@ def send_to_nsca_subproc(hostName, serviceName, exitStatus, resultString):
def vol_service_name(volName, statusType=None):
- return "Volume Status %s - %s" % (statusType, volName)
+ return "Volume %s - %s" % (statusType, volName)