Server Users on Line
Hi all,
I'm running an apache server on linux RedHat 7.3 and wondered if anyone knows how to detect how many users are on line, or rather, visiting the web site in real time. Thanks ahead !! :study: |
As a cgi-bin? or just from the command line?
From the command line: netstat -a | grep http or another cute one: tail -f /var/log/apache/access_log | cut -d1 '"' -f1 My log may be in a different spot that yours... also http you'll notice only keeps the port open briefly, so "current" users to apache is debatable. Cheers, Finegan |
You can also enable the server-status module in httpd.conf, uncomment out the /server-status Location directives, and navigate to http://localhost/server-status to see a live view of what each apache proccess is doing, and the overall server statistics.
dont forget to do "apachectl restart" or "killall -HUP httpd" before attempting to browse to that location. |
All Work great!
All these suggestions work great! I confused myself by forgetting to use these direct approaches. Mystery de-cloaked!:p Thanks
|
All times are GMT -5. The time now is 03:04 AM. |