diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-09-08 14:15:33 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-09-08 14:15:33 +0000 |
commit | b7a01a7a09b542fd4f7ca98063c8f7b09114dab2 (patch) | |
tree | ba5f599ad69b448d92ed71573dccc76a4e16eaec /src/lib | |
parent | 2b3b662c11c71617edd6e7350643c1142436aee4 (diff) | |
download | sos-b7a01a7a09b542fd4f7ca98063c8f7b09114dab2.tar.gz |
openais addition
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@628 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sos/plugins/openais.py | 36 |
1 files changed, 36 insertions, 0 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 |