homepage Welcome to WebmasterWorld Guest from 54.161.246.212
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
server down notifications
how?
omoutop

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4399993 posted 8:59 am on Dec 21, 2011 (gmt 0)

Hello and thank you for any tips/advice.

We own two servers... one is the main server that hosts some domains, the other is the secondary one, used for development/testing purposes.

Is it possible for the second server to check if the main one is down (for any reason whatsoever) and alert us with an email and an sms?

 

rominosj

10+ Year Member



 
Msg#: 4399993 posted 9:19 am on Dec 21, 2011 (gmt 0)

Do you mean you own two web servers? or two hosting accounts, maybe at different hosting companies?

omoutop

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4399993 posted 9:26 am on Dec 21, 2011 (gmt 0)

two webservers

Swaraj



 
Msg#: 4399993 posted 11:36 am on Dec 21, 2011 (gmt 0)

As your second server is not not connected online then I don't think its possible. I would suggest you to go for virtualization on the same server.

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4399993 posted 9:56 pm on Dec 21, 2011 (gmt 0)

Did I miss something? "Development/testing" doesn't have to mean offline, or even strictly localhost. I assumed that Server B is online, you just don't have any active domains living on it.

Are you looking at a continuous connection between the two? Or something like a timed routine where Server B automatically checks in on Server A every so often and automatically sends you an e-mail if there's a problem? Even something as simple as Server B requesting a file, and reporting back if it gets a 5xx error.

omoutop

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4399993 posted 7:02 am on Dec 22, 2011 (gmt 0)

lucy you are correct... both serves are online and active.
The testing server has no active domains.

Your approach seems correct. Either file request or continuous connection or anything else.

I have no idea how this can be accomplished, so i am asking for guidelines to start searching.
Is there some technique? Some formal name for this? What should i ask the server admin/support to do/install/activate?

Also, can we get sms message along with the email notification?
Can we have this error 'report' only for status 500 OR can it be expanded to inlude mysql downtime also? (too many connections for example, or whatever else may 'hang' the server)

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4399993 posted 7:30 am on Dec 22, 2011 (gmt 0)

I keep thinking robots. Or, uhm, a spider with only one leg. I don't personally have the remotest idea how it's done. But aren't there undergraduate computer science classes with "this week's assignment-- make a robot"? It can't be all that hard. You're just making a robot that visits one site at regular intervals, and then does whatever it is robots do when they find what they're looking for.

omoutop

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4399993 posted 9:19 am on Dec 22, 2011 (gmt 0)

mmm robots eh? A simple one, just to test headers for 404 or 500 for starters. Yes, this can be done even by me :)
Keep wondering why i didn't think of this.

Thanks for the idea Lucy.

tangor

WebmasterWorld Senior Member tangor us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



 
Msg#: 4399993 posted 10:42 am on Dec 22, 2011 (gmt 0)

Something as simple as a chron job request to secondary will accomplish this.

Jonesy

5+ Year Member



 
Msg#: 4399993 posted 5:23 pm on Dec 24, 2011 (gmt 0)

nagios [nagios.org ]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved