From: Ben C. <bcl...@pe...> - 2005-01-04 08:56:19
|
James, I'll see if I can offer any help. James Greenhalgh wrote: > Hi all, > > I've been reading through the archives, and saw that Gili has had the > same problem as myself. That is, error 500 on perfparse.cgi. The > following is the error.. > > -- > Server error! > > The server encountered an internal error and was unable to complete > your request. > > Error message: > malformed header from script. Bad header=perfparse.cgi: perfparse.cgi > > If you think this is a server error, please contact the webmaster > > Error 500 > > X.X.X.X > Tue 04 Jan 2005 10:07:03 EST > Apache/2.0.40 (Red Hat Linux) > -- > The error only occurs when there are arguments passed to perfparse.cgi. > Eg perfparse.cgi?edit_host_list=1 > When I go to perfparse.cgi, I can see the menu page correctly. The > permissions for perfparse.cgi are exactly the same as those for the > nagios cgi files. > All of the nagios pages work correctly and have been working for a > while. I am running nagios v1.1 1. Can you try the following URL: perfparse.cgi?show_config=1 Does this also return the same error? 2. Can you try running the program from the command line: $ export QUERY_STRING="?show_config=1" $ /...../perfparse.cgi Can you show me the result of this action? 3. Finally, can you try a small script in your cgi-bin directory: ---------------------test.cgi------------------------- #!/bin/sh echo "Expires: Sun, 02 Jan 2000 01:01:01 GMT" echo "content-type: text" echo "" echo "QUERY_STRING = $QUERY_STRING" echo "" set | grep "^[A-Za-z].*=" ------------------------------------------------------ chmod a+x test.cgi How call this URL as: http://....../test.cgi?testVariable=testValue Please tell me what is displayed. This would be of great help in finally fixing this problem.! > > I'm using perfparse-0.104.4. The following is some output from my > perfdata-service.log > > 1104549133 services-cbr / DISK OK [241572 kB (51%) free on > /dev/hda1] OK > 1104549133 services3-cbr /var DISK OK [14202808 kB (98%) free > on /dev/hda2] OK > 1104549133 pix PING PING OK - Packet loss = 0%, RTA = 1.48 > ms OK > 1104549133 ids-cbr / DISK OK - free space: / 1317 MB (91%): > OK /=1317MB;1235;1381;0;1454 > > Should I be seeing stuff after a '|' ? Does this mean that there is no > useful perfdata? The '|' has already been removed at this point. Your output looks correct. The only think I notice is that you may need a more recent version of your plugins. Since only the last line shows has returned any graphable data. (The part after the 'OK') > > Also, and I think this may be intertwined with my cgi problem, I am > getting no data at all in my database. > The following is an error from perfparse.log.20050104.log > > 2005/01/04 10:54:54 [ storage.c:92 19064 ] storage_mysql module > successfully loaded > 2005/01/04 10:54:54 [log_reader.c:159 19064 ] No position mark path > was specified. Either disable saving the position or specify a mark path. Look at the example perfparse.cgi for a line showing the mark file path. Ensure this is correct. Delete any existing .mark file you find. This should fix this. > > I have ran mysql_create.sql and created all the tables in the database, > it seems it is connecting correctly, too, as I had to fix the config > file to ensure this. Can you give me more details of the fix you has to make? > > As usual, any and all help would be extremely appreciated. I've read as > much documentation as I can find, and I'm still at a loss. Thanks in > advance! :) I hope we can be of some use, please let me know the results of your tests. Regards, Ben > > Kind Regards, > James Greenhalgh > > > > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > -- Ben Clewett bcl...@pe... PerfParse http://www.perfparse.org PP FAQ http://wiki.perfparse.org/tiki-list_faqs.php |