![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?
|
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
the other option is to use a proper monitoring tool such as nagios.
|
|
#4
|
|||
|
|||
|
UNIX email
Thank you. I will try this.
|
|||
| Google The UNIX and Linux Forums |