[rrd-users] Problem with rrdcgi after upgrade from Apache 1.3 to Apache 2.0
Marc Roger
mro at ondine.be
Fri Jul 12 15:28:10 MEST 2002
Hello,
After upgrading from Apache 1.3 to 2.0, some scripts do not work anymore.
rrdcgi-based scripts now give a 500 error and "ERROR: expected a filename"
in the error log.
Debbuging showed this with Apache 2.0:
[Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] Premature end of script headers: host2.cgi
[Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ARGV[0]='/opt/rrdtool/bin/rrdcgi2'
[Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ARGV[1]='host2.cgi'
[Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ARGV[2]='host=asap14\&start=1d'
[Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ERROR: expected a filename, optind=1, argc=3
While with Apache 1.3 I got:
ARGV[0]='/opt/rrdtool/bin/rrdcgi2'
ARGV[1]='/opt/apache/lib/htdocs/rrd/host2.cgi'
OK: got a file, optind=1, argc=2
file=/opt/apache/lib/htdocs/rrd/host2.cgi
So it seems that Apache 2.0 is passing the QUERY_STRING as argument to the
script, while Apache 1.3 did not, and this breaks rrdcgi. Is that an
Apache issue, something that needs to be fixed with rrdcgi, or something I
am missing ?
Thanks,
--
Marc Roger
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list