diff options
-rw-r--r-- | src/lib/sos/plugins/openais.py | 36 | ||||
-rwxr-xr-x | src/sosreport | 1 |
2 files changed, 36 insertions, 1 deletions
diff --git a/src/lib/sos/plugins/openais.py b/src/lib/sos/plugins/openais.py new file mode 100644 index 00000000..11aa12f3 --- /dev/null +++ b/src/lib/sos/plugins/openais.py @@ -0,0 +1,36 @@ +### 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 + +class openais(sos.plugintools.PluginBase): + """openais related information + """ + def checkenabled(self): + if self.isInstalled("openais") or os.path.exists("/usr/sbin/openais-confdb-display"): + return True + return False + + openais_config_opts = [('totem,token'), ('totem,consensus'), + ('totem,token_retransmits_before_loss_const'), + ('cman,quorum_dev_poll'), ('cman,expected_votes'), + ('cman,two_node')] + + def setup(self): + self.collectExtOutput("openais-confdb-display") + for item in self.openais_config_opts: + obj, opt = item + self.collectExtOutput("openais-confdb-display %s %s" % (obj, opt)) + return diff --git a/src/sosreport b/src/sosreport index 63f45928..c2b1580a 100755 --- a/src/sosreport +++ b/src/sosreport @@ -38,7 +38,6 @@ from time import strftime, localtime, time from pwd import getpwuid import gettext from threading import Semaphore -from multiprocessing import Process, Lock __version__ = 1.8 |