LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-12-2004, 03:24 PM   #1
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Rep: Reputation: 30
Remote Server Uptime


Greets,
I'm interested in finding out how to remotely tell server uptime from a remote source, similar to how netcraft figures out uptime. If anybody knows how to do this, I would appreciate it, since I have not been able to find an answer ANYWHERE!
 
Old 05-12-2004, 03:28 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You could do it via ssh:
ssh root@remotehost uptime

Or if you want a nice gui then try gkrellm.
 
Old 05-12-2004, 03:53 PM   #3
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Original Poster
Rep: Reputation: 30
Thanks. I am looking for server uptime, and this requires an SSH login. I want to be able to write a script to monitor this information on a couple of my web servers remotely, without having to SSH in, and without reconfiguring my apache conf files.... how would I be able to do that? Netcraft does it, so I know it's possible... I just don't know how they do it
 
Old 05-12-2004, 03:59 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Are you more concerned with availablity than uptime? Take a look at nagios:
http://www.nagios.org
 
Old 05-12-2004, 04:02 PM   #5
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Original Poster
Rep: Reputation: 30
Nope, not in this case. I'm familiar with nagios, but right now I'm interested in uptime.
 
Old 05-12-2004, 04:28 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Ok - I think I see what you are meaning now. The best tool for this is probably "hping":
http://www.hping.org/

I should have given an exmple command too - ie:
hping -c 2 -p 80 --tcp-timestamp -S ip.of.remote.host 2>&1 | grep uptime

Last edited by david_ross; 05-12-2004 at 04:31 PM.
 
Old 05-12-2004, 05:50 PM   #7
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Original Poster
Rep: Reputation: 30
Thank you. I will check it out!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
uptime for server einstien Linux - General 2 09-20-2004 08:35 PM
Server uptime discrepancy peppiv Linux - Software 2 05-17-2004 11:41 AM
My server has 127.0.0.1 ip instead of one from a remote DHCP server? leefarrant Linux - Newbie 6 11-18-2003 11:57 AM
Server uptime - Http headers?? wizade Linux - General 2 02-19-2003 03:56 PM
how can I remote shutdown other WinNT server from Linux Server? adelel Linux - Networking 2 01-06-2002 12:21 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration