[Logwatch] services/zz-disk_space

System Administrator sysadmin at schaefernet.net
Mon Nov 15 11:53:50 MST 2004


Guten Tag, Dieter.

I'm also having some trouble with running 5.2.2-1 on a Mandrake 9.2 
box.  The Disk Space output I get in the daily log-parse e-mail is:

------------------ Disk Space --------------------

/dev/ide/host0/bus0/target0/lun0/part3
/dev/ide/host0/bus0/target0/lun0/part1
/dev/ide/host0/bus0/target1/lun0/part1


Running the

df -hP|head -n1;df -hP|grep '^/dev/'

command gets me:

[11:47:20][guy at hitman: ~]$ df -hP|head -n1;df -hP|grep '^/dev/'
Filesystem            Size  Used Avail Use% Mounted on
/dev/ide/host0/bus0/target0/lun0/part3  3.0G  666M  2.4G  22% /
/dev/ide/host0/bus0/target0/lun0/part1  244M  3.3M  241M   2% /boot
/dev/ide/host0/bus0/target1/lun0/part1  3.0G   20M  3.0G   1% /home

My other linux boxes have the following in the daily report:

RedHat 9.0:

------------------ Disk Space --------------------

/dev/sda2              30G  5.4G   23G  20% /
/dev/sda1             244M   24M  207M  11% /boot
/dev/sda5             410G  385G  4.2G  99% /home


SuSE 9.2 Professional:

 --------------------- Disk Space Begin ------------------------ 

 /dev/md0              7.8G  4.8G  3.1G  61% /
 /dev/sda2             255M  9.7M  245M   4% /boot
 
 
 ---------------------- Disk Space End ------------------------- 

I like the idea of getting a heading as you suggest.  Perhaps you or 
someone on the list has an idea to help me solve my problem with 
Mandrake as well?

Regards,

Guy



Dieter Stumpner wrote:

>Hi!
>
>I am using logwatch-5.2.2-1 with fedora core 3.
>On systems with lvm used you get a problem with the diplay.
>
>btw. your Disk-Space-Watch uses df -h with a grep to get the devices.
>on new Linux-systems they use a "human readable form" of the df :(
>On "RedHat-Systems" you can use df -hP, but don't know if it works on
>other distributions/platforms.
>nice would be: 
>df -hP|head -n1;df -hP|grep '^/dev/'
>to get a headline too.
>
>Example:
>[mad at nexgen ~]$ df -h
>Filesystem            Size  Used Avail Use% Mounted on
>/dev/mapper/RootVG-Root
>                      9.9G  3.4G  6.0G  36% /
>/dev/hda1              99M  8.8M   85M  10% /boot
>none                  189M     0  189M   0% /dev/shm
>/dev/hdc              621M  621M     0 100% /media/cdrecorder
>[mad at nexgen ~]$ df -hP
>Filesystem            Size  Used Avail Use% Mounted on
>/dev/mapper/RootVG-Root  9.9G  3.4G  6.0G  36% /
>/dev/hda1              99M  8.8M   85M  10% /boot
>none                  189M     0  189M   0% /dev/shm
>/dev/hdc              621M  621M     0 100% /media/cdrecorder
>[mad at nexgen ~]$ df -hP|head -n1;df -hP|grep '^/dev/'
>Filesystem            Size  Used Avail Use% Mounted on
>/dev/mapper/RootVG-Root  9.9G  3.4G  6.0G  36% /
>/dev/hda1              99M  8.8M   85M  10% /boot
>/dev/hdc              621M  621M     0 100% /media/cdrecorder
>
>with best regards
>Dieter Stumpner
>
>_______________________________________________
>Logwatch mailing list
>Logwatch at logwatch.org
>http://www2.list.logwatch.org:81/lists/listinfo/logwatch
>
>  
>



More information about the Logwatch mailing list