aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/sos/plugins/general.py9
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):