[mrtg] mrtg-rrd.cgi / mod_perl
Stuart Kendrick
skendric at fhcrc.org
Mon Mar 1 04:41:15 MET 2004
hi,
does anyone have mrtg-rrd.cgi working with mod_perl?
i admit i'm new to mod_perl ... but i have it working with a couple of my
own CGI scripts, so now I'm turning to mrtg-rrd.cgi
i changed line 53 from:
my $percent_h = '%-H';
to
our $percent_h = '%-H';
and that eliminated the "Variable "$percent_h" will not stay shared at"
error message.
but now i'm seeing the following in apache's error.log:
[...]
[Sun Feb 29 19:20:25 2004] [notice] Digest: generating secret for digest
authentication ...
[Sun Feb 29 19:20:25 2004] [notice] Digest: done
[Sun Feb 29 19:20:26 2004] [notice] Apache/2.0.48 (Unix) mod_perl/1.99_12
Perl/v5.8.3 DAV/2 configured -- resuming normal operations
Deep recursion on subroutine
"ModPerl::ROOT::ModPerl::Registry::opt_vdops_apache
_htdocs_mrtg_mrtg_2drrd_2ecgi::handler" at
/opt/vdops/apache/htdocs/mrtg/mrtg-rrd.cgi line 1041.
[..]
my httpd.conf mod_perl section looks like this:
[...]
PerlRequire "/opt/vdops/apache/perl/startup.pl" # I copied this file from
# the mod_perl dox
Alias /mrtg/ /opt/vdops/apache/htdocs/mrtg/
<Location /mrtg/>
AddHandler perl-script .cgi .fcgi
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
allow from all
</Location>
Insights?
--sk
Stuart Kendrick
FHCRC
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list