[samba] collect additional files

Add some additional files to the samba plugin and switch from
collecting whole directories (e.g. /etc/samba, /var/log/samba) to
collecting individual named files within those directories.

This gives more predictable behaviour and more manageable default
report sizes.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[ovirt] add ovirt-scheduler-proxy logs

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[ctdb] Add plugin for Samba clustered databases

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[sar] remove LANG=C use from sar plugin

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[openshift] fix plugin_name

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[nfsserver] add output of 'exportfs -v'

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[selinux] pass --input-logs when calling ausearch

If ausearch is run without a tty it expects log data to be fed on
stdin. This causes the selinux plugin to appear to hang when run
e.g. over an ssh session. Force the command to use the logs
defined in auditd.conf by specifying --input-logs.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[cups] improve log size limiting

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[auditd] improve log size limiting

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[hardware] remove obsolete up2date_client hardware calls

Remove the calls to up2date_client's Hardware module and simplify
the plugin so we support Red Hat, Debian and Ubuntu from a single
module.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[cluster] collect gfs2 withdraw file

Collect /sys/fs/gfs2/*/withdraw.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[sar] minor style fixes

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[ipa] add ipa-replica-manage output

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[distupgrade] elide passwords in /root/preupgrade

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[anaconda] elide passwords in kickstart user directives

E.g.:

useradd --password '$6$oIW3o2Mr$XbWZKaM7nA.cQqudfDJScupXOia5h1u517t6Htx/Q/MgXm82Pc/OcytatTeI4ULNWOMJzvpCigWiL4xKP9PX4.' test

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[mysql] clean up plugin variable use and package lists

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[mysql] limit log collection and add support for MariaDB

Add support for the MariaDB fork of MySQL.

Since a MySQL or MariaDB instance may have very large log files under
/var/log/{mysql,mariadb}. For now restrict log collection to the main
demon log.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[mysql] add optional database dump support

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[mysql] make sure db credentials are not part of dump file name

Since we pass --user and --password on the mysqldump command line
we need to use suggest_filename to prevent those values appearing
in report paths.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[mysql] add all_logs option

Add an 'all_logs' option to the MySQL / MariaDB plugin to allow
the old behaviour of collecting all logs files to be requested.

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