LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Server Users on Line (https://www.linuxquestions.org/questions/linux-software-2/server-users-on-line-53922/)

radnix 04-07-2003 07:45 PM

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:

finegan 04-08-2003 08:41 PM

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

madcoder 04-08-2003 08:46 PM

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.

radnix 04-10-2003 06:31 PM

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.