Bug 170100 - logwatch reports incomplete disk usage
Summary: logwatch reports incomplete disk usage
Keywords:
Status: CLOSED DUPLICATE of bug 152419
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: logwatch
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Ivana Varekova
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-07 09:13 UTC by Christian Iseli
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-07 10:14:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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