aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-05-19 15:15:51 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-05-19 15:15:51 +0000
commit80ccc800d1ef7ce4cf3b9199b390b8fbcd9c024d (patch)
treefd96bb361e7530aaa7413238ed65ff8a7f5b2384
parent5de7fbfdac105f0a74ff88fc36bc73d33830d8ac (diff)
downloadsos-80ccc800d1ef7ce4cf3b9199b390b8fbcd9c024d.tar.gz
Added corosync plugin, removed openais
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@960 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/corosync.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/sos/plugins/corosync.py b/sos/plugins/corosync.py
new file mode 100644
index 00000000..c44a42ea
--- /dev/null
+++ b/sos/plugins/corosync.py
@@ -0,0 +1,39 @@
+### This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+import sos.plugintools
+import os, re
+import time, libxml2
+import glob
+
+class corosync(sos.plugintools.PluginBase):
+ """ corosync information
+ """
+
+ def checkenabled(self):
+ self.files = ['/usr/sbin/corosync']
+ self.packages = ['corosync']
+ return sos.plugintools.PluginBase.checkenabled(self)
+
+ def setup(self):
+ self.collectExtOutput("corosync-quorumtool -l")
+ self.collectExtOutput("corosync-quorumtool -s")
+ self.collectExtOutput("corosync-cpgtool")
+ self.collectExtOutput("corosync-objctl -a")
+ self.collectExtOutput("corosync-fplay")
+ self.addCopySpec("/var/lib/corosync/fdata")
+ self.collectExtOutput("/usr/sbin/corosync-objctl -w runtime.blackbox.dump_state=$(date +\%s)")
+ self.collectExtOutput("/usr/sbin/corosync-objctl -w runtime.blackbox.dump_flight_data=$(date +\%s)")
+ self.callExtProg("killall -USR2 corosync")
+ self.addCopySpec("/var/log/cluster/corosync.log")