The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to send email from HP Unix box eurouno UNIX for Dummies Questions & Answers 3 12-03-2007 04:56 PM
How to Send email in UNIX cooolthud Shell Programming and Scripting 1 01-23-2007 05:49 AM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 08:23 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 07:43 AM
email@unix.com a_new_admin Post Here to Contact Site Administrators and Moderators 3 11-01-2002 04:15 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-13-2008
Registered User
 

Join Date: Mar 2008
Posts: 2
UNIX email

Is there a way UNIX can send an email to users when there is a problem in the system or a defunct process that needs to be killed?
Reply With Quote
Forum Sponsor
  #2  
Old 03-13-2008
Registered User
 

Join Date: Dec 2007
Posts: 47
yes.

you start with a script that monitors stuff of intrest then you have a line of code that sends the email (man mailx)

then you call the script often using cron.

so you may have code like this.....


Code:
#!/bin/sh
DHCP=`ps -ef | grep dhcpd | grep -v grep | wc -l`
if [ $DHCP -gt 0 ] ; then
   echo OK
else
  echo "DHCP not running!!"  mailx -s "Server problem" bob@bob.com
fi

then in cron you have this called every half hour.
Reply With Quote
  #3  
Old 03-13-2008
Registered User
 

Join Date: Dec 2007
Posts: 47
the other option is to use a proper monitoring tool such as nagios.
Reply With Quote
  #4  
Old 03-13-2008
Registered User
 

Join Date: Mar 2008
Posts: 2
UNIX email

Thank you. I will try this.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:59 PM.


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

Content Relevant URLs by vBSEO 3.2.0