Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

For example on the top part of this video:

http://www.youtube.com/watch?v=BLcL61iLNT0

He is running the server status is realtime, how can you do this?

share|improve this question

4 Answers 4

up vote 5 down vote accepted

You can use the watch command to run apache2ctl status repeatedly eg:

watch apache2ctl status
share|improve this answer
    
How did this guy do it then? –  James May 10 '11 at 17:24
    
@James , what do you mean? The watch command will run apache2ctl status every N seconds. apache2ctl status will show the output of mod_status status as shown in the video. Read the watch(1) manpage, and see httpd.apache.org/docs/2.0/mod/mod_status.html#autoupdate & httpd.apache.org/docs/2.0/programs/apachectl.html –  Stefan Lasiewski May 10 '11 at 17:33
    
My appologies, I have just configered the module for apache2 and works flawlessly. –  James May 10 '11 at 17:48

Once you enable server status as per http://httpd.apache.org/docs/2.2/mod/mod_status.html just add ?refresh=1 to the end of your server-status URL.

I believe it is as close to real-time as you're going to get.

share|improve this answer
    
How did this guy do it then? –  James May 10 '11 at 17:24
    
I'm pretty sure it is with ?refresh=1 - if you look at the video, it updates once a second. –  dialt0ne May 10 '11 at 17:25
    
The video shows a text browser in use, and none of the text browsers I've tried support auto-refresh, so the solution likely will require other methods to refresh the page. –  EEAA May 10 '11 at 17:30
    
It works just fine with elinks elinks.or.cz on CentOS/RHEL 5.x –  dialt0ne May 10 '11 at 17:34
    
Ahh, I didn't try elinks, only links and lynx. –  EEAA May 10 '11 at 17:36

Probably something like:

$ watch -n 1 links -dump http://localhost/server-status
share|improve this answer

lynx http://localhost/server-status

As you can see from the video, that's a view of the scoreboard. Doing some quick googling showed me the above link from this one:

http://articles.slicehost.com/2010/3/26/enabling-and-using-apache-s-mod_status-on-debian

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.