View previous topic :: View next topic |
Author |
Message |
gentoobobby Apprentice
Joined: 17 Jan 2006 Posts: 293
|
Posted: Tue Apr 18, 2006 1:16 pm Post subject: Miny programme of some sort |
|
|
I have 6 servers currently a few hundred miles from my house adnd they are doing important things like checking like dns to my web server and stuff .
I need to come up with some sort of aplication or program that can tell me wether the servers are on or off , Or if the web server is serving web pages .
Could any one advice me on what i could do . |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Tue Apr 18, 2006 1:37 pm Post subject: |
|
|
ping and telnet?
if it's on and its network is active (should be always), ping should work (ping -c 1 server) and is easy to parse from a script.
to figure out if http is active, use telnet (or better yet: socat) and try to connect to port 80 -- if it works, it's serving, if not, it ain't. or use wget and try to fetch something. either should be ok to parse from scripts. _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
gentoobobby Apprentice
Joined: 17 Jan 2006 Posts: 293
|
Posted: Tue Apr 18, 2006 1:46 pm Post subject: |
|
|
hey man thanks for the reply .
This is all good for me to do manually but i need something that will give me the results
say ping the server but if the ping does not work then
email me the results or bring up a warning message or something .
Cheers any help would be great . |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Tue Apr 18, 2006 2:28 pm Post subject: |
|
|
Moved from Portage & Programming to Networking & Security. This seems more appropriate as the question is dealing with a networking computer problem. |
|
Back to top |
|
|
gentoobobby Apprentice
Joined: 17 Jan 2006 Posts: 293
|
Posted: Tue Apr 18, 2006 2:30 pm Post subject: |
|
|
CheersAny help would be greatful guys |
|
Back to top |
|
|
feld Guru
Joined: 29 Aug 2004 Posts: 593 Location: USA
|
Posted: Tue Apr 18, 2006 2:50 pm Post subject: |
|
|
so basically you want something that will do some automatic server monitoring and email / notifiy you somehow if something goes wrong?
I might be able to find out what a friend of mine uses for his servers. He runs gentoo on them.
-Feld _________________ < bmg505> I think the first line in reiserfsck is
if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); } |
|
Back to top |
|
|
|