[CentOS] script

Marcelo Roccasalva marcelo-centos at irrigacion.gov.ar
Wed Jul 30 16:39:11 UTC 2008

On Mon, Jul 28, 2008 at 3:33 AM, Mad Unix <madunix at gmail.com> wrote:
> Hi ALL
> #!/bin/sh
> # Shell script to monitor or watch the disk space

I use this one-liner:

df -P| awk '$5+0>90{print $0|"mutt -s df-k@`hostname` user at domain.com"}'

Probably, you should add -t ext3 to avoid reporting nfs or other
special filesystems...


"¿No será acaso que ésta vida moderna está teniendo más de moderna que
de vida?" (Mafalda)

More information about the CentOS mailing list