Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 536960

Summary: include nscd debug logs in sosreport
Product: Red Hat Enterprise Linux 5 Reporter: Jeff Bastian <jbastian>
Component: sosAssignee: Adam Stokes <astokes>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: agk, ahecox, azelinka, bmr
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:08:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to include nscd debug logs
none
patch to include nscd debug logs none

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