aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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