problem with LogWatch showing diskspace
Bill Tangren
bjt at aa.usno.navy.mil
Thu Jun 2 16:35:50 UTC 2005
Mark Farmer wrote:
> Bill Tangren 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
>
>
> I had this on my boxes, I got around it by editing
> /etc/log.d/scripts/services/zz-disk_space & changing the script like this:
>
> df -h #| grep '^/dev/'
>
> I'm not sure exactly what causes it as i'm no scripter but looks like
> something to do with how the output is layed out, this is what I get now:
>
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/main-root
> 3.9G 212M 3.5G 6% /
> /dev/sda2 251M 20M 219M 9% /boot
> none 1014M 0 1014M 0% /dev/shm
> /dev/mapper/main-srv 78G 1.3G 73G 2% /srv
> /dev/mapper/main-tmp 20G 80M 19G 1% /tmp
> /dev/mapper/main-usr 9.7G 2.1G 7.1G 23% /usr
> /dev/mapper/main-var 20G 434M 18G 3% /var
>
> HTH
>
Thanks for the suggestions (from both of you)! I'll try them.
More information about the redhat-list
mailing list