[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] PDF Reports
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] PDF Reports
- From: <wiskbroom (at) hotmail.com>
- Date: Wed, 10 Mar 2010 13:49:59 -0500
- Importance: Normal
- References: <27C9014CD8C9414492143DDF26B3F108014967 (at) vmail01tpco.tpco.loc>,<0362AE866EBF9B4B964BD6C9652E8D91036EFBFD (at) kfmex22p.ud1.utility>,<27C9014CD8C9414492143DDF26B3F108014977 (at) vmail01tpco.tpco.loc>,<0362AE866EBF9B4B964BD6C9652E8D91036F00EB (at) kfmex22p.ud1.utility>,<BAY133-W2233D200E5A7536AD1639EB4340 (at) phx.gbl>,<79d511081003090910t4989daes445bb4b3be2dc826 (at) mail.gmail.com>,<1268155272.14407.14.camel (at) crobinso.nisc.lan>,<BAY133-W1150BFBF1F7AE7914BF6B9B4340 (at) phx.gbl>,<4B969B7D.6030107 (at) bluekiwi-software.com>,<BAY133-W1780024D50560C3B9B1368B4340 (at) phx.gbl>,<961092e11003091130l7283874dwa8fc3b46826c298f (at) mail.gmail.com> <BAY133-W142C5FC85F4297C7D1C625B4340 (at) phx.gbl>,<4B977238.5070307 (at) bluekiwi-software.com> <BAY133-W298662CE1F3E0CCC0785E8B4330 (at) phx.gbl>,<4B97E247.70602 (at) bluekiwi-software.com>
[root (at) xymon-1 pdf]# grep "\$graphload-woalpha.png" report.skel.php
imagePNG($img, "$graphload-woalpha.png");
$pdf->Image("$graphload-woalpha.png",10,40,190,60,$extn,'', true, 72) ;
unlink("$graphload-woalpha.png");
Thus, I only found one line containing:
imagePNG($img, "$graphload-woalpha.png");
Changing this one line to:
imagePNG($img, "$graphload");
Resulted in the same missing graphs.
.vp
> I think something is broken - again - in the transparency conversion. I
> quote Johan Grotherus (thanks to him) who said something very useful
> about this. Could you try his workaround, please ?
>
> "--start of quote
>
> I have checked the scripts and found the problem to be in the
> analysis.skel.php and report.skel.php files.
>
> This is the original code from report.skel.php
>
> //
> // Place the cpu load graph and text here
> //
> $pdf->SetXY(25,30);
> $pdf->Image($imageload,10,26,0,13) ;
> $pdf->Titre($titreload);
> if (file_exists($graphload)) {
> $img = ImageCreateFromPNG($graphload) ;
> imageAlphaBlending($img, false);
> imageSaveAlpha($img, false);
> imagePNG($img, "$graphload-woalpha.png");
>
> $pdf->Image("$graphload-woalpha.png",10,40,190,60,$extn,'', true, 72) ;
> unlink("$graphload-woalpha.png");
> } else {
> $pdf->Cell(10,20,$nograph,0,1) ;
> $pdf->Ln(80);
> }
>
> I simply used the sed command to change the imagePNG($img,
> "$graphload-woalpha.png"); to imagePNG($img, "$graphload"); to get it to
> work. I did that for every section.
>
> --end of quote
> "
>
> Cheers,
>
> Thomas Séglard
>
> wiskbroom (at) hotmail.com a écrit :
>>
>>> 1) could you please, try an older version of TCPDF ? I suspect an
>>> incompatibility between your RRDTOOL version and TCPDF.
>>>
>>
>> I haven't done this yet, but I will try after sending you the data below, but I am only able to see the two most recent at http://sourceforge.net/projects/tcpdf/files/
>>
>>
>>> 2) could you give me the output for this command :
>>> shell$ file pdf/graphrrd/CLIENT/load.CLIENT-year.png
>>>
>>
>> [root (at) xymon-1 graphrrd]# file ./CLIENT/load.CLIENT-2week.png
>> ./CLIENT/load.CLIENT-2week.png: PNG image data, 697 x 193, 8-bit/color RGBA, non-interlaced
>>
>>
>>> For your information, here is mine :
>>> graphrrd/www01/cputil.www01-2day.png: PNG image data, 697 x 255,
>>> 8-bit/color RGBA, non-interlaced
>>>
>>
>> Looks quite similiar.
>>
>>
>>> Then, green circle you saw on second page, is generated with the values
>>> on the left. These values are calculated by the "master.sh" script. You
>>> should see in your "graphrrd" directory csv files. You can open csv to
>>> look at the values. If you have none, maybe something has changed in
>>> Xymon 4.3.x ? I'm using the following command to generate csv :
>>>
>>
>>
>> Not sure about this, BUT if I point my browser at:
>>
>> http://xymon-1.example.com/pdf/graphrrd/CLIENT/load.CLIENT-2week.png
>>
>> It displays a beautiful graph generated using RRD. I am not sure why it is not displaying properly within the tcpdf report, perhaps a misconfiguration somewhere? (I've searched hard..)
>>
>>
>>
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe (at) hswn.dk
>>
>>
>>
>>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>