diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2008-10-01 14:01:05 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2008-10-01 14:01:05 +0000 |
commit | c5bf8bbac0c3c672d6bb22d0c54c9ab479abfde3 (patch) | |
tree | c9be093b0b1d1823c6bd124ac73d74bf17f44541 /src | |
parent | 5ea9880b4312acef636926e6454bb3d136ce44ae (diff) | |
download | sos-c5bf8bbac0c3c672d6bb22d0c54c9ab479abfde3.tar.gz |
add anaconda-ks.cfg
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@527 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/sos/plugins/general.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/sos/plugins/general.py b/src/lib/sos/plugins/general.py index 062e0674..648dee75 100644 --- a/src/lib/sos/plugins/general.py +++ b/src/lib/sos/plugins/general.py @@ -39,6 +39,15 @@ class general(sos.plugintools.PluginBase): self.collectExtOutput("/bin/date", root_symlink = "date") self.collectExtOutput("/usr/bin/uptime", root_symlink = "uptime") self.addCopySpec("/root/anaconda-ks.cfg") + self.collectExtOutput("/bin/env") + + if self.getOption('all_logs'): + logs=self.doRegexFindAll(r"^\S+\s+(\S+)", "/etc/syslog.conf") + for i in logs: + i = i.lstrip("-") + if not os.path.isfile(i): continue + self.addCopySpec(i) + return def postproc(self): |