diff options
author | Adam Stokes <hackr@cypherbook.com> | 2013-03-06 17:56:13 -0500 |
---|---|---|
committer | Adam Stokes <hackr@cypherbook.com> | 2013-03-06 17:56:13 -0500 |
commit | 06c9fa1cc4ec053c457aa5aba57c3dfef92b86de (patch) | |
tree | 668e94215f94b5fa28fb122fc7e077cc66814a5a | |
parent | 8b82848804790965c8b6bc3628868c417d266b86 (diff) | |
download | sos-06c9fa1cc4ec053c457aa5aba57c3dfef92b86de.tar.gz |
3 New plugins
- sos/plugins/azure: Microsoft Azure Agent
- sos/plugins/juju: Ubuntu JUJU
- sos/plugins/maas: Ubuntu MAAS
Signed-off-by: Adam Stokes <hackr@cypherbook.com>
-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") + |