Click to See Complete Forum and Search --> : Remotely getting server uptime? - http header?


wizade
02-19-2003, 05:06 PM
Is there an http header that contains the server uptime?

I know you can get the server software....

thanks,

:)

mdwatts
02-19-2003, 06:37 PM
Try these

http://www.linuxgazette.com/issue33/vrenios.html

http://www.redhat.com/docs/manuals/stronghold/Stronghold-4.0-Manual/SH4_HTML/basicadmin.html

wizade
02-19-2003, 06:45 PM
hmm..

im looking for a way to remotely gather uptime... if I dont have access to the server except for web pages...

mdwatts
02-19-2003, 08:01 PM
The bottom section of the Redhat link?


Reports

Stronghold includes the mod_status module for on-the-fly HTML status reports that provide instant access to server activity statistics.

A status report includes:

* The current date and time
* The date and time when the server was last started or restarted
* The server uptime
* The total number of accesses
* The total traffic volume
* The CPU usage
* The average number of requests per second, average volume per second, and average volume per request
* The number of requests currently being processed
* The current number of idle children
* A snapshot of the ScoreBoardFile.

wizade
02-19-2003, 09:52 PM
yes... but mod_status only works on servers that have it compiled and added to the apache config.. Im looking for a way to gather uptime of various different websites ...

you can get server uptime of most websites with
nmap -O somesite.com
That will look at the TCP packets comming from the server.

But I thought there might be an http header that contained the server's uptime or somthing similar - this would be much more convenient way.

mdwatts
02-20-2003, 07:45 AM
Sorry as I wouldn't know about http headers for uptime.

Hopefully another member will be able to help.

wizade
02-20-2003, 03:42 PM
thanks for your help :)

looks like the headers do not contain the uptime... I believe that examining the packets is the only way to get the server uptime.