Re: problem with LogWatch showing diskspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In /etc/log.d/scripts/services/zz-disk_space you'll probably find it's
running commands like...

 echo "------------------ Disk Space --------------------"
   echo
   df -h | grep '^/dev/'
   echo
elif [ "$PRINTING" = "y" ] ; then
   echo
   echo
   echo "------------------ Disk Space --------------------"

If you change the "df -h" to "df -Ph" that'll print POSIX compiant
output for LVM devices all on one line.

Will.



On 6/2/05, Bill Tangren <bjt@xxxxxxxxxxxxxxxx> wrote:
> I have a problem getting LogWatch to show the disk space on some (but
> not all) of my RHEL ES4 systems. This is what it usually shows:
> 
> ------------------ Disk Space --------------------
> 
> /dev/mapper/VolGroup00-LogVol00
> /dev/hda1              99M   12M   82M  13% /boot
> 
> /dev/mapper/VolGroup00-LogVol00 is the main partition on my hard disk. I
> am using three of my servers as hot backups to three others, so I need
> to keep an eye on disk usage.
> 
> On other systems, this is what I see in LogWatch:
> 
> 
> ------------------ Disk Space --------------------
> 
> /dev/hda2             108G   26G   78G  25% /
> /dev/hda1              99M  9.5M   85M  11% /boot
> 
> 
> I have tried googling on this, but no luck. Does anyone know what may be
> the problem?
> 
> TIA,
> 
> Bill Tangren
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux