You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(12) |
Jun
(56) |
Jul
(68) |
Aug
(141) |
Sep
(82) |
Oct
(76) |
Nov
(115) |
Dec
(74) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(65) |
Feb
(113) |
Mar
(82) |
Apr
(37) |
May
(44) |
Jun
(22) |
Jul
(12) |
Aug
(3) |
Sep
(17) |
Oct
(11) |
Nov
(23) |
Dec
(1) |
2006 |
Jan
(1) |
Feb
(9) |
Mar
(6) |
Apr
(12) |
May
(10) |
Jun
(23) |
Jul
(1) |
Aug
(4) |
Sep
(3) |
Oct
(4) |
Nov
(6) |
Dec
(15) |
2007 |
Jan
(17) |
Feb
(14) |
Mar
(20) |
Apr
(7) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(2) |
2008 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(6) |
Jun
(5) |
Jul
(13) |
Aug
(2) |
Sep
(16) |
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Veiko K. <ve...@pa...> - 2004-11-10 13:03:33
|
Hi! I'm using Suse 9.1 and trying to get perfparse working on it. Thought i have installed glib2 and glib2-devel packages, the perfparse configure doesn't recognize them. What should i do to get it working? ... checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GLIB is incorrectly installed. Using Mysql .... config.log includes the following: configure:19420: checking for pkg-config configure:19438: found /usr/bin/pkg-config configure:19451: result: /usr/bin/pkg-config configure:19474: checking for GLIB - version >= 2.0.0 configure:19623: result: no configure:19656: gcc -o conftest -g -O2 conftest.c >&5 conftest.c:30:18: glib.h: No such file or directory conftest.c: In function `main': conftest.c:36: error: `glib_major_version' undeclared (first use in this function) conftest.c:36: error: (Each undeclared identifier is reported only once conftest.c:36: error: for each function it appears in.) conftest.c:36: error: `glib_minor_version' undeclared (first use in this function) conftest.c:36: error: `glib_micro_version' undeclared (first use in this function) configure:19662: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "perfparse" | #define PACKAGE_TARNAME "perfparse" | #define PACKAGE_VERSION "0.103.1" | #define PACKAGE_STRING "perfparse 0.103.1" | #define PACKAGE_BUGREPORT "per...@cl..." | #define PACKAGE "perfparse" | #define VERSION "0.103.1" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define ENABLE_STORAGE_MODULE_STDOUT 1 | #define ENABLE_STORAGE_MODULE_MYSQL 1 | #define ENABLE_STORAGE_MODULE_FILEOUTPUT 1 | #define ENABLE_STORAGE_MODULE_SOCKETOUTPUT 1 | /* end confdefs.h. */ | | #include <glib.h> | #include <stdio.h> | | int | main () | { | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | ; | return 0; | } configure:19769: checking for mysql_config configure:19788: found /usr/bin/mysql_config |
From: Yves <yme...@pe...> - 2004-11-09 10:20:51
|
> I've got perfparse setup and mostly working at this point. There are a > few minor things I'm trying to figure out (like having it write more > meaningful information to rrdgraphs, and graphing multiple colors to > rrdtool).. I add to Ben's answer that an rrd file export should be very easy to writ= e and connect to perfparse if you know librrd. I may do that one day, but I have other priorities before. Contributions are really apperciated. About how do do it, edit storage_print.c in perfparse/ (versions up to 0.= 103.X) and in modules/ (starting at 0.104.1, not released yet). Hack it and send us you= r contribution :) Yves --=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/ - |
From: Ben C. <be...@cl...> - 2004-11-09 08:05:44
|
Hi Michael, At the present time PP does not use rrdgraphs or rrdtool. However this is planned for the future, there is a space waiting for a programmer. I am interested in your ideas for more meaningful information and multiple colours. Can you explain what you would like to see? Looking at your script, this looks interesting. You may however want to remove the cat of the perfdata-host, this is not used by PP. There is a icmp plugin which produces performance data, which can therefore be used for the service-log. Therefore the host file gives no useful information and is not parsed. You may also want to use the '-r' option as well, this will give you some idea of how many lines are dropped. I hope this is of some use, Regards, Ben. Michael T. Halligan wrote: > I've got perfparse setup and mostly working at this point. There are a > few minor things I'm trying to figure out (like having it write more > meaningful information to rrdgraphs, and graphing multiple colors to > rrdtool).. The last major problem I'm having is with host performance > data. > > I'm writing my service data to /home/nagios/var/log/perfdata-service.log > and my host data to /var/log/perfdata-host.log > > I'm using this script here to actually force the parsing : > > --------------------------------------------------------------------- > USER2=/home/nagios > > mv ${USER2}/var/log/perfdata-service.log > ${USER2}/var/log/perfdata-service.log1 > mv ${USER2}/var/log/perfdata-host.log ${USER2}/var/log/perfdata-host.log1 > cat ${USER2}/var/log/perfdata-service.log1 > ${USER2}/var/log/perfdata-host.log1 | ${USER2}/bin/perfparse-log2db -c > ${USER2}/etc/perfparse.cfg > rm ${USER2}/var/log/perfdata-service.log1 > rm ${USER2}/var/log/perfdata-host.log1 > --------------------------------------------------------------------- > > For my host check I'm using check_icmp which appears to be logging > information properly to /home/nagios/var/log/perfdata-host.log .. but > perfdata doesn't seem to be picking up the host check performance data. > > > ------------------- > BitPusher, LLC > http://www.bitpusher.com/ > 1.888.9PUSHER > (415) 724.7998 - Mobile > > > > ------------------------------------------------------- > 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_id065&opÌk > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Ben C. <be...@cl...> - 2004-11-09 07:54:16
|
Jeff, Yes. :) My plans on the project are to get the database converted to a new format, which will be faster and take up considerably less storage space. After that this will be my concern. Yves will also be working in this area of the code, designing an abstraction layer for the graphics presentation so that data can be retrieved from multiple storage forms. If we both do our jobs correctly, it should be a simple matter at that time. Watch this space... Ben Jeff Scott wrote: > Is there any plans to add multiple "lines" to a graph? For instance, > plot multiple services from the same server on the same graph, or plot > same service from multiple servers on same graph. > > Thanks! > Jeff Scott > > > ------------------------------------------------------- > 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_id=5588&alloc_id=12065&op=click > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Michael T. H. <mi...@ha...> - 2004-11-08 23:59:43
|
I've got perfparse setup and mostly working at this point. There are a few minor things I'm trying to figure out (like having it write more meaningful information to rrdgraphs, and graphing multiple colors to rrdtool).. The last major problem I'm having is with host performance data. I'm writing my service data to /home/nagios/var/log/perfdata-service.log and my host data to /var/log/perfdata-host.log I'm using this script here to actually force the parsing : --------------------------------------------------------------------- USER2=3D/home/nagios mv ${USER2}/var/log/perfdata-service.log ${USER2}/var/log/perfdata-service.log1 mv ${USER2}/var/log/perfdata-host.log ${USER2}/var/log/perfdata-host.log1 cat ${USER2}/var/log/perfdata-service.log1 ${USER2}/var/log/perfdata-host.log1 | ${USER2}/bin/perfparse-log2db -c ${USER2}/etc/perfparse.cfg rm ${USER2}/var/log/perfdata-service.log1 rm ${USER2}/var/log/perfdata-host.log1 --------------------------------------------------------------------- For my host check I'm using check_icmp which appears to be logging information properly to /home/nagios/var/log/perfdata-host.log .. but perfdata doesn't seem to be picking up the host check performance data. ------------------- BitPusher, LLC http://www.bitpusher.com/ 1.888.9PUSHER (415) 724.7998 - Mobile |
From: Jeff S. <js...@ti...> - 2004-11-08 21:16:13
|
Is there any plans to add multiple "lines" to a graph? For instance, plot multiple services from the same server on the same graph, or plot same service from multiple servers on same graph. Thanks! Jeff Scott |
From: Ben C. <be...@cl...> - 2004-11-08 11:47:48
|
Hi Joe, I can see the out with the delimiter. The metric name is encoded in quotes. This cannot be interperated by the older version of PP. I believe any version before 0.101. However any version after this should work. But metrics of this format are extremely rare: | '10 min avg Load'=0%;80;60;0;100 The usual format would be: | load10min=0%;80;60;0;100 If you are using a version above 0.101.0 this may be a bug, please let us know. Ben PS, sorry that this is so much haste for you. I completed a fresh installation of the latest my self on an old RH7.2, no problem at all. So why you have all this bad luck I do not know :( > Ben, > > > > Thanks for the pointer regarding the bad plugin. > > > > I replace the plugin with the latest CVS one… here is what I get. > > > > This shows up in my perfparse log: > > > > 1099682376 dc9 CPULOAD CPU Load 1% (10 min average) > OK 10 min avg Load=1%;80;60;0;100 > > > > When I run the command: > > > > ./check_nt -H dc9.nexus.brodart.internal -v CPULOAD -l > 10,80.95,60,80,95,1440,80,95 > > > > CPU Load 0% (10 min average) | '10 min avg Load'=0%;80;60;0;100 > > > > I see the delimiter, so why isn’t it showing up in my binary data table? > > > > Thanks, > > > > Joe Marr > > ------------------------------------------------------------------------ > > *From:* per...@li... > [mailto:per...@li...] *On Behalf Of > *Marr, Joe > *Sent:* Thursday, November 04, 2004 11:40 AM > *To:* per...@li... > *Subject:* [Perfparse-users] check_nt > > > > I’m not sure whats causeing this issue. But I can see the performance > data from check_nt: > > > > 1099543975 itwebapps CPULOAD CPU Load 0% (10 min average) > OK 10 min avg Load=0%;80;60;0;100 > > > > But I don’t see the binary data in the perfdata_service_bin table. > > > > I’m using 0.100.7 (I couldn’t tell if this version support check_nt > performance data). > > > > **Joe Marr**, CCNP CCDP > > Senior Systems Administrator > > **Brodart, Co.** > > Cell:** 570.971.7600** > > Pager:** 570.370.3095** > > Office**: 570.326.2461 ext. 6130** > > > |
From: Yves M. <yme...@li...> - 2004-11-08 09:01:18
|
> Yeah, it prints html :( > > I added the statement to perfgraph.c, and I didn't see anything in the = http logs after > compiling and resetting everything. Strange... > I didn't notice, that the links in the cgi-bin, point to lt-perfgraph.c= gi. :) Strange... lt makes me think to libtool, the tool used to generate libraries. But I = don't understand why it does not make a binary called perfgraph.cgi. > Here is a snippet of source for the http generated page. > > <tr><td></td><td colspan=3D2><font face=3D"Arial, Helvetica" size=3D2> > <a href=3D"lt-perfgraph.cgi?select_host=3D1">Graph Binary Data.</a> > </font></td></tr> > > Not sure is means anything....but its odd. Nothing that can help today. But it gives me another idea. Restart the co= mpilation from scratch : ./configure <your options here> make LDFLAGS=3D-static make install LDFLAGS=3D-static This will build static binaries so you should not have problems with libr= aries. It will not help to find where the problem is, and if it is a bug :( But it may work at last :) Yves > > 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/ - |
From: Marr, J. <jm...@br...> - 2004-11-08 00:15:47
|
Yeah, it prints html :( I added the statement to perfgraph.c, and I didn't see anything in the = http logs after compiling and resetting everything. I didn't notice, that the links in the cgi-bin, point to = lt-perfgraph.cgi. :) Here is a snippet of source for the http generated page. <tr><td></td><td colspan=3D2><font face=3D"Arial, Helvetica" size=3D2> <a href=3D"lt-perfgraph.cgi?select_host=3D1">Graph Binary Data.</a> </font></td></tr> Not sure is means anything....but its odd. Joe Marr -----Original Message----- From: Yves Mettier [mailto:yme...@li...]=20 Sent: Sunday, November 07, 2004 5:34 PM To: Marr, Joe Cc: Per...@li... Subject: RE: R: R: [Perfparse-users] Help..... > Any pointers on where to place the statements? Im not much of a c = programmer. 1st, in main(). Then, well, if it's easy for you, get deeper in the code (you don't need = to understand it as soon as you find where it exits). If not, send us the modified = code (not the original) and the last line number. Don't send the original code because the line numbers correspond to the = modified code :) Ooops, before, I don't remember what happens when you run perfchart.cgi = from the command line ? If it does not print html on the console, you can run strace perfchart.cgi If you have html, well, I see nothing else than fprintf(...) Yves > Joe Marr > > -----Original Message----- > From: Yves Mettier [mailto:yme...@li...] > Sent: Sunday, November 07, 2004 3:46 PM > To: Marr, Joe > Cc: Bertinelli Massimo; per...@li... > Subject: RE: R: R: [Perfparse-users] Help..... > > It seems that we'll have to edit the source... > > Could you put the following line everywhere you can in cgi/perfgraph.c = ? > fprintf(stderr, "%f:%d\n", __FILE__,__LINE); > > This should appear in the errorlog of the web server. > With this, you can find where the problem occurs. Tell us where, and = if you understand > why, your diagnostic. > > Maybe Ben or somebody else have other ideas ? > > Yves > >> I have tried just about everything. >> >> Even the devel branch (104) isn't working. >> >> The last version I can get to work is 100.7. >> >> This is the error the page gives me... >> ___________________________ >> >> 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 >> >> Error 500 >> excedrin.domain.com >> Sun 07 Nov 2004 02:09:08 PM EST >> Apache/2.0.40 (Red Hat Linux) >> ___________________________ >> >> This is the error that's in my http_error_log >> >> [Sun Nov 07 14:03:38 2004] [error] [client 10.1.1.228] malformed = header from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: = http://excedrin.domain.com/nagios/ >> [Sun Nov 07 14:03:41 2004] [error] [client 10.1.1.228] malformed = header from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: >> http://excedrin.domain.com/nagios/side.html >> [Sun Nov 07 14:03:47 2004] [error] [client 10.1.1.228] malformed = header from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: >> http://excedrin.domain.com/nagios/side.html >> [Sun Nov 07 14:09:08 2004] [error] [client 10.1.1.228] malformed = header from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: >> http://excedrin.domain.com/nagios/cgi-bin/perfgraph.cgi >> >> I have no errors in my configure output (I resolved the GD errors). = If I make and >> install 100.7 it works fine, but I really would rather have the = newest version for >> various reasons. >> >> Any help would be greatly appreciated. >> >> Joe Marr >> -----Original Message----- >> From: per...@li... >> [mailto:per...@li...] On Behalf Of = Marr, Joe >> Sent: Friday, November 05, 2004 2:56 PM >> To: Yves Mettier; Bertinelli Massimo >> Cc: per...@li... >> Subject: RE: R: R: [Perfparse-users] Help..... >> >> I resolved the gdlib issues, recompile 103 and it still wont run. >> >> Joe Marr >> -----Original Message----- >> From: per...@li... >> [mailto:per...@li...] On Behalf Of = Yves Mettier >> Sent: Thursday, November 04, 2004 6:47 PM >> To: Bertinelli Massimo >> Cc: per...@li... >> Subject: Re: R: R: [Perfparse-users] Help..... >> >> >>> Yves, >>> thanks for your reply. >>> Do you think that the version of gd 1.8.4-11 is good or must change >>> immediatly? >> >> If you can, you will probably go faster to change now and recompile = perfparse without >> hacking it. >> If you cannot change now, you can run that : >> configure <your options here> CFLAGS=3D-I/path/to/gd/include = LDFLAGS=3D"-L/path/to/gd/lib >> -lgd" >> make >> >> if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include >> LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? >> >> I hope this helps. >> >> Yves >> >>> Massimo >>> >>> -----Messaggio originale----- >>> Da: Yves Mettier [mailto:yme...@li...] >>> Inviato: gioved=EC 4 novembre 2004 11.50 >>> A: per...@li... >>> Oggetto: Re: R: [Perfparse-users] Help..... >>> >>> >>>> Ben, >>>> do you remember of me? >>>> :) >>>> I have one question about this problem: >>>> when I lunch ./configure with the standard parameters I receive a = warning >>>> about gdlib-config dir , possibile that this is the problem? >>> >>> yes, it can be. >>> Run "gdlib-config --cflags --libs" >>> >>> Does it answer something unexpected (including "gdlib-config : not = found") ? >>> Don't hesitate to run ./configure = --with-gdlib_config_dir=3D/path/to/gd/bin >>> >>>> I think no....but I'm very tired because i don't understand where = is the >>>> problem. >>>> Also for me the version 0.100.7 work fine other version don't work >>>> (0.101.1 - 0.103.1). >>> >>> yes, this can be an explanation : the configure script changed to = use >>> gdlib_config :) >>> >>> Yves >>> >>>> I hope in your great support. >>>> Reguards >>>> Massimo Bertinelli >>>> >>>> -----Messaggio originale----- >>>> Da: Ben Clewett [mailto:BCl...@pe...] >>>> Inviato: gioved=EC 4 novembre 2004 9.04 >>>> A: Marr, Joe >>>> Cc: per...@li... >>>> Oggetto: 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 = 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..... >>>>> >>>>> >>>>> 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 = 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=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">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...] >>>>>>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= ) 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/ - |
From: Yves M. <yme...@li...> - 2004-11-07 22:34:29
|
> Any pointers on where to place the statements? Im not much of a c progr= ammer. 1st, in main(). Then, well, if it's easy for you, get deeper in the code (you don't need = to understand it as soon as you find where it exits). If not, send us the modified code= (not the original) and the last line number. Don't send the original code because the line numbers correspond to the m= odified code :) Ooops, before, I don't remember what happens when you run perfchart.cgi f= rom the command line ? If it does not print html on the console, you can run strace perfchart.cgi If you have html, well, I see nothing else than fprintf(...) Yves > Joe Marr > > -----Original Message----- > From: Yves Mettier [mailto:yme...@li...] > Sent: Sunday, November 07, 2004 3:46 PM > To: Marr, Joe > Cc: Bertinelli Massimo; per...@li... > Subject: RE: R: R: [Perfparse-users] Help..... > > It seems that we'll have to edit the source... > > Could you put the following line everywhere you can in cgi/perfgraph.c = ? > fprintf(stderr, "%f:%d\n", __FILE__,__LINE); > > This should appear in the errorlog of the web server. > With this, you can find where the problem occurs. Tell us where, and if= you understand > why, your diagnostic. > > Maybe Ben or somebody else have other ideas ? > > Yves > >> I have tried just about everything. >> >> Even the devel branch (104) isn't working. >> >> The last version I can get to work is 100.7. >> >> This is the error the page gives me... >> ___________________________ >> >> Server error! >> The server encountered an internal error and was unable to complete yo= ur 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 >> >> Error 500 >> excedrin.domain.com >> Sun 07 Nov 2004 02:09:08 PM EST >> Apache/2.0.40 (Red Hat Linux) >> ___________________________ >> >> This is the error that's in my http_error_log >> >> [Sun Nov 07 14:03:38 2004] [error] [client 10.1.1.228] malformed heade= r from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: http://excedrin.domain= .com/nagios/ >> [Sun Nov 07 14:03:41 2004] [error] [client 10.1.1.228] malformed heade= r from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: >> http://excedrin.domain.com/nagios/side.html >> [Sun Nov 07 14:03:47 2004] [error] [client 10.1.1.228] malformed heade= r from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: >> http://excedrin.domain.com/nagios/side.html >> [Sun Nov 07 14:09:08 2004] [error] [client 10.1.1.228] malformed heade= r from script. >> Bad >> header=3Dperfgraph.cgi: perfgraph.cgi, referer: >> http://excedrin.domain.com/nagios/cgi-bin/perfgraph.cgi >> >> I have no errors in my configure output (I resolved the GD errors). If= I make and >> install 100.7 it works fine, but I really would rather have the newest= version for >> various reasons. >> >> Any help would be greatly appreciated. >> >> Joe Marr >> -----Original Message----- >> From: per...@li... >> [mailto:per...@li...] On Behalf Of Marr= , Joe >> Sent: Friday, November 05, 2004 2:56 PM >> To: Yves Mettier; Bertinelli Massimo >> Cc: per...@li... >> Subject: RE: R: R: [Perfparse-users] Help..... >> >> I resolved the gdlib issues, recompile 103 and it still wont run. >> >> Joe Marr >> -----Original Message----- >> From: per...@li... >> [mailto:per...@li...] On Behalf Of Yves= Mettier >> Sent: Thursday, November 04, 2004 6:47 PM >> To: Bertinelli Massimo >> Cc: per...@li... >> Subject: Re: R: R: [Perfparse-users] Help..... >> >> >>> Yves, >>> thanks for your reply. >>> Do you think that the version of gd 1.8.4-11 is good or must change >>> immediatly? >> >> If you can, you will probably go faster to change now and recompile pe= rfparse without >> hacking it. >> If you cannot change now, you can run that : >> configure <your options here> CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D= "-L/path/to/gd/lib >> -lgd" >> make >> >> if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include >> LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? >> >> I hope this helps. >> >> Yves >> >>> Massimo >>> >>> -----Messaggio originale----- >>> Da: Yves Mettier [mailto:yme...@li...] >>> Inviato: gioved=EC 4 novembre 2004 11.50 >>> A: per...@li... >>> Oggetto: Re: R: [Perfparse-users] Help..... >>> >>> >>>> Ben, >>>> do you remember of me? >>>> :) >>>> I have one question about this problem: >>>> when I lunch ./configure with the standard parameters I receive a wa= rning >>>> about gdlib-config dir , possibile that this is the problem? >>> >>> yes, it can be. >>> Run "gdlib-config --cflags --libs" >>> >>> Does it answer something unexpected (including "gdlib-config : not fo= und") ? >>> Don't hesitate to run ./configure --with-gdlib_config_dir=3D/path/to/= gd/bin >>> >>>> I think no....but I'm very tired because i don't understand where is= the >>>> problem. >>>> Also for me the version 0.100.7 work fine other version don't work >>>> (0.101.1 - 0.103.1). >>> >>> yes, this can be an explanation : the configure script changed to use >>> gdlib_config :) >>> >>> Yves >>> >>>> I hope in your great support. >>>> Reguards >>>> Massimo Bertinelli >>>> >>>> -----Messaggio originale----- >>>> Da: Ben Clewett [mailto:BCl...@pe...] >>>> Inviato: gioved=EC 4 novembre 2004 9.04 >>>> A: Marr, Joe >>>> Cc: per...@li... >>>> Oggetto: 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.c= fg, >>>> this was not reflected in your browser which was showing you the cac= hed >>>> 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 = want >>>> to look at the cache settings of your browser and/or proxy server an= d >>> see... >>>> >>>> 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 corre= ctly >>>>> 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> ta= g. 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 da= ta. >>>>>> >>>>>>[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> Unassig= ned >>>>>><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">arch= print</a></ >>>>> >>>>>>nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2= ">booksrs60 >>>>> >>>>>>00-2</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01= ">brodart-c >>>>> >>>>>>or01</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03= ">brodart-c >>>>> >>>>>>or03</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04= ">brodart-c >>>>> >>>>>>or04</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01= ">brodart-f >>>>> >>>>>>rw01</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01= ">brodart-g >>>>> >>>>>>wy01</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01= ">brodart-s >>>>> >>>>>>wt01</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03= ">brodart-s >>>>> >>>>>>wt03</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04= ">brodart-s >>>>> >>>>>>wt04</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05= ">brodart-s >>>>> >>>>>>wt05</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06= ">brodart-s >>>>> >>>>>>wt06</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07= ">brodart-s >>>>> >>>>>>wt07</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0= 201">brodar >>>>> >>>>>>t-vlan0201</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0= 301">brodar >>>>> >>>>>>t-vlan0301</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0= 302">brodar >>>>> >>>>>>t-vlan0302</a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></n= obr> & >>>>> >>>>>>nbsp;<nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></n= obr> & >>>>> >>>>>>nbsp;<nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dexcedrin">exced= rin</a></no >>>>> >>>>>>br> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dgatekeeper">gat= ekeeper</a> >>>>> >>>>>></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dinternet">inter= net</a></no >>>>> >>>>>>br> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ditwebapps">itwe= bapps</a></ >>>>> >>>>>>nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mai= lserver</a> >>>>> >>>>>></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">ma= ilserver2</ >>>>> >>>>>>a></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></n= obr> & >>>>> >>>>>>nbsp;<nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></n= obr> & >>>>> >>>>>>nbsp;<nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">se= rial0-0</a> >>>>> >>>>>></nobr> <nobr><a >>>>>> >>>>> >>>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">se= rial0-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...] >>>>>>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 alread= y: >>>>>> >>>>>>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= ) 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 complet= e >>>>>> >>>>>>your >>>>>> >>>>>> >>>>>>>request. >>>>>>> >>>>>>>Error message: >>>>>>>malformed header from script. Bad header=3Dperfgraph.cgi: perfgrap= h.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 abou= t? >>>>>>> >>>>>>> >>>>>>> >>>>>>>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/ - |
From: Yves M. <yme...@li...> - 2004-11-07 20:45:59
|
It seems that we'll have to edit the source... Could you put the following line everywhere you can in cgi/perfgraph.c ? fprintf(stderr, "%f:%d\n", __FILE__,__LINE); This should appear in the errorlog of the web server. With this, you can find where the problem occurs. Tell us where, and if y= ou understand why, your diagnostic. Maybe Ben or somebody else have other ideas ? Yves > I have tried just about everything. > > Even the devel branch (104) isn't working. > > The last version I can get to work is 100.7. > > This is the error the page gives me... > ___________________________ > > Server error! > The server encountered an internal error and was unable to complete you= r 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 > > Error 500 > excedrin.domain.com > Sun 07 Nov 2004 02:09:08 PM EST > Apache/2.0.40 (Red Hat Linux) > ___________________________ > > This is the error that's in my http_error_log > > [Sun Nov 07 14:03:38 2004] [error] [client 10.1.1.228] malformed header= from script. Bad > header=3Dperfgraph.cgi: perfgraph.cgi, referer: http://excedrin.domain.= com/nagios/ > [Sun Nov 07 14:03:41 2004] [error] [client 10.1.1.228] malformed header= from script. Bad > header=3Dperfgraph.cgi: perfgraph.cgi, referer: > http://excedrin.domain.com/nagios/side.html > [Sun Nov 07 14:03:47 2004] [error] [client 10.1.1.228] malformed header= from script. Bad > header=3Dperfgraph.cgi: perfgraph.cgi, referer: > http://excedrin.domain.com/nagios/side.html > [Sun Nov 07 14:09:08 2004] [error] [client 10.1.1.228] malformed header= from script. Bad > header=3Dperfgraph.cgi: perfgraph.cgi, referer: > http://excedrin.domain.com/nagios/cgi-bin/perfgraph.cgi > > I have no errors in my configure output (I resolved the GD errors). If = I make and > install 100.7 it works fine, but I really would rather have the newest = version for > various reasons. > > Any help would be greatly appreciated. > > Joe Marr > -----Original Message----- > From: per...@li... > [mailto:per...@li...] On Behalf Of Marr,= Joe > Sent: Friday, November 05, 2004 2:56 PM > To: Yves Mettier; Bertinelli Massimo > Cc: per...@li... > Subject: RE: R: R: [Perfparse-users] Help..... > > I resolved the gdlib issues, recompile 103 and it still wont run. > > Joe Marr > -----Original Message----- > From: per...@li... > [mailto:per...@li...] On Behalf Of Yves = Mettier > Sent: Thursday, November 04, 2004 6:47 PM > To: Bertinelli Massimo > Cc: per...@li... > Subject: Re: R: R: [Perfparse-users] Help..... > > >> Yves, >> thanks for your reply. >> Do you think that the version of gd 1.8.4-11 is good or must change >> immediatly? > > If you can, you will probably go faster to change now and recompile per= fparse without > hacking it. > If you cannot change now, you can run that : > configure <your options here> CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D= "-L/path/to/gd/lib > -lgd" > make > > if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include > LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? > > I hope this helps. > > Yves > >> Massimo >> >> -----Messaggio originale----- >> Da: Yves Mettier [mailto:yme...@li...] >> Inviato: gioved=EC 4 novembre 2004 11.50 >> A: per...@li... >> Oggetto: Re: R: [Perfparse-users] Help..... >> >> >>> Ben, >>> do you remember of me? >>> :) >>> I have one question about this problem: >>> when I lunch ./configure with the standard parameters I receive a war= ning >>> about gdlib-config dir , possibile that this is the problem? >> >> yes, it can be. >> Run "gdlib-config --cflags --libs" >> >> Does it answer something unexpected (including "gdlib-config : not fou= nd") ? >> Don't hesitate to run ./configure --with-gdlib_config_dir=3D/path/to/g= d/bin >> >>> I think no....but I'm very tired because i don't understand where is = the >>> problem. >>> Also for me the version 0.100.7 work fine other version don't work >>> (0.101.1 - 0.103.1). >> >> yes, this can be an explanation : the configure script changed to use >> gdlib_config :) >> >> Yves >> >>> I hope in your great support. >>> Reguards >>> Massimo Bertinelli >>> >>> -----Messaggio originale----- >>> Da: Ben Clewett [mailto:BCl...@pe...] >>> Inviato: gioved=EC 4 novembre 2004 9.04 >>> A: Marr, Joe >>> Cc: per...@li... >>> Oggetto: 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.cf= g, >>> this was not reflected in your browser which was showing you the cach= ed >>> copy of the 'Bad script header'. By replacing the file, you change t= he >>> timestamp of the file, which is enough to flush the cache. You may w= ant >>> 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..... >>>> >>>> >>>> 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 correc= tly >>>> 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 dat= a. >>>>> >>>>>[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> Unassign= ed >>>>><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">archp= rint</a></ >>>> >>>>>nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2"= >booksrs60 >>>> >>>>>00-2</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01"= >brodart-c >>>> >>>>>or01</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03"= >brodart-c >>>> >>>>>or03</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04"= >brodart-c >>>> >>>>>or04</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01"= >brodart-f >>>> >>>>>rw01</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01"= >brodart-g >>>> >>>>>wy01</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01"= >brodart-s >>>> >>>>>wt01</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03"= >brodart-s >>>> >>>>>wt03</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04"= >brodart-s >>>> >>>>>wt04</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05"= >brodart-s >>>> >>>>>wt05</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06"= >brodart-s >>>> >>>>>wt06</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07"= >brodart-s >>>> >>>>>wt07</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan02= 01">brodar >>>> >>>>>t-vlan0201</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan03= 01">brodar >>>> >>>>>t-vlan0301</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan03= 02">brodar >>>> >>>>>t-vlan0302</a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></no= br> & >>>> >>>>>nbsp;<nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></no= br> & >>>> >>>>>nbsp;<nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dexcedrin">excedr= in</a></no >>>> >>>>>br> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dgatekeeper">gate= keeper</a> >>>> >>>>></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dinternet">intern= et</a></no >>>> >>>>>br> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ditwebapps">itweb= apps</a></ >>>> >>>>>nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mail= server</a> >>>> >>>>></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mai= lserver2</ >>>> >>>>>a></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></no= br> & >>>> >>>>>nbsp;<nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></no= br> & >>>> >>>>>nbsp;<nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">ser= ial0-0</a> >>>> >>>>></nobr> <nobr><a >>>>> >>>> >>>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">ser= ial0-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...] >>>>>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)= or >>>>> >>>>>any >>>>> >>>>> >>>>>>link other then http://server.domain.com/nagios/cgi-bin/perfgraph.c= gi >>>>> >>>>>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 >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> 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 >>> >>> >>> ------------------------------------------------------- >>> 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 >>> >>> >> >> >> -- >> - 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=3Dclick >> _______________________________________________ >> Perfparse-users mailing list >> Per...@li... >> https://lists.sourceforge.net/lists/listinfo/perfparse-users >> >> > > > -- > - 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 > > > ------------------------------------------------------- > 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 > > --=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/ - |
From: Marr, J. <jm...@br...> - 2004-11-07 19:13:42
|
I have tried just about everything. Even the devel branch (104) isn't working. The last version I can get to work is 100.7. This is the error the page gives me... ___________________________ 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=20 Error 500 excedrin.domain.com=20 Sun 07 Nov 2004 02:09:08 PM EST=20 Apache/2.0.40 (Red Hat Linux) ___________________________ This is the error that's in my http_error_log [Sun Nov 07 14:03:38 2004] [error] [client 10.1.1.228] malformed header = from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: = http://excedrin.domain.com/nagios/ [Sun Nov 07 14:03:41 2004] [error] [client 10.1.1.228] malformed header = from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: = http://excedrin.domain.com/nagios/side.html [Sun Nov 07 14:03:47 2004] [error] [client 10.1.1.228] malformed header = from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: = http://excedrin.domain.com/nagios/side.html [Sun Nov 07 14:09:08 2004] [error] [client 10.1.1.228] malformed header = from script. Bad header=3Dperfgraph.cgi: perfgraph.cgi, referer: = http://excedrin.domain.com/nagios/cgi-bin/perfgraph.cgi I have no errors in my configure output (I resolved the GD errors). If I = make and install 100.7 it works fine, but I really would rather have the = newest version for various reasons. Any help would be greatly appreciated. Joe Marr -----Original Message----- From: per...@li... = [mailto:per...@li...] On Behalf Of Marr, = Joe Sent: Friday, November 05, 2004 2:56 PM To: Yves Mettier; Bertinelli Massimo Cc: per...@li... Subject: RE: R: R: [Perfparse-users] Help..... I resolved the gdlib issues, recompile 103 and it still wont run. Joe Marr -----Original Message----- From: per...@li... = [mailto:per...@li...] On Behalf Of Yves = Mettier Sent: Thursday, November 04, 2004 6:47 PM To: Bertinelli Massimo Cc: per...@li... Subject: Re: R: R: [Perfparse-users] Help..... > Yves, > thanks for your reply. > Do you think that the version of gd 1.8.4-11 is good or must change > immediatly? If you can, you will probably go faster to change now and recompile = perfparse without hacking it. If you cannot change now, you can run that : configure <your options here> CFLAGS=3D-I/path/to/gd/include = LDFLAGS=3D"-L/path/to/gd/lib -lgd" make if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? I hope this helps. Yves > Massimo > > -----Messaggio originale----- > Da: Yves Mettier [mailto:yme...@li...] > Inviato: gioved=EC 4 novembre 2004 11.50 > A: per...@li... > Oggetto: Re: R: [Perfparse-users] Help..... > > >> Ben, >> do you remember of me? >> :) >> I have one question about this problem: >> when I lunch ./configure with the standard parameters I receive a = warning >> about gdlib-config dir , possibile that this is the problem? > > yes, it can be. > Run "gdlib-config --cflags --libs" > > Does it answer something unexpected (including "gdlib-config : not = found") ? > Don't hesitate to run ./configure = --with-gdlib_config_dir=3D/path/to/gd/bin > >> I think no....but I'm very tired because i don't understand where is = the >> problem. >> Also for me the version 0.100.7 work fine other version don't work >> (0.101.1 - 0.103.1). > > yes, this can be an explanation : the configure script changed to use > gdlib_config :) > > Yves > >> I hope in your great support. >> Reguards >> Massimo Bertinelli >> >> -----Messaggio originale----- >> Da: Ben Clewett [mailto:BCl...@pe...] >> Inviato: gioved=EC 4 novembre 2004 9.04 >> A: Marr, Joe >> Cc: per...@li... >> Oggetto: 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 = 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..... >>> >>> >>> 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 = 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=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">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...] >>>>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) = 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 >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------- >> 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 >> >> > > > -- > - 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=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/ - ------------------------------------------------------- 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 ------------------------------------------------------- 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: Julien T. <jul...@ly...> - 2004-11-07 15:43:37
|
i'm trying to compile perfparse on ob 3.6/i386 (and make a port also) but compiles stop here: Making all in perfparse source='log_reader.c' object='perfparse_log2db-log_reader.o' libtool=no depfile='.deps/perfparse_log2db-log_ reader.Po' tmpdepfile='.deps/perfparse_log2db-log_reader.TPo' depmode=gcc /bin/sh ../depcomp cc -DHAVE_CONF IG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I../libpp_common -I../libpp_mysql '-DSYSCONFDIR="/etc"' '-D USE_STORAGE_MODULE_MYSQL' -I/usr/local/include/mysql -pipe -O2 -Wall -c -o perfparse_log2db-log_reader.o ` test -f 'log_reader.c' || echo './'`log_reader.c log_reader.c: In function `log_reader': log_reader.c:520: syntax error before `len' log_reader.c:521: `len' undeclared (first use in this function) log_reader.c:521: (Each undeclared identifier is reported only once log_reader.c:521: for each function it appears in.) log_reader.c:533: warning: implicit declaration of function `g_string_hash' *** Error code 1 guint is defined in glib.h and replacing by 'unsigned int' doesn't change the pb commenting l. 519 makes the error disappear. a small search didn't locate where the problem lies Regards Julien note: some warnings too log_parser.h:54: warning: `__nan_union' defined but not used source='perfparse-common.c' object='perfparse_log2db-perfparse-common.o' libtool=no depfile='.deps/perfparse_log2db-perfparse-common.Po' tmpdepfile='.deps/perfparse_log2db-perfparse-common.TPo' depmode=gcc /bin/sh ../depcomp cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I../libpp_common -I../libpp_mysql '-DSYSCONFDIR="/etc"' '-DUSE_STORAGE_MODULE_MYSQL' -I/usr/local/include/mysql -pipe -O2 -Wall -c -o perfparse_log2db-perfparse-common.o `test -f 'perfparse-common.c' || echo './'`perfparse-common.c In file included from storage.h:31, from perfparse-common.c:40: log_parser.h:52: warning: `__nan_bytes' redefined log_parser.h:49: warning: this is the location of the previous definition log_parser.h:54: warning: `__nan_union' defined but not used |
From: Marr, J. <jm...@br...> - 2004-11-05 19:56:21
|
I resolved the gdlib issues, recompile 103 and it still wont run. Joe Marr -----Original Message----- From: per...@li... = [mailto:per...@li...] On Behalf Of Yves = Mettier Sent: Thursday, November 04, 2004 6:47 PM To: Bertinelli Massimo Cc: per...@li... Subject: Re: R: R: [Perfparse-users] Help..... > Yves, > thanks for your reply. > Do you think that the version of gd 1.8.4-11 is good or must change > immediatly? If you can, you will probably go faster to change now and recompile = perfparse without hacking it. If you cannot change now, you can run that : configure <your options here> CFLAGS=3D-I/path/to/gd/include = LDFLAGS=3D"-L/path/to/gd/lib -lgd" make if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? I hope this helps. Yves > Massimo > > -----Messaggio originale----- > Da: Yves Mettier [mailto:yme...@li...] > Inviato: gioved=EC 4 novembre 2004 11.50 > A: per...@li... > Oggetto: Re: R: [Perfparse-users] Help..... > > >> Ben, >> do you remember of me? >> :) >> I have one question about this problem: >> when I lunch ./configure with the standard parameters I receive a = warning >> about gdlib-config dir , possibile that this is the problem? > > yes, it can be. > Run "gdlib-config --cflags --libs" > > Does it answer something unexpected (including "gdlib-config : not = found") ? > Don't hesitate to run ./configure = --with-gdlib_config_dir=3D/path/to/gd/bin > >> I think no....but I'm very tired because i don't understand where is = the >> problem. >> Also for me the version 0.100.7 work fine other version don't work >> (0.101.1 - 0.103.1). > > yes, this can be an explanation : the configure script changed to use > gdlib_config :) > > Yves > >> I hope in your great support. >> Reguards >> Massimo Bertinelli >> >> -----Messaggio originale----- >> Da: Ben Clewett [mailto:BCl...@pe...] >> Inviato: gioved=EC 4 novembre 2004 9.04 >> A: Marr, Joe >> Cc: per...@li... >> Oggetto: 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 = 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..... >>> >>> >>> 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 = 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=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">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...] >>>>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) = 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 >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------- >> 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 >> >> > > > -- > - 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=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/ - ------------------------------------------------------- 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-05 19:54:25
|
Ben,=20 =20 Thanks for the pointer regarding the bad plugin. =20 I replace the plugin with the latest CVS one... here is what I get. =20 This shows up in my perfparse log: =20 1099682376 dc9 CPULOAD CPU Load 1% (10 min average) OK 10 min avg Load=3D1%;80;60;0;100 =20 When I run the command: =20 ./check_nt -H dc9.nexus.brodart.internal -v CPULOAD -l 10,80.95,60,80,95,1440,80,95 =20 CPU Load 0% (10 min average) | '10 min avg Load'=3D0%;80;60;0;100 =20 I see the delimiter, so why isn't it showing up in my binary data table? =20 Thanks, =20 Joe Marr ________________________________ From: per...@li... [mailto:per...@li...] On Behalf Of Marr, Joe Sent: Thursday, November 04, 2004 11:40 AM To: per...@li... Subject: [Perfparse-users] check_nt =20 I'm not sure whats causeing this issue. But I can see the performance data from check_nt: =20 1099543975 itwebapps CPULOAD CPU Load 0% (10 min average) OK 10 min avg Load=3D0%;80;60;0;100 =20 But I don't see the binary data in the perfdata_service_bin table.=20 =20 I'm using 0.100.7 (I couldn't tell if this version support check_nt performance data). =20 Joe Marr, CCNP CCDP Senior Systems Administrator Brodart, Co. Cell: 570.971.7600 Pager: 570.370.3095 Office: 570.326.2461 ext. 6130 =20 |
From: Bertinelli M. <Ber...@an...> - 2004-11-05 17:14:10
|
Yves, this is my situation now: i have removed all old gd program... gd-1.8.4.11 gd-devel ..same version gd-progrs ... same version I have installed the new version: gd 2.0.33 (only this without devel) = in my usr/lib and usr/include When I start ./configure I haven't warning message about gdlib-config = (ok) Make is good without error Make install......is good without error.... But SAME=A0PROBLEM... :-( Main Page is ok All link in main page with http 500 error I can't tested your help about make and ./configure ,because when I = have received the e-mail I have changed the version of Gd......Sorry. Reguards Massimo Can I help you with this configuration? =20 -----Messaggio originale----- Da: Marr, Joe [mailto:jm...@br...]=20 Inviato: venerd=EC 5 novembre 2004 18.01 A: Yves Mettier; Bertinelli Massimo Cc: per...@li... Oggetto: RE: R: R: [Perfparse-users] Help..... Also, for grins and giggles, I downloaded every version between 1.100.7 = and 1.103.7. The last only one the compiles and runs is 1.100.7. Hope that helps. Joe Marr -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Yves Mettier Sent: Thursday, November 04, 2004 6:47 PM To: Bertinelli Massimo Cc: per...@li... Subject: Re: R: R: [Perfparse-users] Help..... > Yves, > thanks for your reply. > Do you think that the version of gd 1.8.4-11 is good or must change > immediatly? If you can, you will probably go faster to change now and recompile perfparse without hacking it. If you cannot change now, you can run that : configure <your options here> CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D"-L/path/to/gd/lib -lgd" make if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? I hope this helps. Yves > Massimo > > -----Messaggio originale----- > Da: Yves Mettier [mailto:yme...@li...] > Inviato: gioved=EC 4 novembre 2004 11.50 > A: per...@li... > Oggetto: Re: R: [Perfparse-users] Help..... > > >> Ben, >> do you remember of me? >> :) >> I have one question about this problem: >> when I lunch ./configure with the standard parameters I receive a = warning >> about gdlib-config dir , possibile that this is the problem? > > yes, it can be. > Run "gdlib-config --cflags --libs" > > Does it answer something unexpected (including "gdlib-config : not = found") ? > Don't hesitate to run ./configure = --with-gdlib_config_dir=3D/path/to/gd/bin > >> I think no....but I'm very tired because i don't understand where is = the >> problem. >> Also for me the version 0.100.7 work fine other version don't work >> (0.101.1 - 0.103.1). > > yes, this can be an explanation : the configure script changed to use > gdlib_config :) > > Yves > >> I hope in your great support. >> Reguards >> Massimo Bertinelli >> >> -----Messaggio originale----- >> Da: Ben Clewett [mailto:BCl...@pe...] >> Inviato: gioved=EC 4 novembre 2004 9.04 >> A: Marr, Joe >> Cc: per...@li... >> Oggetto: 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 = 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..... >>> >>> >>> 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 = 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=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">archprint= </a></ >>> >>>>nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2">boo= ksrs60 >>> >>>>00-2</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01">bro= dart-c >>> >>>>or01</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03">bro= dart-c >>> >>>>or03</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04">bro= dart-c >>> >>>>or04</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01">bro= dart-f >>> >>>>rw01</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01">bro= dart-g >>> >>>>wy01</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01">bro= dart-s >>> >>>>wt01</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03">bro= dart-s >>> >>>>wt03</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">bro= dart-s >>> >>>>wt04</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">bro= dart-s >>> >>>>wt05</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">bro= dart-s >>> >>>>wt06</a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">bro= dart-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;& >>> >>>>nbsp;<nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></nobr>&= nbsp;& >>> >>>>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">gatekeep= er</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">mailserv= er</a> >>> >>>></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mailser= ver2</ >>> >>>>a></nobr> <nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nobr>&= nbsp;& >>> >>>>nbsp;<nobr><a >>>> >>> >>> = href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nobr>&= nbsp;& >>> >>>>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...] >>>>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)= 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 >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------- >> 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 >> >> > > > -- > - 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=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/ - ------------------------------------------------------- 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-05 17:01:25
|
Also, for grins and giggles, I downloaded every version between 1.100.7 = and 1.103.7. The last only one the compiles and runs is 1.100.7. Hope that helps. Joe Marr -----Original Message----- From: per...@li... = [mailto:per...@li...] On Behalf Of Yves = Mettier Sent: Thursday, November 04, 2004 6:47 PM To: Bertinelli Massimo Cc: per...@li... Subject: Re: R: R: [Perfparse-users] Help..... > Yves, > thanks for your reply. > Do you think that the version of gd 1.8.4-11 is good or must change > immediatly? If you can, you will probably go faster to change now and recompile = perfparse without hacking it. If you cannot change now, you can run that : configure <your options here> CFLAGS=3D-I/path/to/gd/include = LDFLAGS=3D"-L/path/to/gd/lib -lgd" make if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? I hope this helps. Yves > Massimo > > -----Messaggio originale----- > Da: Yves Mettier [mailto:yme...@li...] > Inviato: gioved=EC 4 novembre 2004 11.50 > A: per...@li... > Oggetto: Re: R: [Perfparse-users] Help..... > > >> Ben, >> do you remember of me? >> :) >> I have one question about this problem: >> when I lunch ./configure with the standard parameters I receive a = warning >> about gdlib-config dir , possibile that this is the problem? > > yes, it can be. > Run "gdlib-config --cflags --libs" > > Does it answer something unexpected (including "gdlib-config : not = found") ? > Don't hesitate to run ./configure = --with-gdlib_config_dir=3D/path/to/gd/bin > >> I think no....but I'm very tired because i don't understand where is = the >> problem. >> Also for me the version 0.100.7 work fine other version don't work >> (0.101.1 - 0.103.1). > > yes, this can be an explanation : the configure script changed to use > gdlib_config :) > > Yves > >> I hope in your great support. >> Reguards >> Massimo Bertinelli >> >> -----Messaggio originale----- >> Da: Ben Clewett [mailto:BCl...@pe...] >> Inviato: gioved=EC 4 novembre 2004 9.04 >> A: Marr, Joe >> Cc: per...@li... >> Oggetto: 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 = 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..... >>> >>> >>> 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 = 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=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">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...] >>>>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) = 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 >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------- >> 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 >> >> > > > -- > - 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=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/ - ------------------------------------------------------- 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: Yves M. <yme...@li...> - 2004-11-05 15:41:09
|
This is a small bug, and there is another one similar in another file. I have a patch from Ben for that, please try it. It is already fixed in development versions. Yves > Hi, > > i am trying to install PP 0.103.1 on debian 2.4.27 with nagios 1.2 and > mysql 4.1. > > I get this compilation error: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I../libpp_common -I../libpp_mysql > '-DSYSCONFDIR=3D"/pit/perfparse/etc"' '-DUSE_STORAGE_MODULE_MYSQL' > -I/pit/mysql/include/mysql -g -O2 -Wall -c -o > perfparse_log2db-log_reader.o `test -f 'log_reader.c' || echo > './'`log_reader.c > log_reader.c: In function `log_reader': > log_reader.c:520: parse error before `len' > log_reader.c:521: `len' undeclared (first use in this function) > > It must surely be a configure problem but, > i get no mistake there: > > checking for pkg-config... /usr/bin/pkg-config > checking for GLIB - version >=3D 2.0.0... yes (version 2.0.1) > Using glib2 > Using Mysql > checking for mysql_config... /pit/mysql/bin//mysql_config > checking for gdlib-config... /pit/gd/bin//gdlib-config > > Configuration options: > > Prefix: /pit/perfparse > Perfparse: Selected > DB tools: Selected > CGI: Selected > > HTTP path for images: /nagios/images > Installation path for images: ${datadir}/perfparse/images > Installation path for CGIs: ${exec_prefix}/sbin > Using glib2.0: 2.0.1 > Database support: mysql > > Storage modules > print: Disabled > stdout: Selected > mysql: Selected > file-output: Selected > socket-output: Selected > > I will try to use the version 0.100.7 then. > > Regards > > -- > Ricardo David Martins > _______________________________________________________________________= ______________________________ > > AVISO > > Esta mensagem (incluindo quaisquer anexos) pode conter informa=E7=E3o > confidencial para uso exclusivo do destinat=E1rio. Se n=E3o for o > destinat=E1rio pretendido, n=E3o dever=E1 usar, distribuir ou copiar es= te > e-mail. Se recebeu esta mensagem por engano, por favor informe o > emissor e elimine-a imediatamente. Obrigado. > > DISCLAIMER > > This e-mail (including any attachments) may contain confidential > information for exclusive use of its recipient. If you are not the > intended recipient you must not use, distribute or copy this e-mail. > If you have received this e-mail in error please notify the sender and > delete it immediately. Thank You. > > _______________________________________________________________________= ______________________________ > > > ------------------------------------------------------- > 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/ - |
From: Ricardo D. M. <ric...@gm...> - 2004-11-05 15:24:12
|
No problem while using 0.100.7 Hum... is it a GD relation problem? Regards --=20 Ricardo David Martins ___________________________________________________________________________= __________________________ AVISO Esta mensagem (incluindo quaisquer anexos) pode conter informa=E7=E3o confidencial para uso exclusivo do destinat=E1rio. Se n=E3o for o destinat=E1rio pretendido, n=E3o dever=E1 usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado. DISCLAIMER This e-mail (including any attachments) may contain confidential information for exclusive use of its recipient. If you are not the intended recipient you must not use, distribute or copy this e-mail. If you have received this e-mail in error please notify the sender and delete it immediately. Thank You. ___________________________________________________________________________= __________________________ |
From: Ricardo D. M. <ric...@gm...> - 2004-11-05 15:10:38
|
Hi, i am trying to install PP 0.103.1 on debian 2.4.27 with nagios 1.2 and mysql 4.1. I get this compilation error: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../libpp_common -I../libpp_mysql=20 '-DSYSCONFDIR=3D"/pit/perfparse/etc"' '-DUSE_STORAGE_MODULE_MYSQL'=20 -I/pit/mysql/include/mysql -g -O2 -Wall -c -o perfparse_log2db-log_reader.o `test -f 'log_reader.c' || echo './'`log_reader.c log_reader.c: In function `log_reader': log_reader.c:520: parse error before `len' log_reader.c:521: `len' undeclared (first use in this function) It must surely be a configure problem but, i get no mistake there: checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >=3D 2.0.0... yes (version 2.0.1) Using glib2 Using Mysql checking for mysql_config... /pit/mysql/bin//mysql_config checking for gdlib-config... /pit/gd/bin//gdlib-config Configuration options: Prefix: /pit/perfparse Perfparse: Selected DB tools: Selected CGI: Selected HTTP path for images: /nagios/images Installation path for images: ${datadir}/perfparse/images Installation path for CGIs: ${exec_prefix}/sbin Using glib2.0: 2.0.1 Database support: mysql Storage modules print: Disabled stdout: Selected mysql: Selected file-output: Selected socket-output: Selected I will try to use the version 0.100.7 then. Regards --=20 Ricardo David Martins ___________________________________________________________________________= __________________________ AVISO Esta mensagem (incluindo quaisquer anexos) pode conter informa=E7=E3o confidencial para uso exclusivo do destinat=E1rio. Se n=E3o for o destinat=E1rio pretendido, n=E3o dever=E1 usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado. DISCLAIMER This e-mail (including any attachments) may contain confidential information for exclusive use of its recipient. If you are not the intended recipient you must not use, distribute or copy this e-mail. If you have received this e-mail in error please notify the sender and delete it immediately. Thank You. ___________________________________________________________________________= __________________________ |
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/ - |
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 |
From: Yves M. <yme...@li...> - 2004-11-04 23:46:59
|
> Yves, > thanks for your reply. > Do you think that the version of gd 1.8.4-11 is good or must change > immediatly? If you can, you will probably go faster to change now and recompile perfp= arse without hacking it. If you cannot change now, you can run that : configure <your options here> CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D"-= L/path/to/gd/lib -lgd" make if make does not work, maybe make CFLAGS=3D-I/path/to/gd/include LDFLAGS=3D"-L/path/to/gd/lib -lgd" will work better ? I hope this helps. Yves > Massimo > > -----Messaggio originale----- > Da: Yves Mettier [mailto:yme...@li...] > Inviato: gioved=EC 4 novembre 2004 11.50 > A: per...@li... > Oggetto: Re: R: [Perfparse-users] Help..... > > >> Ben, >> do you remember of me? >> :) >> I have one question about this problem: >> when I lunch ./configure with the standard parameters I receive a warn= ing >> about gdlib-config dir , possibile that this is the problem? > > yes, it can be. > Run "gdlib-config --cflags --libs" > > Does it answer something unexpected (including "gdlib-config : not foun= d") ? > Don't hesitate to run ./configure --with-gdlib_config_dir=3D/path/to/gd= /bin > >> I think no....but I'm very tired because i don't understand where is t= he >> problem. >> Also for me the version 0.100.7 work fine other version don't work >> (0.101.1 - 0.103.1). > > yes, this can be an explanation : the configure script changed to use > gdlib_config :) > > Yves > >> I hope in your great support. >> Reguards >> Massimo Bertinelli >> >> -----Messaggio originale----- >> Da: Ben Clewett [mailto:BCl...@pe...] >> Inviato: gioved=EC 4 novembre 2004 9.04 >> A: Marr, Joe >> Cc: per...@li... >> Oggetto: 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 cache= d >> copy of the 'Bad script header'. By replacing the file, you change th= e >> timestamp of the file, which is enough to flush the cache. You may wa= nt >> 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..... >>> >>> >>> 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 correct= ly >>> 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 n= ot >>> 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> Unassigne= d >>>><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">archpr= int</a></ >>> >>>>nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2">= booksrs60 >>> >>>>00-2</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01">= brodart-c >>> >>>>or01</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03">= brodart-c >>> >>>>or03</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04">= brodart-c >>> >>>>or04</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01">= brodart-f >>> >>>>rw01</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01">= brodart-g >>> >>>>wy01</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01">= brodart-s >>> >>>>wt01</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03">= brodart-s >>> >>>>wt03</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">= brodart-s >>> >>>>wt04</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">= brodart-s >>> >>>>wt05</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">= brodart-s >>> >>>>wt06</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">= brodart-s >>> >>>>wt07</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan020= 1">brodar >>> >>>>t-vlan0201</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan030= 1">brodar >>> >>>>t-vlan0301</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan030= 2">brodar >>> >>>>t-vlan0302</a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></nob= r> & >>> >>>>nbsp;<nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></nob= r> & >>> >>>>nbsp;<nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dexcedrin">excedri= n</a></no >>> >>>>br> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dgatekeeper">gatek= eeper</a> >>> >>>></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dinternet">interne= t</a></no >>> >>>>br> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ditwebapps">itweba= pps</a></ >>> >>>>nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mails= erver</a> >>> >>>></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mail= server2</ >>> >>>>a></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nob= r> & >>> >>>>nbsp;<nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nob= r> & >>> >>>>nbsp;<nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">seri= al0-0</a> >>> >>>></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">seri= al0-1</a> >>> >>>></nobr> <nobr><a >>>> >>> >>> href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dsmtp">smtp</a></n= obr>  >>> >>>>; </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) = or >>>> >>>>any >>>> >>>> >>>>>link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cg= i >>>> >>>>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 >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------- >> 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 >> >> > > > -- > - 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=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/ - |
From: Marr, J. <jm...@br...> - 2004-11-04 16:39:57
|
I'm not sure whats causeing this issue. But I can see the performance data from check_nt: =20 1099543975 itwebapps CPULOAD CPU Load 0% (10 min average) OK 10 min avg Load=3D0%;80;60;0;100 =20 But I don't see the binary data in the perfdata_service_bin table.=20 =20 I'm using 0.100.7 (I couldn't tell if this version support check_nt performance data). =20 Joe Marr, CCNP CCDP Senior Systems Administrator Brodart, Co. Cell: 570.971.7600 Pager: 570.370.3095 Office: 570.326.2461 ext. 6130 =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 |