aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [docker] capture logs of running containers, add ubuntu supportAdam Stokes2014-08-111-7/+40
| | | | | | | | | Query `docker ps` and capture log output from current running containers. Additionally, add support for Ubuntu systems and address a nuance where Ubuntu systems use a different binary name for docker since a previous package already owns the docker binary name. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [plugin] make Plugin logging methods privateBryn M. Reeves2014-08-099-58/+58
| | | | | | Related: #348. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [selinux,auditd] move ausearch collection to auditd pluginBryn M. Reeves2014-08-082-1/+1
| | | | | | Fixes #310. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] remove duplicate import for 'traceback' moduleBryn M. Reeves2014-08-081-1/+0
| | | | | | Fixes #359. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [utilities] remove unused importsBryn M. Reeves2014-08-081-2/+0
| | | | | | Fixes #358. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [distupgrade,openshift] fix regex substitution API usageBryn M. Reeves2014-08-082-11/+11
| | | | | | These two were using the legacy (sos-2.x) methods names. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [pam] add faillock and pam_tally2 outputBryn M. Reeves2014-08-081-1/+5
| | | | | | Fixes #351. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] fix policy section headingsBryn M. Reeves2014-08-071-3/+3
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] add policies api referenceAdam Stokes2014-08-072-0/+9
| | | | | | | Include the base policy plugin reference in the auto-generated documentation. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [Makefile] makefile tasks to work with python2 and 3Adam Stokes2014-08-073-6/+6
| | | | | | | Fixed some of the inline python statements to support makefile rules in both python2 and python3 Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [archive] log add_string exceptionAdam Stokes2014-08-071-2/+3
| | | | | | | | | | | Log any permission related exceptions when running plugins as non-root. Eventually this information can be reviewed to see the impact of running plugins as non-root users to better decide where root is needed on a per plugin basis. References #164 Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [activemq] add Ubuntu supportAdam Stokes2014-08-071-1/+13
| | | | | | | | These files are provided by default with an Ubuntu ActiveMq installation. Fixes: GH#271 Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [general] Move Red Hat specifics to RedHatGeneralBryn M. Reeves2014-08-051-2/+2
| | | | | | Fixes: #69. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [general] remove /etc/exportsBryn M. Reeves2014-08-051-1/+0
| | | | | | | | Belongs to NFSServer. Related: #69. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [general,upstart] move upstart specifics to Upstart pluginBryn M. Reeves2014-08-052-3/+2
| | | | | | Related: #69. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [startup] add /etc/inittab and move rc.d from RedHat to StartupBryn M. Reeves2014-08-051-1/+4
| | | | | | Related: #69. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [general] remove duplicate /etc/init collectionBryn M. Reeves2014-08-051-1/+0
| | | | | | | | Already handled by the upstart plugin. Related: #69. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [lvm2] Extend reporting fields for pvs, vgs and lvs.Jose Castillo2014-08-041-3/+8
| | | | | | | | | | | | | | | There were some useful columns missing from the output of the commands 'pvs', 'vgs' and 'lvs' that we gather in the lvm plugin. This patch extends the reporting fields with: - Information about metadata, like copies and size of mda, to the output of the 'pvs' command. - Information about metadata and tags for the output of the 'vgs' command, and - information about tags for the output of 'lvs'. Attempts to solve at least partially issue #331. Signed-off-by: Jose Castillo <jcastillo@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com> (Minor pep8 fixups.)
* [docs] sync README.md and index.rstBryn M. Reeves2014-08-032-5/+13
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] improve index formattingBryn M. Reeves2014-08-031-1/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] Fix Read the Docs URL in README.mdBryn M. Reeves2014-08-021-1/+1
| | | | | | | http://readthedocs.org does not respond - the correct host is www.readthedocs.org. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] update README.md to point to sos.readthedocs.orgBryn M. Reeves2014-08-021-1/+11
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [travis-ci] run pep8 against code treeAdam Stokes2014-08-021-1/+2
| | | | | | | | To ensure proper code formatting and syntax is being done this enables travis-ci to continually check pep8 compliance. This is useful as it will tend to spot a lot of syntax errors that the unittests may not pick up. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [policies] pep8 complianceAdam Stokes2014-08-025-57/+76
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [utilities] pep8 complianceAdam Stokes2014-08-021-24/+32
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [plugins] pep8 compliance for rest of pluginsAdam Stokes2014-08-0267-864/+925
| | | | | | All plugins should now be in compliance with pep8 Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [plugins] more pep8/pyflake plugin cleanupAdam Stokes2014-08-0175-1057/+1180
| | | | | | | There's a lot of changes, however, it is primarily formatting of existing code and no new code is introduced. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [docs] link the mailing list in restructured text properlyAdam Stokes2014-08-011-1/+1
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [docs] fix a typo in the mailing list descriptionBryn M. Reeves2014-08-012-3/+3
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] include sos import path for resolving modulesAdam Stokes2014-08-011-0/+3
| | | | | | | During documentation generation we need to be able to resolve the modules on other systems while generating the documentation. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [plugins] - pep8 fixes for first patch of sub pluginsAdam Stokes2014-08-0116-171/+193
| | | | | | pep8/pyflakes fixes for first set of plugins abrt-ceph Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [docs] - Add links to wiki documentationAdam Stokes2014-08-011-3/+3
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [docs] - Add API documentation generationAdam Stokes2014-08-018-0/+560
| | | | | | | Use sphinx to generate api docs which we can tie into a service like Read the docs in order to have reference documentation on our apis. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [ldap] - fix undefined variable ldap_confAdam Stokes2014-08-011-1/+1
| | | | | | Code was attempting to access a variable within the incorrect scope. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [plugins] - pep8 fixesAdam Stokes2014-08-011-68/+83
| | | | | | Code formatting for pep8/pyflakes Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [archive,reporting] - more pep8/pyflakes fixesAdam Stokes2014-08-014-40/+65
| | | | | | No code changes just formatting to make the linters happy. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [megacli] - remove rogue print statementAdam Stokes2014-08-011-3/+1
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [nfsserver] add /etc/exports.dBryn M. Reeves2014-07-311-1/+3
| | | | | | Fixes #326. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gluster] add redhat-storage-releaseBryn M. Reeves2014-07-311-0/+1
| | | | | | Fixes #329. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gluster] tidy up add_copy_spec() usageBryn M. Reeves2014-07-311-15/+12
| | | | | | | | The gluster plugin has a pile of fragmented add_copy_spec() calls. Consolidate them into as few add_copy_specs() calls as possible and remove the cargo-cult positioning of logs at the end. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* Collect local FirewallD XML configjbainbri2014-07-311-0/+3
| | | | FirewallD looks for config files for icmptypes, zones, and services in /etc/firewalld/ and if none are found, falls back to /usr/lib/firewalld/. This way, changes made on the system are stored under /etc which overrides the default.
* [sosreport] make pep8 happyAdam Stokes2014-07-311-184/+220
| | | | | | | | | There were a ton of violations as far as pep8 is concerned. Corrected all of these in this particular file. There were even a few incorrect comparison syntax within the checking of particular plugin options that were corrected as well. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [sosreport] remove module commentAdam Stokes2014-07-311-1/+0
| | | | | | | This is part of an effort to cleanup syntax throughout the entire python codebase. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [rpm] reduce verify timeout to 180sBryn M. Reeves2014-07-311-1/+1
| | | | | | | | | | | | | | The initial rpm verify timeout was set to 3600s (one hour). This is insane; if a verify has not completed in that time then it's unlikely that it ever will. With the current set of verify patterns the total time taken in rpm (including both the verify and all other runs, e.g. policy initialisation) is under 60s on all my test hosts (bare metal and virtual). Allow a factor of three over this figure and set the timeout to 180s. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [pcp] use socket.gethostname() instead of shelling outBryn M. Reeves2014-07-311-8/+2
| | | | | | | | | | There's no need to take a fork to retrieve the system host name. Use the socket.gethostname() function instead (plugins also have no businness importing things from sos.utilities directly - all the useful functions in there have wrapper methods in the Plugin class, e.g. call_ext_prog(), check_ext_prog() etc.). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ldap] add output of 'certutil -L'Bryn M. Reeves2014-07-181-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ldap] add more forbidden paths and restrict file collectionBryn M. Reeves2014-07-181-2/+9
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ds] add 'certutil -L' collection for slapd instancesBryn M. Reeves2014-07-181-0/+9
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ds] exclude paths containing directory server secretsBryn M. Reeves2014-07-181-1/+14
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] Improve README.md formattingBryn M. Reeves2014-07-151-4/+6
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>