Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you configure Solaris 8 to email/page you automatically?

Status
Not open for further replies.

nullvoid

MIS
Jan 20, 2003
1
US
I know it's possible for Solaris to email me or page me if the server goes down, or if an application goes down, I'm not sure how to do this though.

Help!

 
You could create a cron job that runs a script every ten minutes or so which does something like:

[tt]if ps -e | grep appname > /dev/null
then
continue
else
mailx -s &quot;The application is down!&quot; nullvoid@nowhere.not << HERE
Some message body text here.
HERE
fi[/tt] Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top