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 |
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.
|
|
05-12-2004, 03:24 PM
|
#1
|
Member
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201
Rep:
|
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!
|
|
|
05-12-2004, 03:28 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You could do it via ssh:
ssh root@remotehost uptime
Or if you want a nice gui then try gkrellm.
|
|
|
05-12-2004, 03:53 PM
|
#3
|
Member
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201
Original Poster
Rep:
|
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
|
|
|
05-12-2004, 03:59 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Are you more concerned with availablity than uptime? Take a look at nagios:
http://www.nagios.org
|
|
|
05-12-2004, 04:02 PM
|
#5
|
Member
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201
Original Poster
Rep:
|
Nope, not in this case. I'm familiar with nagios, but right now I'm interested in uptime.
|
|
|
05-12-2004, 04:28 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
05-12-2004, 05:50 PM
|
#7
|
Member
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201
Original Poster
Rep:
|
Thank you. I will check it out!
|
|
|
All times are GMT -5. The time now is 06:20 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
|
|