diff options
-rw-r--r-- | sos/plugins/samba.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sos/plugins/samba.py b/sos/plugins/samba.py index 10153343..2f34179f 100644 --- a/sos/plugins/samba.py +++ b/sos/plugins/samba.py @@ -12,17 +12,33 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -from sos.plugins import Plugin, RedHatPlugin +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -class samba(Plugin, RedHatPlugin): +class Samba(Plugin): """Samba related information """ + plugin_name = "samba" + def setup(self): self.add_copy_specs([ "/etc/samba", - "/var/log/samba/*", + "/var/log/samba/*",]) + self.add_cmd_output("/usr/bin/testparm -s -v") + +class RedHatSamba(Samba, RedHatPlugin): + """Samba related information for RedHat based distributions + """ + def setup(self): + super(RedHatSamba, self).setup() + self.add_copy_specs([ "/etc/krb5.conf", "/etc/krb5.keytab"]) self.add_cmd_output("/usr/bin/wbinfo -g") self.add_cmd_output("/usr/bin/wbinfo -u") self.add_cmd_output("/usr/bin/testparm -s -v") + +class DebianSamba(Samba, DebianPlugin, UbuntuPlugin): + """Samba related information for Debian based distributions + """ + def setup(self): + super(DebianSamba, self).setup() |