Webserver server restart switch
Greetings, First posts. i am just curious on actually quite a few things. I just ordered one of these babies and what I want to do is create a hard reset button for my server.
Occasionally my server locks up or i need to restart it and it does not come back up. This is a major problem because I am running its remotely. So all i can do is a "soft" reset. I have looked at commercial options at their all like 300 bucks. Which i deff don't want to spend. currently what I have in place of this is I hooked up a crappy router to my server. There are the hard reset pins on the motherboard i took those and hooked it up to some random places on the router. By power cycling the router it sends a signal to the reset switch in turn hard resting it.
Obviously not the most ideal solution and its very annoying to do because i have to another computer to remote into, log into the router webpage and reset it.
So getting to the solution. I have rummaged around on here and I found source code for a mini webserver its already presetup etc. Really in theory the only thing I need to do it create the webpage I want . do a basic authentication. then have a button that I can press reset and it sends signal to one of the outputs on the spinneret to the motherboard to reset it. hopefully this makes sense so far yes? problem is. I have never programmed one of these in my life. The most ive done is basic pic chips via USB in a class one time. im good at programming webpages not chips.
so in my head this is possible right?
Also is there anyone that can help me with this? (when i get the spinneret in about a week )
Occasionally my server locks up or i need to restart it and it does not come back up. This is a major problem because I am running its remotely. So all i can do is a "soft" reset. I have looked at commercial options at their all like 300 bucks. Which i deff don't want to spend. currently what I have in place of this is I hooked up a crappy router to my server. There are the hard reset pins on the motherboard i took those and hooked it up to some random places on the router. By power cycling the router it sends a signal to the reset switch in turn hard resting it.
Obviously not the most ideal solution and its very annoying to do because i have to another computer to remote into, log into the router webpage and reset it.
So getting to the solution. I have rummaged around on here and I found source code for a mini webserver its already presetup etc. Really in theory the only thing I need to do it create the webpage I want . do a basic authentication. then have a button that I can press reset and it sends signal to one of the outputs on the spinneret to the motherboard to reset it. hopefully this makes sense so far yes? problem is. I have never programmed one of these in my life. The most ive done is basic pic chips via USB in a class one time. im good at programming webpages not chips.
so in my head this is possible right?
Also is there anyone that can help me with this? (when i get the spinneret in about a week )
Comments
It's real easy to drive a pin high.
Tutorial
http://spinneret.servebeer.com:5000/
Example
http://www.agaverobotics.com/spinneret/controlpanel.htm
Wouldn't a better solution be to figure out why your server is becoming unresponsive?
http://tuxgraphics.org/electronics/201102/eth-network-watchdog.shtml
Spinneret Web Server Manual
Yes I saw that in the documentation. But since I do not program chips/hardware for a living I am a little confused on that. Because In the documentation it only has 12 pins on the main connector. I get that you can press the button and it will drive the LED
http://www.agaverobotics.com/spinneret/controlpanel.htm
If you read further into the tutorial you will find you can simply send an HTTP GET with an LED parameter in the URL.