LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-11-2011, 10:24 PM   #1
struct
Member
 
Registered: Feb 2009
Posts: 68

Rep: Reputation: 10
How do I set up alert notification when services startup?


I have tomcat server that requires restart to clear some java issues. I would like the system to send out an email alert that the tomcat got started everytime when it does. Anyway to achieve this whenever someone fires off a service?

Any pointer is appreciated.
 
Old 06-12-2011, 02:57 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

The easiest way is to include a mail command in your startup script (/etc/init.d/) I guess, including the command right after starting Tomcat. Of course your server will need to be set up to deliver email, for example using Postfix.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NAGIOS mail notification by alert type sem007 Linux - Software 4 06-12-2010 03:52 AM
Alert Notification!!!!! nirmit Linux - Server 7 03-20-2009 12:45 PM
Alert Notification on OpenSuse 10.2 jeffvph Linux - Server 2 10-01-2007 12:48 AM
Why I get Updates Alert Notification? jassica_81 Linux - Networking 3 02-10-2006 09:34 AM
RedHat Network Alert Notification Tool Keynote Red Hat 1 03-20-2004 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration