aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-05-27 20:24:07 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-05-27 20:24:07 +0000
commitf992b795c87e84cd527f8593b0a2cb0a79b905a8 (patch)
tree3a5b4363e3392d542188c45ca797b2f5a1f0a9d9
parent70de8adf1a40deb25a0e832e7ba618e84020169c (diff)
downloadsos-f992b795c87e84cd527f8593b0a2cb0a79b905a8.tar.gz
Add support for rhel6/fedora rsyslog
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@963 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/general.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/general.py b/sos/plugins/general.py
index c78e409c..c3549060 100644
--- a/sos/plugins/general.py
+++ b/sos/plugins/general.py
@@ -56,6 +56,13 @@ class general(sos.plugintools.PluginBase):
for i in logs:
if not os.path.isfile(i): continue
self.addCopySpec(i)
+
+ if rhelver == 6:
+ logs=self.doRegexFindAll(r"^\S+\s+(\/.*log.*)\s+$", "/etc/rsyslog.conf")
+ for i in logs:
+ if not os.path.isfile(i): continue
+ self.addCopySpec(i)
+
return
def postproc(self):