Bug 536960 - include nscd debug logs in sosreport
Summary: include nscd debug logs in sosreport
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sos
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Adam Stokes
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-11 22:46 UTC by Jeff Bastian
Modified: 2010-03-30 08:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-30 08:08:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to include nscd debug logs (491 bytes, patch)
2009-11-11 22:50 UTC, Jeff Bastian
no flags Details | Diff
patch to include nscd debug logs (946 bytes, patch)
2009-11-12 14:33 UTC, Jeff Bastian
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0201 0 normal SHIPPED_LIVE sosreport bug fix and enhancement update 2010-03-29 12:26:44 UTC

Description Jeff Bastian 2009-11-11 22:46:32 UTC
Description of problem:
sosreport includes /etc/nscd.conf, but it would also be useful to grab the debug logs if nscd is in running with debugging enabled.

Attached is a patch to check if debugging is enabled in /etc/nscd.conf, and if so, include the nscd debug log in the sosreport.


Version-Release number of selected component (if applicable):
sos-1.7-9.27.el5.noarch

How reproducible:
every time

Steps to Reproduce:
1. enable the 'logfile' and increase the 'debug-level' to 9 in /etc/nscd.conf
2. service nscd restart
3. sosreport
  
Actual results:
/etc/nscd.conf is included in the sosreport, but not /var/log/nscd.log

Expected results:
/var/log/nscd.log is included too

Additional info:

Comment 1 Jeff Bastian 2009-11-11 22:50:08 UTC
Created attachment 369113 [details]
patch to include nscd debug logs

Comment 2 Jeff Bastian 2009-11-12 14:33:34 UTC
Created attachment 369219 [details]
patch to include nscd debug logs

Here is an updated patch that puts a size limit of 50 MiB on the log files (similar to syslog).  (If nscd runs with debugging enabled for a week or more, the log files can grow to 100s of MiBs or more.)

Comment 7 errata-xmlrpc 2010-03-30 08:08:08 UTC
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.

http://rhn.redhat.com/errata/RHBA-2010-0201.html


Note You need to log in before you can comment on or make changes to this bug.