Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Miny programme of some sort
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Tue Apr 18, 2006 1:16 pm    Post subject: Miny programme of some sort Reply with quote

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
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Tue Apr 18, 2006 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Tue Apr 18, 2006 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Tue Apr 18, 2006 2:28 pm    Post subject: Reply with quote

Moved from Portage & Programming to Networking & Security. This seems more appropriate as the question is dealing with a networking computer problem.
Back to top
View user's profile Send private message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Tue Apr 18, 2006 2:30 pm    Post subject: Reply with quote

CheersAny help would be greatful guys
Back to top
View user's profile Send private message
feld
Guru
Guru


Joined: 29 Aug 2004
Posts: 593
Location: USA

PostPosted: Tue Apr 18, 2006 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum