LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2006, 11:00 PM   #1
sunhui
Member
 
Registered: Jan 2006
Location: taiwan
Posts: 156

Rep: Reputation: 30
Alert for server shutdown


We have about 20 linux servers , if I want to receive alert message ( by mail ) when the server is shutdown/restart , or disconnected , what can I do ? thx in advance.
 
Old 08-02-2006, 04:03 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by sunhui
We have about 20 linux servers , if I want to receive alert message ( by mail ) when the server is shutdown/restart , or disconnected , what can I do ? thx in advance.
you could add a line with a mail command the startup scripts of each server (rc.local, for example)... each server would then automatically send you a message when it starts-up...

as for knowing when a server has been *disconnected*, you could use a script that pings the servers periodically (from your gateway/firewall perhaps), and then executes a mail command whenever it fails to get a certain number of echo replies... i've seen some scripts like that posted here on LQ, seek and yee shall find...

Last edited by win32sux; 08-02-2006 at 04:28 PM.
 
  


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
how to shutdown x server mohamed_123 Linux - General 6 04-12-2006 10:59 PM
server mailbox alert The Bad Penny Linux - Software 1 12-08-2004 06:13 PM
Oracle9i Database Server Problems (latest alert) PostDeals Linux - Security 0 04-22-2002 07:34 PM
how can I remote shutdown other WinNT server from Linux Server? adelel Linux - Networking 2 01-06-2002 12:21 AM
ALERT!!! ALERT!!! I messed up the UNIX!!! Firew Linux - Software 1 11-05-2001 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 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
Open Source Consulting | Domain Registration