The UNIX and Linux Forums  

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 05: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 03:16 AM
available disk space on disk device??? alan UNIX for Dummies Questions & Answers 4 01-02-2004 02:06 AM
paging space & monitor Erik Rooijmans UNIX for Dummies Questions & Answers 2 05-13-2003 12:45 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-04-2008
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-04-2008
Registered User
 

Join Date: Sep 2006
Posts: 2,327
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.
Reply With Quote
  #3 (permalink)  
Old 01-15-2008
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
Reply With Quote
  #4 (permalink)  
Old 01-15-2008
Registered User
 

Join Date: Jul 2007
Posts: 96
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 09:12 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66