-   Linux - General (
-   -   Remote Server Uptime (

duerra 05-12-2004 04:24 PM

Remote Server Uptime
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!

david_ross 05-12-2004 04:28 PM

You could do it via ssh:
ssh root@remotehost uptime

Or if you want a nice gui then try gkrellm.

duerra 05-12-2004 04:53 PM

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 :(

david_ross 05-12-2004 04:59 PM

Are you more concerned with availablity than uptime? Take a look at nagios:

duerra 05-12-2004 05:02 PM

Nope, not in this case. I'm familiar with nagios, but right now I'm interested in uptime.

david_ross 05-12-2004 05:28 PM

Ok - I think I see what you are meaning now. The best tool for this is probably "hping":

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

duerra 05-12-2004 06:50 PM

Thank you. I will check it out!

All times are GMT -5. The time now is 08:49 AM.