Fixed config file collection for Debian/Ubuntu

Fixes: #222

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Capture /var/log/apache2.  Capture the versions of relevant packages.

Fixes #227

Signed-off-by: Raphael Badin <raphael.badin@canonical.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Add Raphael Badin to AUTHORS

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Capture MAAS services' upstart logs.

Fixes #229

Signed-off-by: Raphael Badin <raphael.badin@canonical.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Fix missing depends on python3:Depends

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Fix XS-Python-Version to XS-Python3-Version

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Update debian packaging to use pybuild and prep for 3.1 release.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Force foreman plugin to be quiet
Remove --upload option

The --upload option has a lot of limitations and has not been
widely used. Recent trends are to handle uploading data in
higher-level tools (e.g. redhat-support-tool or web based
management UIs) and the python ftp library does not support
modern requirements like HTTP proxy traversal or encryption.

Fixes Issue #217

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Remove obsolete rhel_version() usage from yum plugin

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Tidy up formatting of UI preamble text

The formatting of the template preamble used a narrow terminal
width since there is no native python method for obtaining the
actual terminal geometry and the common methods for doing this
are non-portable (e.g. Windows specific ioctls or shelling out
to stty).

This causes the top of the message to scroll off the screen on
a standard 80x25 terminal (e.g. putty or a non-resized
gnome-terminal or xterm window).

Remove the paragraph indentation and increase the assumed width
from 58 to 72 chars. This causes the message to fill a standard
80x25 terminal without scrolling.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Fix plugin load error due to Popen returning binary data. Other fixes listed
below

sos/plugins/anacron.py:
  - add one line description during verbose output for anacron

sos/archive.py, sos/utilities.py:
  - make sure to return a string after a Popen call
    which initially returns binary

sos/plugins/named.py:
  - Remove unused import of commands

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Fix unittests to report on strings and not binary

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Force foreman to be quiet

Fixes #230

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Add /etc/network/interfaces to networking plugin

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Update debian changelog

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Fix cluster module crm_report support

The cluster plugin used an obsolete sos-2.2 method to determine
the command output directory. This causes an excaption at runtime
since the referenced properties no longer exist.

The crm_report script also expects a --from date and will not
collect data unless this is passed. Default to passing a value 72
hours before the current time and add a 'crm_from' option to the
cluster module to allow the user to override this.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Remove obsolete diagnostics code from ldap plugin

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Ensure superclass postproc method is called in ldap plugin

Since the ldap plugins add files and post-processing methods at
multiple class levels (Ldap, RedHatLdap etc.) derived classes
must explicitly call their parent class's postproc() method to
apply all substitutions to collected data.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Fix cluster postproc regression

Commit 4ab4b08 inadvertently removed the postprocessing rules for
luci configuration. Revert that part of the commit.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>