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! |
You could do it via ssh:
ssh root@remotehost uptime Or if you want a nice gui then try gkrellm. |
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 :(
|
Are you more concerned with availablity than uptime? Take a look at nagios:
http://www.nagios.org |
Nope, not in this case. I'm familiar with nagios, but right now I'm interested in uptime.
|
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 |
Thank you. I will check it out!
|
All times are GMT -5. The time now is 12:24 AM. |