We set up a dedicated server for a client’s site, and I’m very nervous about having it go down and the first notification being getting an angry call. So I setup a cron job on the server to send me out an email every hour with the result of ls /var/run/apache2.pid
I would like to move to a more sophisticated method and get an email if the server stops responding. Before I start my elaborate reinvention of the wheel, I thought I would see if someone else has an off the shelf solution. Here’s what I was planning:
1: setup a cron job on a second server, like my desktop at the office, to use wget to fetch a small dummy html file from the web server over http
2: check and see if it received a status 200, and if not, send me an email.
I can do the part 1 without a problem, and the sending of the email. It’s the middle part, checking the result of wget, that I don’t really want to spend the time to figure out.
Thanks in advance.
- The topic ‘email notification if site goes down’ is closed to new replies.