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 > Special Forums > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backups, RAM, DRAM, SCSI, IDE, EIDE topics 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 disk labeling kwachtler SUN Solaris 1 09-25-2006 10:21 PM
Automatic monitor disk-space nfbeerse Shell Programming and Scripting 3 03-01-2004 04:16 AM
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
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-04-2008
anuradha anuradha is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 1
Automatic monitor disk-space

Hello,

I am trying to find a shell script to monitor diskspace of all the directories in the server. When the script

encounteres a disk which above the treashold, I want an email

notification.

My system runs on AIX.

Is there anybody around who can help me with such a script?

Regards

Anuradha
  #2 (permalink)  
Old 01-04-2008
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,422
Welcome,
1) Click on Search and choose Advanced Search
2) Under "Search by Keyword" , type in "Disk monitoring"
3) Click on "Search Now"
4) Enjoy.
  #3 (permalink)  
Old 01-15-2008
nylou97 nylou97 is offline
Registered User
  
 

Join Date: Jan 2008
Location: Long Island , NY
Posts: 2
Send me "df -k" output.

I can whip up a top-level script to monitor your disk space and send an email based on a criteria.

-Lou
  #4 (permalink)  
Old 01-15-2008
ilan ilan is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 101
Hi,

you can just follow the one suggested by ghostdog74 and my point here is to use "df -kp" which will let the script use the POSIX output format so that, awk will always take the right field from df o/p.
Otherwise in conditions like when you have lengthy devive names usage of "df -k | awk..... would pickup the wrong feild and so may raise false alarms on your disk space!!

-ilan
Sponsored Links
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 03:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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