Need a mail from system after healthcheck


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need a mail from system after healthcheck
# 1  
Old 08-02-2006
MySQL Need a mail from system after healthcheck

I am trying to write a simple shell script which would send me a mail over the network after completing the healthcheck.

I have 10 file systems mounted;each of variuos size (in GB)
if at all ,any one file system reaches 80 % (capacity factor),an e-mail should be sent to my id : abhijeet@yahoo.com

how do i start? i have never used "sendmail" before?

any ideas/suggestions welcome

regards
abhijeet
# 2  
Old 08-07-2006
Sendmail code

Hi Abhijeeet


Please send the code of sendmail fro unix to me ...

Thanks in advance

Regards
Pankaj
# 3  
Old 08-07-2006
Here is the link for send mail which will be helpful how to send mail and attachments.

Sendmail script
# 4  
Old 08-10-2006
Sending mail when diskspace is exceeded

Hey... I wrote one script for this... But I don't display it here... Smilie I give idea first, try it. If you cannot do it, then I will give you.

1. First try df -k | grep -v "Filesystem" > diskspace.txt
2. Read that file and awk its records...
3. if size > threshold
send mail
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

<Mail> attachment param is not working under system function

Hi Guys, I have executed the mail command that has attachment with filename as current date enclosed in system function that is added under awk command. I have used awk command to check if the error code is present in the file then email command sends an email with subject Error Code ,body... (2 Replies)
Discussion started by: reminisce
2 Replies

2. UNIX for Dummies Questions & Answers

Simplest way to access Linux system mail from email client

I'm not a Linux newbie but this seemed like a pretty n00b question. I am familiar with Postfix/Dovecot setups but now I am looking for the simplest way to access mail on a Linux system, such as the mail that goes to /var/mail/root. I know I can edit /etc/aliases and have the system mail go straight... (6 Replies)
Discussion started by: TayKimchi
6 Replies

3. Solaris

Mail system Configuration issue on UNIX box

Hi, I wanted to configure a mail system on my UNIX box. For that I read a document Sun Internet Mail Server 3.5 Advanced Installation Guide: Contents which is actually quite useful document but I am not sure from where can I bring patch? Is this patch will come in any CD form which I need to run... (1 Reply)
Discussion started by: Dhruvak
1 Replies

4. Shell Programming and Scripting

file system status mail notifications

HI I want to get an e-mail @ my yahoo address when the file system used space gets more than 89% , & the message contents must be the outputs of df -g errpt netstat -i ??????? (3 Replies)
Discussion started by: majd_ece
3 Replies

5. UNIX for Dummies Questions & Answers

Configure system for mail(x)

Hi, I would like to make a BASH shell script email me regarding its status (ie. it has errored while processing a file, it has finished etc.). - This script will be distributed to users using Macs and a variety of Linux flavors. Is there a standard mail utility that most OS's should have? I... (0 Replies)
Discussion started by: msb65
0 Replies

6. Shell Programming and Scripting

Sending mail on system shutdown

I want to only send a mail before my system goes for a shutdown or reboot. I don't want a mail when it comes up after a reboot or is normally started.. How can i achieve this? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

7. AIX

Mailing from AIX 5.3 to windows mail system.

Hi, I want to mail a log from my IBM AIX 5.3 server to my windows mailbox in my company every month. Any ideas what the command would be? Do I need to set any smtp settings? Thanks (2 Replies)
Discussion started by: jfd7000
2 Replies

8. SCO

How to configure SCO OpenServer 5.0.7 mail system MMDF

Hello unix experts, Here I have couple of questions regarding MMDF mail system on SCO unix: 1. How can I configure SCO OpenServer 5.0.7 mail system MMDF to send emails using "mail" command to other machines in the same LAN? 2. How can I configure SCO OpenServer 5.0.7 mail system MMDF to ... (1 Reply)
Discussion started by: forumuser7
1 Replies

9. SuSE

What's mail system running on Linux

Hi,I am need setup mail system on the linux, but i am don't know , My linux system is Redhat Linux 9.0.However,What's kind mail system is fit my operation system? expect everyone give directionsme with superior . Thanks! (6 Replies)
Discussion started by: Golden.Liu
6 Replies
Login or Register to Ask a Question