From: Ben C. <BCl...@pe...> - 2004-11-04 08:04:08
|
Hi Joe, I am glad you got it to work. The only think I can think of is that=20 your browser was aggressively caching the page response. Therefore=20 although you fixed the problem by doing something to the perfparse.cfg,=20 this was not reflected in your browser which was showing you the cached=20 copy of the 'Bad script header'. By replacing the file, you change the=20 timestamp of the file, which is enough to flush the cache. You may want=20 to look at the cache settings of your browser and/or proxy server and see= ... Any more issues, please let me know. Regards, Ben. Marr, Joe wrote: > When I install and use version 0.100.7 everything works..... >=20 >=20 > Does that help at all? >=20 > Joe Marr >=20 > -----Original Message----- > From: Ben Clewett [mailto:BCl...@pe...]=20 > Sent: Wednesday, November 03, 2004 11:36 AM > To: Marr, Joe > Cc: Ben Clewett; per...@li... > Subject: Re: [Perfparse-users] Help..... >=20 > OOps, I gave you the wrong name. 'perfgraph.cgi' is what you correctly= =20 > guessed. >=20 > But this is very odd. What you just did is effectively what Apache=20 > does. It should have produced the HTML starting from the <HTML> tag. = I >=20 > can see your database being correctly queried with valid data being=20 > returned. All be it without the closing </body></html> but this is not= =20 > because the program is in error. >=20 > I will have to think about this.... >=20 > Ben >=20 >=20 > Marr, Joe wrote: >=20 >=20 >>I don't have a perfparse.cgi. but (weird) perfgraph.cgi displays data. >> >>[root@excedrin sbin]# su apache >>[apache@excedrin sbin]$ sh >>sh-2.05b$ export QUERY_STRING=3D"?select_host=3D1" >>sh-2.05b$ ./perfg >>perfgant.png perfgraph.cgi =20 >>sh-2.05b$ ./perfgraph.cgi=20 >>Expires: Sun, 02 Jan 2000 01:01:01 GMT >>content-type: text/html >> >><HTML> >><HEAD> >><TITLE> >>PerfParse</TITLE> >><BODY BGcolor=3D"#EEFFFF" TEXT=3D"#000000" LINK=3D"#000000" VLINK=3D"#0= 00000" >>ALINK=3D"#000000"> >><p align=3Dcenter> >><table width=3D600 border=3D1 cellpadding=3D5 cellspacing=3D0 >>bgcolor=3D"#CCCCCC"><tr><td> >> <table width=3D"100%" border=3D0 cellpadding=3D0 cellspacing=3D0> >> <tr> >> <td width=3D60><img src=3D"/nagios/images/perfparse-logo-sm.png" >>border=3D0></td> >> <td align=3Dcenter><font face=3D"Arial, Helvetica" size=3D2> >> <b>Select Host to Graph</b><br> >> <a href=3D"perfgraph.cgi">Click to return to main menu.</a> >> </td> >> <td width=3D60 align=3Dright><font face=3D"Arial, Helvetica" >>size=3D1>v0.103.1</td> >> </tr> >> </table> >></td></tr></table></p> >><p align=3Dcenter> >><table width=3D600 border=3D1 cellpadding=3D5 cellspacing=3D0 >>bgcolor=3D"#CCCCCC"><tr><td> >> <table width=3D"100%" border=3D0 cellpadding=3D0 cellspacing=3D0> >> <tr> >> <td align=3Dcenter> >><font face=3D"Arial, Helvetica" size=3D2><b>Group:</b> Unassigned >><table width=3D"100%" border=3D1 cellpadding=3D5 cellspacing=3D0 >>bgcolor=3D"#FFFFFF"><td><font face=3D"Arial, Helvetica" size=3D2> >><nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Darchprint">archprin= t</a></ >=20 >>nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2">bo= oksrs60 >=20 >>00-2</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01">br= odart-c >=20 >>or01</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03">br= odart-c >=20 >>or03</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04">br= odart-c >=20 >>or04</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01">br= odart-f >=20 >>rw01</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01">br= odart-g >=20 >>wy01</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01">br= odart-s >=20 >>wt01</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03">br= odart-s >=20 >>wt03</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">br= odart-s >=20 >>wt04</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">br= odart-s >=20 >>wt05</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">br= odart-s >=20 >>wt06</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">br= odart-s >=20 >>wt07</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0201"= >brodar >=20 >>t-vlan0201</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0301"= >brodar >=20 >>t-vlan0301</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0302"= >brodar >=20 >>t-vlan0302</a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></nobr>= & >=20 >>nbsp;<nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></nobr>= & >=20 >>nbsp;<nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dexcedrin">excedrin<= /a></no >=20 >>br> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dgatekeeper">gatekee= per</a> >=20 >></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dinternet">internet<= /a></no >=20 >>br> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ditwebapps">itwebapp= s</a></ >=20 >>nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mailser= ver</a> >=20 >></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mailse= rver2</ >=20 >>a></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nobr>= & >=20 >>nbsp;<nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nobr>= & >=20 >>nbsp;<nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">serial= 0-0</a> >=20 >></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">serial= 0-1</a> >=20 >></nobr> <nobr><a >> >=20 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dsmtp">smtp</a></nob= r>  >=20 >>; </td></tr></table> >> </td> >> </tr> >> </table> >></td></tr></table></p> >> >>Joe Marr >> >>-----Original Message----- >>From: Ben Clewett [mailto:BCl...@pe...]=20 >>Sent: Wednesday, November 03, 2004 10:56 AM >>To: Marr, Joe >>Cc: per...@li... >>Subject: Re: [Perfparse-users] Help..... >> >>Joe, >> >>The place I would start, if others members have not answered already: >> >>1. su to your httpd user. Eg, $ su apache >>Really important to do all testing as the httpd user. >> >>2. Set an environment variable: >>$ export QUERY_STRING=3D"?select_host=3D1" >> >>3. run the code: >>$ /usr/local/nagios/sbin/perfparse.cgi >> >>Let us know. >> >>Regards, Ben. >> >> >> >>Marr, Joe wrote: >> >> >> >>>Hi All, >>> >>> >>> >>>I'm trying to install the software for the first time, using the >> >>method 2. >> >> >>> >>>When I try to launch the CGI using the standard link=20 >>>(http://server.domain.com/nagios/cgi-bin/perfgraph.cgi?all_bin=3D1) or >> >>any=20 >> >> >>>link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi >> >>I=20 >> >> >>>get this error. >>> >>> >>> *Server error!* >>> >>>The server encountered an internal error and was unable to complete >> >>your=20 >> >> >>>request. >>> >>>Error message: >>>malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cg= i >>> >>>If you think this is a server error, please contact the webmaster=20 >>><mailto:root@localhost> >>> >>> >>> *Error 500* >>> >>> >>> >>>I see that there was someone else with issue in the forums, but I >> >>tried=20 >> >> >>>the things Ben suggested. Does anyone know what this error is about? >>> >>> >>> >>>Joe Marr >>> >>> >>> >> >> >> >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_idU88&alloc_id=12065&op=CCk > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users >=20 |