The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-24-2004
nfbeerse nfbeerse is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 2
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
  #2 (permalink)  
Old 02-24-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What type of 'help' do you need ? Do you have something written that does not work or just want something someone else has done (a quick search on the Internet will bring many hits such as this one )
  #3 (permalink)  
Old 02-24-2004
nfbeerse nfbeerse is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 2
RTM,

Thanks for the quick reply.

I wanted a script. Apparently I used the wrong query variables for my search.

Norbert
  #4 (permalink)  
Old 03-01-2004
karthi_tvr karthi_tvr is offline
Registered User
  
 

Join Date: Mar 2004
Location: Singapore
Posts: 5
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0