Re: How to find count of users past x seconds on Apache web server?

This is a discussion on Re: How to find count of users past x seconds on Apache web server? within the Linux Web Servers forums, part of the Web Server and Related Forums category; Google Mike wrote: > {Note, I have RH9 Linux with its default Apache web server (critical > update updated) and ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-04-2004
Joshua Slive
 
Posts: n/a
Default Re: How to find count of users past x seconds on Apache web server?

Google Mike wrote:
> {Note, I have RH9 Linux with its default Apache web server (critical
> update updated) and my default shell is Bash.}
>
> Does anyone have a Bash script that allows one to find out how many
> users they've had on their Apache web server in the past x seconds? I
> imagine it would deal with using grep or tail and looking either at
> the logfile or at something that tells me the last time a daemon or
> TCP socket was utilized.
>
> The reason I ask is because I have an intranet web server and
> sometimes the programmers create a bug that requires me to bounce the
> web server, unfortunately, mid-day, in order to resolve it. Since the
> web apps are stateless, this doesn't usually cause a client problem

as
> long as I give advance warning like, "Need to bounce the web server

at
> 11:00pm. Please log out before 10:55pm and get back in at 11:05pm or
> later." By using the above Bash script, I could detect whether or not
> someone was playing along with my advice or not.


It won't give you the specific number you are looking for, but the
server-status output of mod_status can give you a very good idea of
what is happening on your server *right now*.

Joshua.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0