-   Linux - General (
-   -   Remote Server Uptime (

duerra 05-12-2004 03: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 03: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 03: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 03:59 PM

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

duerra 05-12-2004 04: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 04: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 05:50 PM

Thank you. I will check it out!

All times are GMT -5. The time now is 10:16 AM.