Re: automated smtp server check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 11/4/2014 2:36 PM, Frank Cox wrote:
> I would like to set up a cron job to automatically check whether my mailserver and webserver are up, and tell me if they're not.
> 
> This script tells me if my webserver is up:
...
> How can I do the something similar with my mailserver?

How about a cron job that e-mails you the output of 'service httpd status' or equivalent?  You'll get a message that tells you if your web server is up or not.  If you don't get a message, your mail server is down!  (HHOS.)

Unless you're just collecting performance or availability metrics for reports, how you intend to be notified is something to consider.  It's trivial to have a web server's failing check result e-mailed to you, but you need an out-of-band notification method (an old Nokia phone attached to the serial port that emits an SMS message, for example) if your mail server is having difficulty.

-- 
-Chris
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux