Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-09-2011, 04:11 AM
|
#1
|
Member
Registered: Apr 2005
Posts: 252
Rep:
|
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.
|
|
|
03-09-2011, 09:12 PM
|
#2
|
Member
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724
Rep: 
|
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
|
|
|
03-09-2011, 09:37 PM
|
#3
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
You could also use curl 
|
|
|
03-09-2011, 09:46 PM
|
#4
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Thanks for the reponses guys. I will check those out. So it is possible. Cool Thanks.
|
|
|
03-09-2011, 09:50 PM
|
#5
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
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
|
|
|
03-09-2011, 09:52 PM
|
#6
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Quote:
Originally Posted by corp769
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.
|
|
|
03-10-2011, 05:16 AM
|
#7
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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.
|
|
|
03-10-2011, 09:28 PM
|
#8
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Quote:
Originally Posted by Noway2
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.
|
|
|
All times are GMT -5. The time now is 07:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|