Bug 170100

Summary: logwatch reports incomplete disk usage
Product: Red Hat Enterprise Linux 4 Reporter: Christian Iseli <Christian.Iseli>
Component: logwatchAssignee: Ivana Varekova <varekova>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-07 10:14:59 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:

Description Christian Iseli 2005-10-07 09:13:05 UTC
Description of problem:
When reporting the current disk status, the zz-disk_space utility does:
df -h | grep '^/dev/'

However, df sometimes reports the partition usage on two lines, e.g.:
/dev/mapper/Volume00-LogVol00
                      112G   65G   43G  61% /database

Thus the mailed report only contains the first line, which is not very useful...

Version-Release number of selected component (if applicable):
logwatch-5.2.2-1

How reproducible:
Always, if you have a long path to the device entry

Steps to Reproduce:
1. Create a partition with a long path for its device name
2. Mount it
3. Wait for logwatch's email
  
Actual results:
/dev/mapper/Volume00-LogVol00


Expected results:
dev/mapper/Volume00-LogVol00
                      112G   65G   43G  61% /database


Additional info:
I'd suggest removing the "|grep" part...  or using df -hl (or -hP, because
the P seems to force the output on a single line).

Comment 1 Ivana Varekova 2005-10-07 10:14:59 UTC

*** This bug has been marked as a duplicate of 152419 ***