Stuart Johnston wrote:
Perrin Harkins wrote:

On Mon, 2004-06-28 at 12:56, Stuart Johnston wrote:

ExtendedStatus On
<Location /server-status>
    SetHandler server-status
</Location>
<Location /vmonitor>
    SetHandler perl-script
    PerlHandler Apache::VMonitor
</Location>



That's all? Try loading the module from a <Perl> section, as described in the documentation. Make sure you are loading Apache::Scoreboard too.


Here is what I have added to the end of a default httpd.conf file. Am I missing anything?


PerlModule Apache::Scoreboard <Location /scoreboard> SetHandler perl-script PerlHandler Apache::Scoreboard::send order deny,allow deny from all #same config you have for mod_status allow from 127.0.0.1 ... </Location>

You don't need the /scoreboard part, unless you plan to fetch the scoreboard to a client that is not running under that Apache server.


<Location /system/vmonitor>
    SetHandler perl-script
    PerlHandler Apache::VMonitor
  </Location>

<Perl>
use Apache::VMonitor();
  $Apache::VMonitor::Config{refresh}  = 0;
  $Apache::VMonitor::Config{verbose}  = 0;
  $Apache::VMonitor::Config{system}   = 1;
  $Apache::VMonitor::Config{apache}   = 1;
  $Apache::VMonitor::Config{procs}    = 1;
  $Apache::VMonitor::Config{mount}    = 1;
  $Apache::VMonitor::Config{fs_usage} = 1;
  $Apache::VMonitor::Config{apache_sort_by}  = 'size';
</Perl>

Looks fine.

Does it matter that my system is not generating a scoreboard file even though it is defined in the conf file?

I think all unices use an in-memory scoreboard, so probably this is not an issue.

Two things to try:

1) the previous generation http://search.cpan.org/~stas/Apache-VMonitor-0.8/. Ver 2.0 is a complete rewrite to support both mp1 and mp2, 0.8 will work for mp1 but probably is the last version of that generation.

2) get your sleeves up and dive into the code - it's a trivial perl code.
'sub data_apache' is the code you want to look at, the child data retrieval happens in the loop:
for ($i=0; $i < SERVER_LIMIT; $i++) {


also check whether  'sub scoreboard_image' actually returns the image.

Let me know if you need any help with it.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to