diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-02-25 18:18:28 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-02-25 18:18:28 +0000 |
commit | 7a5cec65b06499b41512ca86ba22fba616e5d7e6 (patch) | |
tree | dd803ee082150fb4279b77ac0966cae89e0de5f1 | |
parent | e030bc1691cdd4b0dc921c245c7ba6c8d3dd3e68 (diff) | |
download | sos-7a5cec65b06499b41512ca86ba22fba616e5d7e6.tar.gz |
- plugins update
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@780 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r-- | sos/plugins/cluster.py | 2 | ||||
-rw-r--r-- | sos/plugins/libvirt.py | 21 | ||||
-rw-r--r-- | sos/plugins/rpm.py | 2 |
3 files changed, 24 insertions, 1 deletions
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py index e129739b..cf2afbd7 100644 --- a/sos/plugins/cluster.py +++ b/sos/plugins/cluster.py @@ -169,6 +169,8 @@ class cluster(sos.plugintools.PluginBase): if len(xpathContext.xpathEval("cluster/rm/resources/fs[@name='%s'][not(@fsid)]" % fsRefName)): self.addDiagnose("one or more nfs export do not have a fsid attribute set.") break + else: + self.addDiagnose("one or more nfs export do not have a fsid attribute set.") # cluster.conf file version and the in-memory cluster configuration version matches status, cluster_version, time = self.callExtProg("cman_tool status | grep 'Config version'") diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py new file mode 100644 index 00000000..07f82a18 --- /dev/null +++ b/sos/plugins/libvirt.py @@ -0,0 +1,21 @@ +### 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 +class libvirt(sos.plugintools.PluginBase): + """libvirt-related information + """ + def setup(self): + self.addCopySpec("/etc/libvirt/") + self.addCopySpec("/var/log/libvirt/") diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py index ca4a7577..774952a0 100644 --- a/sos/plugins/rpm.py +++ b/sos/plugins/rpm.py @@ -24,7 +24,7 @@ class rpm(sos.plugintools.PluginBase): self.addCopySpec("/var/log/rpmpkgs") if self.getOption("rpmq"): - self.collectExtOutput("/bin/rpm -qa --qf=\"%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}~~%{INSTALLTIME:date}\n\" --nosignature --nodigest|/bin/awk -F ~~ '{printf \"%-60s%s\\n\",$1,$2}'", root_symlink = "installed-rpms") + self.collectExtOutput("/bin/rpm -qa --qf=\"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}~~%{INSTALLTIME:date}\n\" --nosignature --nodigest|/bin/awk -F ~~ '{printf \"%-60s%s\\n\",$1,$2}'", root_symlink = "installed-rpms") if self.getOption("rpmva"): self.collectExtOutput("/bin/rpm -Va", root_symlink = "rpm-Va", timeout = 3600) |