![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Monitor Disk Space | sam786 | Shell Programming and Scripting | 3 | 02-08-2008 06:56 PM |
| Automatic monitor disk-space | anuradha | Filesystems, Disks and Memory | 3 | 01-15-2008 03:37 PM |
| Automatic disk labeling | kwachtler | SUN Solaris | 1 | 09-25-2006 10:21 PM |
| available disk space on disk device??? | alan | UNIX for Dummies Questions & Answers | 4 | 01-02-2004 03:06 AM |
| paging space & monitor | Erik Rooijmans | UNIX for Dummies Questions & Answers | 2 | 05-13-2003 12:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Automatic monitor disk-space
Hello,
I am trying to find a shell script to monitor diskspace. When the script encounteres a disk which above the treashold, I want an email notification. My system runs on a Sun Solaris. Is there anybode around who can help me with such a script? Norbert |
|
||||
|
Hi
Thres=90 df -k | grep -v File | while read FS SZ US AV PER MNT do PER1=`echo $PER | awk -F"%" '{print $1}'` if [ $PER1 -gt 89 ]; then mail_user "Filesystem $FS is $PER1 percent full" done |
| Sponsored Links | ||
|
|