Need to send email on HIGH Disk usage


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need to send email on HIGH Disk usage
# 1  
Old 05-06-2006
CPU & Memory Need to send email on HIGH Disk usage

Hi Guys

I am looking for a python / PERL script which will send me email when ever my disk becomes more than 90% full.

By the way my OS is Win XP.

If anybody have already has written same type of script or something very similar kind of script, that will also be very helpful.

Thanks a lot to all in advance

====================
Thanks & Regards
CSaha
# 2  
Old 05-07-2006
Hello,

I use this shell script for Linux boxes,you can try to execute it with "cygwin" in you Windows Box[1]:

Quote:
santi@midori:~$ df -hT | grep -vE "^Filesystem|shm" | awk '{ print $6 }'
62%
20%
1%
The entire script is avaliable at:

http://www.codecomments.com/Unix_She...e851010-2.html

Regards,

[1] http://www.cygwin.com/

--
Santi Saez
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX cluster disk usage report generation for yesterday & today and email

HI Team, I am trying to create a shell script to generate a yesterday and today report to compare and email in daily basis. can you please help me on the same. #!/bin/bash #Author: ******************* #Description: This script will return the following set of system information: ... (2 Replies)
Discussion started by: Mi4304
2 Replies

2. Shell Programming and Scripting

Generate disk space usage email alert

hi all members I have a shell script to generate disk space usage email alert if threshold is more than 80 %, now the requirement changed to keep sending alert emails for every 5% incremental usage ........ Any help would be greatly appreciated. ex - 80% , 85% ,90%,95%,100% we should get an... (6 Replies)
Discussion started by: anil529
6 Replies

3. Shell Programming and Scripting

Send Disk Space Usage Status via email

Hi Guys, Is there any way I can write a script that sends DISK SPACE USAGE STATUS via email once a week? Thanks, (5 Replies)
Discussion started by: g4v1n
5 Replies

4. Shell Programming and Scripting

Send information about disk occupation periodically by email

Hi, I want to make a shell script that gives me the information about the disk occupation by sending me an email once in a month for example. With this command df|tr -s " "|cut -d" " -f 1,5 I can see the occupation but I dont know how to make the machine to send me the email with this... (7 Replies)
Discussion started by: Adam Brave
7 Replies

5. Shell Programming and Scripting

Combining header and data and send email without usage of temp file

Dear All- My requirement is as below- Header file $ cat HEADER.txt RequestId: RequestDate: Data file $ cat DATAVAL.txt 1001|2009-03-01 I need to send the combined data below as email body via mailx command ------------------ RequestId:1001 RequestDate:2009-03-01 I would like... (4 Replies)
Discussion started by: sureshg_sampat
4 Replies

6. UNIX for Dummies Questions & Answers

email warning script for disk usage

I'm trying to monitor disk usage, using cron to run a script to email me when disk capacity exceeds 66%. When I use df (actually, "df -k" because I find the format useful), disk capacity shows as field 5. However, that field includes a % which is confusing my ">" comparison to include a warning. ... (3 Replies)
Discussion started by: InvisibleMan
3 Replies

7. UNIX for Dummies Questions & Answers

How to trace the big files causing high disk usage

Hi All, One very urgent issue and I need your help. I have two V490 servers installed with Sun Solaris 10. I have traced out that the disk usage is running out of space for both the servers. Currently the /dev/md/dsk/d10 device is 91% in one server and another is 56% and it is increasing... (1 Reply)
Discussion started by: ailnilanjan
1 Replies

8. Shell Programming and Scripting

shell script to send email with usage of space in the directory as description :

shell script to send email with usage of space in the directory as description : Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
Discussion started by: sakthifire
3 Replies

9. Shell Programming and Scripting

need help: how to send email with HIGH priority in shell scripts?

Hello, I know that mail or sendmail can be used to send email in a shell script. Is there any way I can set the priority of emails to send to HIGH? The reason why I want that is because my mobile email sends instant alert SMS's only for incoming emails with HIGH priority. (2 Replies)
Discussion started by: _joshua_
2 Replies

10. UNIX for Advanced & Expert Users

Sun: High kernel usage & very high load averages

Hi, I am seeing very high kernel usage and very high load averages on my system (Although we are not loading much data to our database). Here is the output of top...does anyone know what i should be looking at? Thanks, Lorraine last pid: 13144; load averages: 22.32, 19.81, 16.78 ... (4 Replies)
Discussion started by: lorrainenineill
4 Replies
Login or Register to Ask a Question