| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
The path "/etc/named.conf" was made into a class variable to avoid
repeating the string through the file. Make sure all uses qualify
the variable appropriately.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Separate the command line logic from the rest of the SoSReport
class and add a new SoSOptions class to contain it.
SoSOptions may either be initialised from a command line by
passing in an argument list to the initializer or by creating
an empty object and setting values for individual properties.
For now a SoSOptions object is initialized in the SoSReport
initializer (from the argument list passed from __main__).
Eventually this will move into __main__ allowing SoSOptions and
SoSReport to become an interface for external users.
The next step is to move all input validation into the SoSOptions
class (it's currently spread around the code that uses the
options).
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
Rename the option variable listPlugins to list_plugins to conform
with pep8 and other uses in the options set.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reorganise the SoSReport object's execute() method to facilitate
separation of the command line and report generation logic:
- Rename ensure_plugins() as verify_plugins() and have it return
a boolean to the execute() method.
- Push logging down from execute into the individual action
methods that carry out the tasks being logged.
- Have execute() return a boolean indicating whether the
requested operation completed successfully or not.
Longer term it may be better to define an enumeration class for
sos return statuses. This would allow more expression than simple
'pass' or 'fail' and would help the move toward an API.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
| |
The path "/sys/module" was made into a class variable to avoid
repeating the string through the file. Make sure all uses qualify
the variable appropriately.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|\
| |
| |
| |
| | |
Conflicts:
sos/plugins/ldap.py
|
| | |
|
|\ \
| | |
| | | |
Minor fixes and reformat
|
| | | |
|
| | | |
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Reorder the list of collected files so that all *info appear
together to avoid duplication and other errors creeping in.
Get rid of /proc/ksyms (2.4) and replace with /proc/kallsyms.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The modinfo collection for the set of loaded modules was using a
nasty handrolled pipeline of lsmod | cut |.. to generate a list
of module names to pass to modinfo.
Rip all that out and replace it with an os.listdir('/sys/module').
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|\ \
| | |
| | | |
fix OSX policy loading
|
| | |
| | |
| | |
| | | |
Changed the detection logic to not collide with OS X
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The old SELinux module has had no maintenance in some time. Add
the output of the following commands:
- sestatus -b [ SELinux status and booleans ]
- selinuxdefcon root
- selinuxconlist root
- selinuxexeccon /bin/passwd
Add '-v' to fixfiles command line to produce more verbose output.
Drop all setroubleshoot support - this is an optional package for
all supported distributions and should be handled in a separate
sos plug-in.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| | |
Move the check on the sar logging directory from setup() to a
check_enabled() method and add XML data collection via sadf -x
to allow the collected performance data to be imported by other
tools on the analysis host.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
Commit ab00491 introduced a duplicate _exit() method with different
parameters. Delete it.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|\ \
| | |
| | | |
Fix tabs to spaces in plugins
|
| | |
| | |
| | |
| | | |
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Make sure that all places in the sar plug-in that need to
reference the sar log path do so using the sa_path variable.
This enables the plug-in to work on other distributions by
changing the value of sa_path in a new subclass.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| |/ /
|/| |
| | |
| | | |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
Make sure the ubuntu policy class imports the DebianPlugin tagging
class and move initialisation off valid_subclasses from class
scope to the constructor since the superclass will reset the
property value when its initialiser is called.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Remove left-over bits of the old threading infrastructure such
as the "please_exit()" plugin method and must_exit instance
variable.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|\ \
| | |
| | | |
Update README.md
|
| | |
| | |
| | | |
Due to the results from the Debian packaging policy this package was renamed to sosreport from sos. Updating readme to reflect that
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The sar module tries to check for the existence of a binary at
some exact path. Since all call outs now go through PATH this no
longer works leading to a bogus error level log message.
Remove this check and also move the accompanying check on
/var/lib/sa into a separate check_enabled method - without this
path being present there is nothing for the plug-in to collect.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The refactoring in the previous merge commit introduced a bug in
the option handling for the auditd plugin ('syslogsize' instead
of 'logsize' when referencing the option in setup()).
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
sos/plugins/auditd.py
sos/plugins/corosync.py
sos/plugins/dovecot.py
sos/plugins/general.py
sos/plugins/ldap.py
sos/plugins/lsbrelease.py
sos/plugins/mysql.py
sos/plugins/named.py
sos/plugins/networking.py
sos/plugins/nis.py
sos/plugins/ntp.py
sos/plugins/pam.py
sos/plugins/postfix.py
sos/plugins/pxe.py
sos/plugins/samba.py
sos/plugins/sendmail.py
sos/plugins/snmp.py
sos/plugins/startup.py
sos/policies/debian.py
Fixed up numerous bits of breakage due to the recent PATH
changes in master and also refactored some of the newly ported
plug-ins to reduce the amount of code duplication between
distro versions of common plug-ins.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \ |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| |/ / |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|