From 06c9fa1cc4ec053c457aa5aba57c3dfef92b86de Mon Sep 17 00:00:00 2001 From: Adam Stokes Date: Wed, 6 Mar 2013 17:56:13 -0500 Subject: 3 New plugins - sos/plugins/azure: Microsoft Azure Agent - sos/plugins/juju: Ubuntu JUJU - sos/plugins/maas: Ubuntu MAAS Signed-off-by: Adam Stokes --- sos/plugins/azure.py | 29 +++++++++++++++++++++++++++++ sos/plugins/juju.py | 24 ++++++++++++++++++++++++ sos/plugins/maas.py | 29 +++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 sos/plugins/azure.py create mode 100644 sos/plugins/juju.py create mode 100644 sos/plugins/maas.py 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 +# +# 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 +# +# 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 +# +# 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") + -- cgit