From: =?iso-8859-1?Q?<yme...@li...> - 2004-11-05 08:57:26
|
The compilation scripts changed to use gdlib-config instead of hard coded= values.=0D=0AWhen you make a change, there is always the possibility tha= t you introduce a bug :)=0D=0A=0D=0AYves=0D=0A=0D=0A=0D=0AThe only thing = I changed was the version of the software. The config file stayed the sam= e, and I used the same configure options.=0D=0A=0D=0AI would think that t= here is a possibility that a bug was introduced into the code new then 0.= 100.7.=0D=0A=0D=0AJoe Marr=0D=0A-----Original Message-----=0D=0AFrom: Ben= Clewett [mailto:BCl...@pe...] =0D=0ASent: Thursday, November 0= 4, 2004 3:04 AM=0D=0ATo: Marr, Joe=0D=0ACc: per...@li...urcef= orge.net=0D=0ASubject: Re: [Perfparse-users] Help.....=0D=0A=0D=0AHi Joe,= =0D=0A=0D=0AI am glad you got it to work. The only think I can think of = is that =0D=0Ayour browser was aggressively caching the page response. T= herefore =0D=0Aalthough you fixed the problem by doing something to the p= erfparse.cfg, =0D=0Athis was not reflected in your browser which was show= ing you the cached =0D=0Acopy of the 'Bad script header'. By replacing t= he file, you change the =0D=0Atimestamp of the file, which is enough to f= lush the cache. You may want =0D=0Ato look at the cache settings of your= browser and/or proxy server and see...=0D=0A=0D=0AAny more issues, pleas= e let me know.=0D=0A=0D=0ARegards, Ben.=0D=0A=0D=0AMarr, Joe wrote:=0D=0A= =0D=0A> When I install and use version 0.100.7 everything works.....=0D=0A= > =0D=0A> =0D=0A> Does that help at all?=0D=0A> =0D=0A> Joe Marr=0D=0A> =0D= =0A> -----Original Message-----=0D=0A> From: Ben Clewett [mailto:BClewett= @perfparse.org] =0D=0A> Sent: Wednesday, November 03, 2004 11:36 AM=0D=0A= > To: Marr, Joe=0D=0A> Cc: Ben Clewett; per...@li...urceforge= .net=0D=0A> Subject: Re: [Perfparse-users] Help.....=0D=0A> =0D=0A> OOps,= I gave you the wrong name. 'perfgraph.cgi' is what you correctly =0D=0A= > guessed.=0D=0A> =0D=0A> But this is very odd. What you just did is eff= ectively what Apache =0D=0A> does. It should have produced the HTML star= ting from the <HTML> tag. I=0D=0A> =0D=0A> can see your database being c= orrectly queried with valid data being =0D=0A> returned. All be it witho= ut the closing </body></html> but this is not =0D=0A> because the program= is in error.=0D=0A> =0D=0A> I will have to think about this....=0D=0A> =0D= =0A> Ben=0D=0A> =0D=0A> =0D=0A> Marr, Joe wrote:=0D=0A> =0D=0A> =0D=0A>>I= don't have a perfparse.cgi. but (weird) perfgraph.cgi displays data.=0D=0A= >>=0D=0A>>[root@excedrin sbin]# su apache=0D=0A>>[apache@excedrin sbin]$ = sh=0D=0A>>sh-2.05b$ export QUERY_STRING=3D"?select_host=3D1"=0D=0A>>sh-2.= 05b$ ./perfg=0D=0A>>perfgant.png perfgraph.cgi =0D=0A>>sh-2.05b$ ./per= fgraph.cgi =0D=0A>>Expires: Sun, 02 Jan 2000 01:01:01 GMT=0D=0A>>content-= type: text/html=0D=0A>>=0D=0A>><HTML>=0D=0A>><HEAD>=0D=0A>><TITLE>=0D=0A>= >PerfParse</TITLE>=0D=0A>><BODY BGcolor=3D"#EEFFFF" TEXT=3D"#000000" LINK= =3D"#000000" VLINK=3D"#000000"=0D=0A>>ALINK=3D"#000000">=0D=0A>><p align=3D= center>=0D=0A>><table width=3D600 border=3D1 cellpadding=3D5 cellspacing=3D= 0=0D=0A>>bgcolor=3D"#CCCCCC"><tr><td>=0D=0A>> <table width=3D"100%" bord= er=3D0 cellpadding=3D0 cellspacing=3D0>=0D=0A>> <tr>=0D=0A>> <td widt= h=3D60><img src=3D"/nagios/images/perfparse-logo-sm.png"=0D=0A>>border=3D= 0></td>=0D=0A>> <td align=3Dcenter><font face=3D"Arial, Helvetica" siz= e=3D2>=0D=0A>> <b>Select Host to Graph</b><br>=0D=0A>> <a href=3D= "perfgraph.cgi">Click to return to main menu.</a>=0D=0A>> </td>=0D=0A>= > <td width=3D60 align=3Dright><font face=3D"Arial, Helvetica"=0D=0A>>= size=3D1>v0.103.1</td>=0D=0A>> </tr>=0D=0A>> </table>=0D=0A>></td></tr>= </table></p>=0D=0A>><p align=3Dcenter>=0D=0A>><table width=3D600 border=3D= 1 cellpadding=3D5 cellspacing=3D0=0D=0A>>bgcolor=3D"#CCCCCC"><tr><td>=0D=0A= >> <table width=3D"100%" border=3D0 cellpadding=3D0 cellspacing=3D0>=0D=0A= >> <tr>=0D=0A>> <td align=3Dcenter>=0D=0A>><font face=3D"Arial, Helve= tica" size=3D2><b>Group:</b> Unassigned=0D=0A>><table width=3D"100%"= border=3D1 cellpadding=3D5 cellspacing=3D0=0D=0A>>bgcolor=3D"#FFFFFF"><t= d><font face=3D"Arial, Helvetica" size=3D2>=0D=0A>><nobr><a=0D=0A>>=0D=0A= > =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Darchprint">= archprint</a></=0D=0A> =0D=0A>>nobr> <nobr><a=0D=0A>>=0D=0A> =0D= =0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2"= >booksrs60=0D=0A> =0D=0A>>00-2</a></nobr> <nobr><a=0D=0A>>=0D=0A= > =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dc= or01">brodart-c=0D=0A> =0D=0A>>or01</a></nobr> <nobr><a=0D=0A>= >=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrod= art%2Dcor03">brodart-c=0D=0A> =0D=0A>>or03</a></nobr> <nobr><a= =0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name= =3Dbrodart%2Dcor04">brodart-c=0D=0A> =0D=0A>>or04</a></nobr> <= nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&ho= st_name=3Dbrodart%2Dfrw01">brodart-f=0D=0A> =0D=0A>>rw01</a></nobr> = <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric= =3D1&host_name=3Dbrodart%2Dgwy01">brodart-g=0D=0A> =0D=0A>>wy01</a></nobr= > <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select= _metric=3D1&host_name=3Dbrodart%2Dswt01">brodart-s=0D=0A> =0D=0A>>wt01</a= ></nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi= ?select_metric=3D1&host_name=3Dbrodart%2Dswt03">brodart-s=0D=0A> =0D=0A>>= wt03</a></nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgr= aph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">brodart-s=0D=0A> =0D= =0A>>wt04</a></nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"p= erfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">brodart-s=0D=0A= > =0D=0A>>wt05</a></nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A> href= =3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">brodart-= s=0D=0A> =0D=0A>>wt06</a></nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A= > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">br= odart-s=0D=0A> =0D=0A>>wt07</a></nobr> <nobr><a=0D=0A>>=0D=0A>= =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvl= an0201">brodar=0D=0A> =0D=0A>>t-vlan0201</a></nobr> <nobr><a=0D= =0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3D= brodart%2Dvlan0301">brodar=0D=0A> =0D=0A>>t-vlan0301</a></nobr> &nbs= p;<nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1= &host_name=3Dbrodart%2Dvlan0302">brodar=0D=0A> =0D=0A>>t-vlan0302</a></no= br> <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?sele= ct_metric=3D1&host_name=3Ddc8">dc8</a></nobr> &=0D=0A> =0D=0A>>nbsp;= <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&h= ost_name=3Ddc9">dc9</a></nobr> &=0D=0A> =0D=0A>>nbsp;<nobr><a=0D=0A>= >=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dexce= drin">excedrin</a></no=0D=0A> =0D=0A>>br> <nobr><a=0D=0A>>=0D=0A= > =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dgatekeeper"= >gatekeeper</a>=0D=0A> =0D=0A>></nobr> <nobr><a=0D=0A>>=0D=0A>= =0D=0A> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dinternet">in= ternet</a></no=0D=0A> =0D=0A>>br> <nobr><a=0D=0A>>=0D=0A> =0D=0A= > href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ditwebapps">itwebapp= s</a></=0D=0A> =0D=0A>>nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A> h= ref=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mailserver= </a>=0D=0A> =0D=0A>></nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A> hr= ef=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mailserver= 2</=0D=0A> =0D=0A>>a></nobr> <nobr><a=0D=0A>>=0D=0A> =0D=0A> h= ref=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nobr>&nb= sp;&=0D=0A> =0D=0A>>nbsp;<nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgrap= h.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nobr> &=0D=0A> =0D= =0A>>nbsp;<nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_me= tric=3D1&host_name=3Dserial0%2D0">serial0-0</a>=0D=0A> =0D=0A>></nobr>&nb= sp; <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_met= ric=3D1&host_name=3Dserial0%2D1">serial0-1</a>=0D=0A> =0D=0A>></nobr>&nbs= p; <nobr><a=0D=0A>>=0D=0A> =0D=0A> href=3D"perfgraph.cgi?select_metr= ic=3D1&host_name=3Dsmtp">smtp</a></nobr> =0D=0A> =0D=0A>>; </td>= </tr></table>=0D=0A>> </td>=0D=0A>> </tr>=0D=0A>> </table>=0D=0A>></= td></tr></table></p>=0D=0A>>=0D=0A>>Joe Marr=0D=0A>>=0D=0A>>-----Original= Message-----=0D=0A>>From: Ben Clewett [mailto:BCl...@pe...] =0D= =0A>>Sent: Wednesday, November 03, 2004 10:56 AM=0D=0A>>To: Marr, Joe=0D=0A= >>Cc: per...@li...=0D=0A>>Subject: Re: [Perfpars= e-users] Help.....=0D=0A>>=0D=0A>>Joe,=0D=0A>>=0D=0A>>The place I would s= tart, if others members have not answered already:=0D=0A>>=0D=0A>>1. su t= o your httpd user. Eg, $ su apache=0D=0A>>Really important to do all tes= ting as the httpd user.=0D=0A>>=0D=0A>>2. Set an environment variable:=0D= =0A>>$ export QUERY_STRING=3D"?select_host=3D1"=0D=0A>>=0D=0A>>3. run the= code:=0D=0A>>$ /usr/local/nagios/sbin/perfparse.cgi=0D=0A>>=0D=0A>>Let u= s know.=0D=0A>>=0D=0A>>Regards, Ben.=0D=0A>>=0D=0A>>=0D=0A>>=0D=0A>>Marr,= Joe wrote:=0D=0A>>=0D=0A>>=0D=0A>>=0D=0A>>>Hi All,=0D=0A>>>=0D=0A>>>=0D=0A= >>>=0D=0A>>>I'm trying to install the software for the first time, using = the=0D=0A>>=0D=0A>>method 2.=0D=0A>>=0D=0A>>=0D=0A>>>=0D=0A>>>When I try = to launch the CGI using the standard link =0D=0A>>>(http://server.domain.= com/nagios/cgi-bin/perfgraph.cgi?all_bin=3D1) or=0D=0A>>=0D=0A>>any =0D=0A= >>=0D=0A>>=0D=0A>>>link other then http://server.domain.com/nagios/cgi-bi= n/perfgraph.cgi=0D=0A>>=0D=0A>>I =0D=0A>>=0D=0A>>=0D=0A>>>get this error.= =0D=0A>>>=0D=0A>>>=0D=0A>>> *Server error!*=0D=0A>>>=0D=0A>>>The server e= ncountered an internal error and was unable to complete=0D=0A>>=0D=0A>>yo= ur =0D=0A>>=0D=0A>>=0D=0A>>>request.=0D=0A>>>=0D=0A>>>Error message:=0D=0A= >>>malformed header from script. Bad header=3Dperfgraph.cgi: perfgraph.cg= i=0D=0A>>>=0D=0A>>>If you think this is a server error, please contact th= e webmaster =0D=0A>>><mailto:root@localhost>=0D=0A>>>=0D=0A>>>=0D=0A>>> = *Error 500*=0D=0A>>>=0D=0A>>>=0D=0A>>>=0D=0A>>>I see that there was some= one else with issue in the forums, but I=0D=0A>>=0D=0A>>tried =0D=0A>>=0D= =0A>>=0D=0A>>>the things Ben suggested. Does anyone know what this error = is about?=0D=0A>>>=0D=0A>>>=0D=0A>>>=0D=0A>>>Joe Marr=0D=0A>>>=0D=0A>>>=0D= =0A>>>=0D=0A>>=0D=0A>>=0D=0A>>=0D=0A> =0D=0A> =0D=0A> =0D=0A> -----------= --------------------------------------------=0D=0A> This SF.Net email is = sponsored by:=0D=0A> Sybase ASE Linux Express Edition - download now for = FREE=0D=0A> LinuxWorld Reader's Choice Award Winner for best database on = Linux.=0D=0A> http://ads.osdn.com/?ad_idU88&alloc_id=12065&op=CCk=0D=0A> = _______________________________________________=0D=0A> Perfparse-users ma= iling list=0D=0A> Per...@li...=0D=0A> https://li= sts.sourceforge.net/lists/listinfo/perfparse-users=0D=0A> =0D=0A=0D=0A=0D= =0A=0D=0A-------------------------------------------------------=0D=0AThi= s SF.Net email is sponsored by:=0D=0ASybase ASE Linux Express Edition - d= ownload now for FREE=0D=0ALinuxWorld Reader's Choice Award Winner for bes= t database on Linux.=0D=0Ahttp://ads.osdn.com/?ad_idU88&alloc_id=12065&op= =0D=0A=0D=0A--=0D=0Ahomepage - http://ymettier.free.fr = -=0D=0Agtktalog - http://www.freesoftware.fsf.org/gtktalog -=0D=0Acardpi= cs - http://www.freesoftware.fsf.org/cardpics/ -=0D=0A=0A=0A*************= *********** ADSL ILLIMITE TISCALI + TELEPHONE GRATUIT *******************= ***** =0ASurfez 40 fois plus vite pour 30EUR/mois seulement ! Et t=E9l=E9= phonez partout en France gratuitement, =0Avers les postes fixes (hors nu= m=E9ros sp=E9ciaux). Tarifs tr=E8s avantageux vers les mobiles et l'inter= national !=0APour profiter de cette offre exceptionnelle, cliquez ici : h= ttp://register.tiscali.fr/adsl (voir conditions sur le site)=0A |