diff options
-rw-r--r-- | sos/plugins/azure.py | 29 | ||||
-rw-r--r-- | sos/plugins/juju.py | 24 | ||||
-rw-r--r-- | sos/plugins/maas.py | 29 |
3 files changed, 82 insertions, 0 deletions
diff --git a/sos/plugins/azure.py b/sos/plugins/azure.py new file mode 100644 index 00000000..b2c7f415 --- /dev/null +++ b/sos/plugins/azure.py @@ -0,0 +1,29 @@ +# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# 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, UbuntuPlugin + +class azure(Plugin, UbuntuPlugin): + """ Microsoft Azure Client Plugin + """ + packages = ('walinuxagent',) + + def setup(self): + self.addCopySpecs(["/var/log/waagent*", + "/var/lib/cloud", + "/etc/default/kv-kvp-daemon-init", + "/sys/module/hv_netvsc/parameters/ring_size", + "/sys/module/hv_storvsc/parameters/storvsc_ringbuffer_size"]) diff --git a/sos/plugins/juju.py b/sos/plugins/juju.py new file mode 100644 index 00000000..931eb436 --- /dev/null +++ b/sos/plugins/juju.py @@ -0,0 +1,24 @@ +# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# 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, UbuntuPlugin + +class juju(Plugin, UbuntuPlugin): + """ Juju Plugin + """ + def setup(self): + self.addCopySpecs(["/var/log/juju*", + "/var/lib/juju"]) diff --git a/sos/plugins/maas.py b/sos/plugins/maas.py new file mode 100644 index 00000000..b9478d05 --- /dev/null +++ b/sos/plugins/maas.py @@ -0,0 +1,29 @@ +# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# 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, UbuntuPlugin + +class maas(Plugin, UbuntuPlugin): + """ MAAS Plugin + """ + def setup(self): + self.addCopySpecs(["/etc/squid-deb-proxy", + "/etc/maas", + "/var/lib/maas", + "/var/log/maas*"]) + self.addCmdOutput("maas dumpdata") + self.addCmdOutput("/usr/bin/pg_dumpall") + |