problem with LogWatch showing diskspace
Will McDonald
wmcdonald at gmail.com
Thu Jun 2 15:13:01 UTC 2005
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 at aa.usno.navy.mil> 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 at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
More information about the redhat-list
mailing list