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 Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go 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 02:56 PM
Automatic disk labeling kwachtler SUN Solaris 1 09-25-2006 07:21 PM
Automatic monitor disk-space nfbeerse Shell Programming and Scripting 3 03-01-2004 12:16 AM
available disk space on disk device??? alan UNIX for Dummies Questions & Answers 4 01-01-2004 11:06 PM
paging space & monitor Erik Rooijmans UNIX for Dummies Questions & Answers 2 05-13-2003 09:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2008
Registered User
 

Join Date: Jan 2008
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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
Forum Sponsor
  #2 (permalink)  
Old 01-04-2008
Registered User
 

Join Date: Sep 2006
Posts: 1,403
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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: 72
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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 UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash exec bash for loop command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix export command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix interview questions unix simulator unix.com vi select all vi substitute vi+substitute+end+of+line+character while loop within while loop shell script


All times are GMT -7. The time now is 04:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101