LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-09-2011, 04:11 AM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
If a server has failed or offline


I would like to implement something to help out when a server is offline for whatever reason. For example.

I got my own DNS servers and webservers. I would like it if the users goes to www.somedomain.com and the server it is actually on is down for maint. or for what ever not able to respond. What can be done so that if the server isnt able to be contacted that it can point to either a another server or the dns somehow can display a page stating who to contact to report a problem or to let them know its down for maint. and can goto a site to check the status or what ever. thanks in advance.
 
Old 03-09-2011, 09:12 PM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
I'm not sure if I understand your question, but I think you can write a shell script to dump your website and filter the content, something link this:
Code:
lynx --dump http://www.yourdomain.com
 
Old 03-09-2011, 09:37 PM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You could also use curl
 
Old 03-09-2011, 09:46 PM   #4
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Thanks for the reponses guys. I will check those out. So it is possible. Cool Thanks.
 
Old 03-09-2011, 09:50 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
If you don't understand how to get curl to do what you need, you can definitely do as guanta said and use lynx --dump. Might be easier for you.

Josh
 
Old 03-09-2011, 09:52 PM   #6
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by corp769 View Post
If you don't understand how to get curl to do what you need, you can definitely do as guanta said and use lynx --dump. Might be easier for you.

Josh
Okay. I will have to research lynx and see how it works.
 
Old 03-10-2011, 05:16 AM   #7
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
What can be done so that if the server isnt able to be contacted that it can point to either a another server or the dns somehow can display a page stating who to contact to report a problem or to let them know its down for maint.
I am not sure I understand what the other responses are suggesting. I read your post as you are looking for a form of failover server, one that will detect the loss of the primary and take over the operation, at least partially. Take a look as this link to see if it is along the lines of your thinking. If so, it may have some workable suggestions.
 
Old 03-10-2011, 09:28 PM   #8
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Noway2 View Post
I am not sure I understand what the other responses are suggesting. I read your post as you are looking for a form of failover server, one that will detect the loss of the primary and take over the operation, at least partially. Take a look as this link to see if it is along the lines of your thinking. If so, it may have some workable suggestions.
That is way I would like this. But another is if say the internet connection here fails and the dns points here and the server or servers are down, it displays a simple page with a logo on it and then a message displaying that it is down or under maint.
 
  


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
After running iptables -F my server goes offline??? abefroman Linux - Server 7 01-04-2011 06:14 AM
NETWORK transmit errors - assuming offline / NETWORK restart failed, could not find gcan Linux - Networking 3 11-13-2009 08:01 PM
Home PC offline Web Server ogfizzle Linux - Server 1 10-31-2007 11:44 AM
Determine casue of server going offline MrSako Linux - General 1 11-07-2006 04:26 PM
server offline page ankit_mcgill Linux - Newbie 5 03-10-2006 03:17 AM

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

All times are GMT -5. The time now is 07:57 AM.

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