|
From: Marr, J. <jm...@br...> - 2004-11-03 16:37:13
|
Sure thing,=20 Let me know if I can be of any assistance. Joe Marr -----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..... OOps, I gave you the wrong name. 'perfgraph.cgi' is what you correctly=20 guessed. 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 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. I will have to think about this.... Ben Marr, Joe wrote: > I don't have a perfparse.cgi. but (weird) perfgraph.cgi displays data. >=20 > [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 >=20 > <HTML> > <HEAD> > <TITLE> > PerfParse</TITLE> > <BODY BGcolor=3D"#EEFFFF" TEXT=3D"#000000" LINK=3D"#000000" = VLINK=3D"#000000" > 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 > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Darchprint">archprint<= /a></ > nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2">book= srs60 > 00-2</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01">brod= art-c > or01</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03">brod= art-c > or03</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04">brod= art-c > or04</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01">brod= art-f > rw01</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01">brod= art-g > wy01</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01">brod= art-s > wt01</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03">brod= art-s > wt03</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">brod= art-s > wt04</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">brod= art-s > wt05</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">brod= art-s > wt06</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">brod= art-s > wt07</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0201">b= rodar > t-vlan0201</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0301">b= rodar > t-vlan0301</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0302">b= rodar > t-vlan0302</a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></nobr>&n= bsp;& > nbsp;<nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></nobr>&n= bsp;& > nbsp;<nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dexcedrin">excedrin</a= ></no > br> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dgatekeeper">gatekeepe= r</a> > </nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dinternet">internet</a= ></no > br> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ditwebapps">itwebapps<= /a></ > nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mailserve= r</a> > </nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mailserv= er2</ > a></nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nobr>&n= bsp;& > nbsp;<nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nobr>&n= bsp;& > nbsp;<nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">serial0-= 0</a> > </nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">serial0-= 1</a> > </nobr> <nobr><a > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dsmtp">smtp</a></nobr>=   > ; </td></tr></table> > </td> > </tr> > </table> > </td></tr></table></p> >=20 > Joe Marr >=20 > -----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..... >=20 > Joe, >=20 > The place I would start, if others members have not answered already: >=20 > 1. su to your httpd user. Eg, $ su apache > Really important to do all testing as the httpd user. >=20 > 2. Set an environment variable: > $ export QUERY_STRING=3D"?select_host=3D1" >=20 > 3. run the code: > $ /usr/local/nagios/sbin/perfparse.cgi >=20 > Let us know. >=20 > Regards, Ben. >=20 >=20 >=20 > Marr, Joe wrote: >=20 >=20 >>Hi All, >> >>=20 >> >>I'm trying to install the software for the first time, using the >=20 > method 2. >=20 >>=20 >> >>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 >=20 > any=20 >=20 >>link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi >=20 > I=20 >=20 >>get this error. >> >> >> *Server error!* >> >>The server encountered an internal error and was unable to complete >=20 > your=20 >=20 >>request. >> >>Error message: >>malformed header from script. Bad header=3Dperfgraph.cgi: = perfgraph.cgi >> >>If you think this is a server error, please contact the webmaster=20 >><mailto:root@localhost> >> >> >> *Error 500* >> >>=20 >> >>I see that there was someone else with issue in the forums, but I >=20 > tried=20 >=20 >>the things Ben suggested. Does anyone know what this error is about? >> >>=20 >> >>Joe Marr >> >>=20 >> >=20 >=20 >=20 |