From: Gili L. <Gi...@so...> - 2004-12-02 16:23:46
|
Hi All, I'm trying to use the perfgraph (0.104.1), but I got "Error 500". Only if a parameter is passed to the script... If I execute this cgi by command prompt I get the HTML. And if I export the "QUERY_STRING" it works goes as well... But if I do this thing by the browser I get the Error 500. This occurs in ver 0.103.2. the only version I tried this didn't occurs is ver 0.100.1. I inserted a line in the perfgraph.c to debug this (as I read in this list). ------ fprintf(stderr, "%s:%d\n", __FILE__,__LINE__); ----- this is the output from the error_log <---snip---> [Thu Dec 02 17:47:15 2004] [error] [client 10.1.1.1] malformed header from script. Bad header=perfgraph.cgi: perfparse.cgi, referer: http://10.1.1.1/nagios/side.html [Thu Dec 02 17:47:15 2004] [error] [client 10.1.1.1] perfgraph.c:67, referer: http://10.1.1.1/nagios/side.html <---snap---> Line num 67 is the first line in the mail() function. I use Apache 2, MySQL 4.1.7, gcc 3.2. What I did wrong? Gili |