aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-06-17 17:09:54 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-06-17 17:09:54 +0100
commitddc700436a6b2d3f74f75adee74d697ee634599c (patch)
tree3edc2a380cfc8ea30d246d9759ec3d6abecb74aa
parent6f538168a82d1e7dfa9b829de7dc52281d978688 (diff)
downloadsos-ddc700436a6b2d3f74f75adee74d697ee634599c.tar.gz
[samba] collect additional files
Add some additional files to the samba plugin and switch from collecting whole directories (e.g. /etc/samba, /var/log/samba) to collecting individual named files within those directories. This gives more predictable behaviour and more manageable default report sizes. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/samba.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/sos/plugins/samba.py b/sos/plugins/samba.py
index a6a3c9c0..9183d07e 100644
--- a/sos/plugins/samba.py
+++ b/sos/plugins/samba.py
@@ -22,8 +22,11 @@ class Samba(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
def setup(self):
self.add_copy_specs([
- "/etc/samba",
- "/var/log/samba/*",])
+ "/etc/samba/smb.conf",
+ "/etc/samba/lmhosts",
+ "/var/log/samba/log.smbd",
+ "/var/log/samba/log.nmbd"
+ ])
self.add_cmd_outputs([
"wbinfo --domain='.' -g",
"wbinfo --domain='.' -u",
@@ -31,4 +34,10 @@ class Samba(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
])
+class RedHatSamba(Samba, RedHatPlugin):
+
+ def setup(self):
+ super(RedHatSamba, self).setup()
+ self.add_copy_spec("/etc/sysconfig/samba")
+
# vim: et ts=4 sw=4