From: Ferrill, J. <jam...@NE...> - 2004-11-03 15:21:15
|
Joe, =20 I had a similar problem after upgrading from 0.100.6 to 0.103.1. Saw = this in the /var/log/apache/error.log file: =20 Error, can't open configuation file: = "//usr/local/nagios/etc/perfparse.cfg" [Wed Nov 3 09:10:21 2004] [error] [client 172.29.19.28] Premature end = of script headers: /usr/local/nagios/sbin/perfgraph.cgi =20 chmod a+r /usr/local/nagios/etc/perfparse.cfg fixes it. =20 James Ferrill -----Original Message----- From: per...@li... = [mailto:per...@li...]On Behalf Of Marr, = Joe Sent: Wednesday, November 03, 2004 7:30 AM To: per...@li... Subject: [Perfparse-users] Help..... Hi All, =20 I'm trying to install the software for the first time, using the method = 2. =20 When I try to launch the CGI using the standard link = (http://server.domain.com/nagios/cgi-bin/perfgraph.cgi?all_bin=3D1) or = any link other then = http://server.domain.com/nagios/cgi-bin/perfgraph.cgi I get this error. Server error! The server encountered an internal error and was unable to complete your = request.=20 Error message:=20 malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi=20 If you think this is a server error, please contact the webmaster = <mailto:root@localhost> =20 Error 500 =20 I see that there was someone else with issue in the forums, but I tried = the things Ben suggested. Does anyone know what this error is about? =20 Joe Marr =20 |
From: Marr, J. <jm...@br...> - 2004-11-03 15:38:12
|
I'm using 0.103.1. The config file is in the correct directory (/usr/local/nagios/etc).=20 Im using 4.1.7 for MySQL (Client and Server) Here is a show_config [root@excedrin bin]# ./perfparse-log2db --show_config Perfparse-log2* [options] # File where Perfparse logs messages # Error_Log =3D "string" Error_Log =3D "perfparse.log" # Rotate Perfparse log files # Error_Log_Rotate =3D "Y/N" Error_Log_Rotate =3D "Yes" # When perfparse cannot parse a file, it drops it to that file # Drop_File =3D "string" Drop_File =3D "/tmp/perfparse.drop" #=20 # Drop_File_Rotate =3D "Y/N" Drop_File_Rotate =3D "Yes" # Log source from nagios (or other tools) that perfparse will scan Authorized values: a file name, '-' for stdin, '|' for a fifo and '>' for a host:port socket For sockets, a command 'history' will be sent before retreiving the data # Service_Log =3D "string" Service_Log =3D "-" # Save the read position in the nagios log file ? If yes, perfparse will start from that position instead of from the beginning # Service_Log_Save_Position =3D "Y/N" Service_Log_Save_Position =3D "yes" # Path for files containing the read position for nagios log files # Service_Log_Position_Mark_Path =3D "string" Service_Log_Position_Mark_Path =3D "" # Start timestamp for history retreiving (positive is absolute, negative is relative to end tm) # History_Start_Tm =3D "value" History_Start_Tm =3D "-86400" # End timestamp for history retreiving (positive is absolute, negative is relative to Now) # History_End_Tm =3D "value" History_End_Tm =3D "-30" # Show status bar when running # Show_Status_Bar =3D "Y/N" Show_Status_Bar =3D "no" # Print a report at the end of the processing # Do_Report =3D "Y/N" Do_Report =3D "no" # Dummy hostname if gethostname() does not work # Dummy_Hostname =3D "string" Dummy_Hostname =3D "dummy" # Don't store raw data # No_Raw_Data =3D "Y/N" No_Raw_Data =3D "no" # Don't store bin data # No_Bin_Data =3D "Y/N" No_Bin_Data =3D "no" # Storage Module : mysql # = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D # Use Mysql storage module # Use_Storage_Mysql =3D "Y/N" Use_Storage_Mysql =3D "yes" # Database user # DB_User =3D "string" DB_User =3D "*****" # Database password # DB_Pass =3D "string" DB_Pass =3D "*****" # Database name # DB_Name =3D "string" DB_Name =3D "*****" # Database hostname # DB_Host =3D "string" DB_Host =3D "*****" Let me know if there is any more info I can provide. Joe Marr -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Yves Mettier Sent: Wednesday, November 03, 2004 8:45 AM To: per...@li... Subject: Re: [Perfparse-users] Help..... Check if you have a configuration file in your installation directory. If you only have etc/perfparse.cfg.example, rename it as etc/perfparse.cfg and edit. If that does not solve the problem, try to give us more info, including the version of perfparse you are using (latest is 0.103.1). Yves > 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 > (http://server.domain.com/nagios/cgi-bin/perfgraph.cgi?all_bin=3D1) or any > link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi I > get this error. > > > Server error! > > > The server encountered an internal error and was unable to complete your > 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 > <mailto:root@localhost> > > > Error 500 > > > > > I see that there was someone else with issue in the forums, but I tried > the things Ben suggested. Does anyone know what this error is about? > > > > Joe Marr > > > > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://perfparse.sf.net/ - ------------------------------------------------------- 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=3Dick _______________________________________________ Perfparse-users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perfparse-users |
From: Marr, J. <jm...@br...> - 2004-11-03 15:44:55
|
This my log for HTTPD. =20 [Wed Nov 03 10:42:37 2004] [error] [client 10.200.6.67] malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: http://excedrin.brodart.com/nagios/side.html [Wed Nov 03 10:42:48 2004] [error] [client 10.200.6.67] malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: http://excedrin.brodart.com/nagios/ [Wed Nov 03 10:42:58 2004] [error] [client 10.200.6.67] malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi [Wed Nov 03 10:43:10 2004] [error] [client 10.200.6.67] malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: http://excedrin.brodart.com/nagios/cgi-bin/perfgraph.cgi [Wed Nov 03 10:43:16 2004] [error] [client 10.200.6.67] malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: http://excedrin.brodart.com/nagios/cgi-bin/perfgraph.cgi =20 If I move the config file, I get..... =20 [Wed Nov 03 10:33:33 2004] [error] [client 10.200.6.67] Premature end of script headers: perfgraph.cgi, referer: http://excedrin.brodart.com/nagios/side.html [Wed Nov 03 10:33:33 2004] [error] [client 10.200.6.67] Error, can't open configuation file: "//usr/local/nagios//etc/perfparse.cfg", referer: http://excedrin.brodart.com/nagios/side.html =20 So Im going assume that its reading the config (althought the double "/" worries me) =20 Joe Marr ________________________________ From: Ferrill, James [mailto:jam...@NE...]=20 Sent: Wednesday, November 03, 2004 10:21 AM To: Marr, Joe; per...@li... Subject: RE: [Perfparse-users] Help..... =20 Joe, =20 I had a similar problem after upgrading from 0.100.6 to 0.103.1. Saw this in the /var/log/apache/error.log file: =20 Error, can't open configuation file: "//usr/local/nagios/etc/perfparse.cfg" [Wed Nov 3 09:10:21 2004] [error] [client 172.29.19.28] Premature end of script headers: /usr/local/nagios/sbin/perfgraph.cgi =20 chmod a+r /usr/local/nagios/etc/perfparse.cfg fixes it. =20 James Ferrill -----Original Message----- From: per...@li... [mailto:per...@li...]On Behalf Of Marr, Joe Sent: Wednesday, November 03, 2004 7:30 AM To: per...@li... Subject: [Perfparse-users] Help..... Hi All, =20 I'm trying to install the software for the first time, using the method 2. =20 When I try to launch the CGI using the standard link (http://server.domain.com/nagios/cgi-bin/perfgraph.cgi?all_bin=3D1) or = any link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi I get this error. Server error! The server encountered an internal error and was unable to complete your request.=20 Error message:=20 malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi=20 If you think this is a server error, please contact the webmaster <mailto:root@localhost> =20 Error 500 =20 I see that there was someone else with issue in the forums, but I tried the things Ben suggested. Does anyone know what this error is about? =20 Joe Marr =20 |
From: Marr, J. <jm...@br...> - 2004-11-03 16:27:13
|
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"#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> 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, >=20 > =20 >=20 > I'm trying to install the software for the first time, using the method 2. >=20 > =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 any=20 > link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi I=20 > get this error. >=20 >=20 > *Server error!* >=20 > The server encountered an internal error and was unable to complete your=20 > request. >=20 > Error message: > malformed header from script. Bad header=3Dperfgraph.cgi: = perfgraph.cgi >=20 > If you think this is a server error, please contact the webmaster=20 > <mailto:root@localhost> >=20 >=20 > *Error 500* >=20 > =20 >=20 > 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? >=20 > =20 >=20 > Joe Marr >=20 > =20 >=20 |
From: Ben C. <BCl...@pe...> - 2004-11-03 16:36:05
|
OOps, I gave you the wrong name. 'perfgraph.cgi' is what you correctly guessed. But this is very odd. What you just did is effectively what Apache does. It should have produced the HTML starting from the <HTML> tag. I can see your database being correctly queried with valid data being returned. All be it without the closing </body></html> but this is not 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. > > [root@excedrin sbin]# su apache > [apache@excedrin sbin]$ sh > sh-2.05b$ export QUERY_STRING="?select_host=1" > sh-2.05b$ ./perfg > perfgant.png perfgraph.cgi > sh-2.05b$ ./perfgraph.cgi > Expires: Sun, 02 Jan 2000 01:01:01 GMT > content-type: text/html > > <HTML> > <HEAD> > <TITLE> > PerfParse</TITLE> > <BODY BGcolor="#EEFFFF" TEXT="#000000" LINK="#000000" VLINK="#000000" > ALINK="#000000"> > <p align=center> > <table width=600 border=1 cellpadding=5 cellspacing=0 > bgcolor="#CCCCCC"><tr><td> > <table width="100%" border=0 cellpadding=0 cellspacing=0> > <tr> > <td width=60><img src="/nagios/images/perfparse-logo-sm.png" > border=0></td> > <td align=center><font face="Arial, Helvetica" size=2> > <b>Select Host to Graph</b><br> > <a href="perfgraph.cgi">Click to return to main menu.</a> > </td> > <td width=60 align=right><font face="Arial, Helvetica" > size=1>v0.103.1</td> > </tr> > </table> > </td></tr></table></p> > <p align=center> > <table width=600 border=1 cellpadding=5 cellspacing=0 > bgcolor="#CCCCCC"><tr><td> > <table width="100%" border=0 cellpadding=0 cellspacing=0> > <tr> > <td align=center> > <font face="Arial, Helvetica" size=2><b>Group:</b> Unassigned > <table width="100%" border=1 cellpadding=5 cellspacing=0 > bgcolor="#FFFFFF"><td><font face="Arial, Helvetica" size=2> > <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=archprint">archprint</a></ > nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=booksrs6000%2D2">booksrs60 > 00-2</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dcor01">brodart-c > or01</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dcor03">brodart-c > or03</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dcor04">brodart-c > or04</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dfrw01">brodart-f > rw01</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dgwy01">brodart-g > wy01</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dswt01">brodart-s > wt01</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dswt03">brodart-s > wt03</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dswt04">brodart-s > wt04</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dswt05">brodart-s > wt05</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dswt06">brodart-s > wt06</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dswt07">brodart-s > wt07</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dvlan0201">brodar > t-vlan0201</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dvlan0301">brodar > t-vlan0301</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=brodart%2Dvlan0302">brodar > t-vlan0302</a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=dc8">dc8</a></nobr> & > nbsp;<nobr><a > href="perfgraph.cgi?select_metric=1&host_name=dc9">dc9</a></nobr> & > nbsp;<nobr><a > href="perfgraph.cgi?select_metric=1&host_name=excedrin">excedrin</a></no > br> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=gatekeeper">gatekeeper</a> > </nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=internet">internet</a></no > br> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=itwebapps">itwebapps</a></ > nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=mailserver">mailserver</a> > </nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=mailserver2">mailserver2</ > a></nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=ns1">ns1</a></nobr> & > nbsp;<nobr><a > href="perfgraph.cgi?select_metric=1&host_name=ns2">ns2</a></nobr> & > nbsp;<nobr><a > href="perfgraph.cgi?select_metric=1&host_name=serial0%2D0">serial0-0</a> > </nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=serial0%2D1">serial0-1</a> > </nobr> <nobr><a > href="perfgraph.cgi?select_metric=1&host_name=smtp">smtp</a></nobr>  > ; </td></tr></table> > </td> > </tr> > </table> > </td></tr></table></p> > > Joe Marr > > -----Original Message----- > From: Ben Clewett [mailto:BCl...@pe...] > 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="?select_host=1" > > 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 >>(http://server.domain.com/nagios/cgi-bin/perfgraph.cgi?all_bin=1) or > > any > >>link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi > > I > >>get this error. >> >> >> *Server error!* >> >>The server encountered an internal error and was unable to complete > > your > >>request. >> >>Error message: >>malformed header from script. Bad header=perfgraph.cgi: perfgraph.cgi >> >>If you think this is a server error, please contact the webmaster >><mailto:root@localhost> >> >> >> *Error 500* >> >> >> >>I see that there was someone else with issue in the forums, but I > > tried > >>the things Ben suggested. Does anyone know what this error is about? >> >> >> >>Joe Marr >> >> >> > > > |
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 |
From: Marr, J. <jm...@br...> - 2004-11-03 17:44:12
|
When I install and use version 0.100.7 everything works..... Does that help at all? 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 |
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 |
From: Marr, J. <jm...@br...> - 2004-11-04 13:54:02
|
The only thing I changed was the version of the software. The config = file stayed the same, and I used the same configure options. I would think that there is a possibility that a bug was introduced into = the code new then 0.100.7. Joe Marr -----Original Message----- From: Ben Clewett [mailto:BCl...@pe...]=20 Sent: Thursday, November 04, 2004 3:04 AM To: Marr, Joe Cc: per...@li... Subject: Re: [Perfparse-users] Help..... 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 = 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"#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 >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Darchprint">archprint<= /a></ >=20 >>nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2">book= srs60 >=20 >>00-2</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01">brod= art-c >=20 >>or01</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03">brod= art-c >=20 >>or03</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04">brod= art-c >=20 >>or04</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01">brod= art-f >=20 >>rw01</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01">brod= art-g >=20 >>wy01</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01">brod= art-s >=20 >>wt01</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03">brod= art-s >=20 >>wt03</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">brod= art-s >=20 >>wt04</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">brod= art-s >=20 >>wt05</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">brod= art-s >=20 >>wt06</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">brod= art-s >=20 >>wt07</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0201">b= rodar >=20 >>t-vlan0201</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0301">b= rodar >=20 >>t-vlan0301</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0302">b= rodar >=20 >>t-vlan0302</a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></nobr>&n= bsp;& >=20 >>nbsp;<nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></nobr>&n= bsp;& >=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">gatekeepe= r</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">itwebapps<= /a></ >=20 >>nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mailserve= r</a> >=20 >></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mailserv= er2</ >=20 >>a></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nobr>&n= bsp;& >=20 >>nbsp;<nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nobr>&n= bsp;& >=20 >>nbsp;<nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">serial0-= 0</a> >=20 >></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">serial0-= 1</a> >=20 >></nobr> <nobr><a >> >=20 > = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dsmtp">smtp</a></nobr>=   >=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.cgi >>> >>>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 |
From: Yves M. <yme...@li...> - 2004-11-05 08:58:23
|
The compilation scripts changed to use gdlib-config instead of hard coded= values. When you make a change, there is always the possibility that you introduc= e a bug :) Yves > The only thing I changed was the version of the software. The config fi= le stayed the > same, and I used the same configure options. > > I would think that there is a possibility that a bug was introduced int= o the code new > then 0.100.7. > > Joe Marr > -----Original Message----- > From: Ben Clewett [mailto:BCl...@pe...] > Sent: Thursday, November 04, 2004 3:04 AM > To: Marr, Joe > Cc: per...@li... > Subject: Re: [Perfparse-users] Help..... > > Hi Joe, > > I am glad you got it to work. The only think I can think of is that > your browser was aggressively caching the page response. Therefore > although you fixed the problem by doing something to the perfparse.cfg, > this was not reflected in your browser which was showing you the cached > copy of the 'Bad script header'. By replacing the file, you change the > timestamp of the file, which is enough to flush the cache. You may wan= t > to look at the cache settings of your browser and/or proxy server and s= ee... > > Any more issues, please let me know. > > Regards, Ben. > > Marr, Joe wrote: > >> When I install and use version 0.100.7 everything works..... >> >> >> Does that help at all? >> >> Joe Marr >> >> -----Original Message----- >> From: Ben Clewett [mailto:BCl...@pe...] >> 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 correctl= y >> guessed. >> >> But this is very odd. What you just did is effectively what Apache >> does. It should have produced the HTML starting from the <HTML> tag. = I >> >> can see your database being correctly queried with valid data being >> returned. All be it without the closing </body></html> but this is no= t >> 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. >>> >>>[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 >>>sh-2.05b$ ./perfgraph.cgi >>>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"#= 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">archpri= nt</a></ >> >>>nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2">b= ooksrs60 >> >>>00-2</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01">b= rodart-c >> >>>or01</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03">b= rodart-c >> >>>or03</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04">b= rodart-c >> >>>or04</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01">b= rodart-f >> >>>rw01</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01">b= rodart-g >> >>>wy01</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01">b= rodart-s >> >>>wt01</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03">b= rodart-s >> >>>wt03</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">b= rodart-s >> >>>wt04</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">b= rodart-s >> >>>wt05</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">b= rodart-s >> >>>wt06</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">b= rodart-s >> >>>wt07</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0201= ">brodar >> >>>t-vlan0201</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0301= ">brodar >> >>>t-vlan0301</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0302= ">brodar >> >>>t-vlan0302</a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></nobr= > & >> >>>nbsp;<nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></nobr= > & >> >>>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">gateke= eper</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">itwebap= ps</a></ >> >>>nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mailse= rver</a> >> >>></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mails= erver2</ >> >>>a></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nobr= > & >> >>>nbsp;<nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nobr= > & >> >>>nbsp;<nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">seria= l0-0</a> >> >>></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">seria= l0-1</a> >> >>></nobr> <nobr><a >>> >> >> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dsmtp">smtp</a></no= br>  >> >>>; </td></tr></table> >>> </td> >>> </tr> >>> </table> >>></td></tr></table></p> >>> >>>Joe Marr >>> >>>-----Original Message----- >>>From: Ben Clewett [mailto:BCl...@pe...] >>>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 >>>>(http://server.domain.com/nagios/cgi-bin/perfgraph.cgi?all_bin=3D1) o= r >>> >>>any >>> >>> >>>>link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi >>> >>>I >>> >>> >>>>get this error. >>>> >>>> >>>> *Server error!* >>>> >>>>The server encountered an internal error and was unable to complete >>> >>>your >>> >>> >>>>request. >>>> >>>>Error message: >>>>malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.c= gi >>>> >>>>If you think this is a server error, please contact the webmaster >>>><mailto:root@localhost> >>>> >>>> >>>> *Error 500* >>>> >>>> >>>> >>>>I see that there was someone else with issue in the forums, but I >>> >>>tried >>> >>> >>>>the things Ben suggested. Does anyone know what this error is about? >>>> >>>> >>>> >>>>Joe Marr >>>> >>>> >>>> >>> >>> >>> >> >> >> >> ------------------------------------------------------- >> 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 >> > > > > ------------------------------------------------------- > 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=3Dclick > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://perfparse.sf.net/ - |