Red Hat Bugzilla – Bug 487434
A sosplugin to gather the details on logrotate such as its status, its debug information and the configuration files.
Last modified: 2009-09-02 03:31:48 EDT
Created attachment 333255 [details]
Steps to Reproduce:
a) Create a new file named 'logrotate.py' in the sos plugins directory '/usr/lib/python2.4/site-packages/sos/plugins/'.
b) Add the following content in the file 'logrotate.py' :
"""logrotate configuration files and debug info
self.collectExtOutput("/usr/sbin/logrotate --debug /etc/logrotate.conf",\
suggest_filename = "logrotate_debug")
suggest_filename = "logrotate_status")
c) The above steps will create the sos plugin named 'logrotate'. This plugin can be run individually using the command 'sosreport --only-plugins=logrotate'.
d) The collected details are :
(i) The output of logrotate run in debug mode, this will not actually execute logrotate but will parse the configurations and will output a test run. Useful to detect what the application is going to do in the actual run. This is saved as 'logrotate_debug' under 'sos_commands/logrotate'.
(ii) The current status of logrotate saved under sos_commands/logrotate under with the name 'logrotate_status'
(iii) The configuration files of logrotate under /etc/
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.