in reply to CPU Usage by VirtualHost

Normally collecting CPU statistics is not the task of CGI scripts - maybe you could tell us why you need that?

If you just want to monitor CPU usage, you could use collectd

Replies are listed 'Best First'.
Re^2: CPU Usage by VirtualHost
by tdevil76 (Beadle) on Jun 08, 2007 at 23:49 UTC
    My client wants to collect statistics about the cpu usage based on the VirtualHost making the request on his server(s)
      But you are trying to measure the CPU usage at the time of the request, not the CPU usage of that a specific request used up.

      To measure that you'd need a process specific or even thread specific clock, depending on which apache worker model you use.