[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [hobbit] PDF Reports



Sorry in advance for the long reply, I want to provide as much info as I possibly can.

My configuration:

Xymon                                         4.3.0-beta2 (Wow, where did you get 4.4.0.1?)
Apache/2.2.3
PHP 5.1.6
RRDtool 1.4.2
TCPDF 4.8.036


My issues:

1.  I can see the files under tcpdf/example, and I am able to see the templates for this project, but I am unable to see the graphs that those template PDF's are supposed to contain.

2.  When I use my company logo, which is a JPG, and I try to use it, it fails to display on the template PDF.  I am using the same path as the logo_example.png, which does work.  Here is what I have in pdf/class.report.inc.php:

$this->Image('/xymon/www/pdf/images/logo_example.png',10,8,30,15,'png','http://www.example.com');

If I use:

$this->Image('/xymon/www/pdf/images/my_real_logo.jpg',10,8,30,15,'jpg','http://www.example.com');

It doesn't display.

Here are some PHP errors that I am seeing, unfortunately I do not know what to do about these:

[Tue Mar 09 11:47:16 2010] [error] [client 192.168.1.13] PHP Notice:  Undefined variable: pctconn in /xymon/server/www/pdf/report.skel.php on line 71, referer: http://xymon-1/pdf/pdf.php

[Tue Mar 09 11:47:16 2010] [error] [client 192.168.1.13] PHP Notice:  Undefined variable: pctconn in /xymon/server/www/pdf/report.skel.php on line 73, referer: http://xymon-1/pdf/pdf.php


Do I need to install something missing on PHP, or modify my php.ini file anywhere?


Modified tcpdf/config files in the following manner, although it did not help:

tcpdf/config/tcpdf_config_alt.php
tcpdf/config/tcpdf_config.php

$_SERVER['DOCUMENT_ROOT'] = '/xymon/server/www';

Default to above was set to /var/www



> From: Chris.Morris (at) rwe.com
>
> My configuration :-
>
> Xymon 4.4.0.1
> Apache 2.2.2
> PHP 5.1.4
> RRDTOOL 1.2.26
> TCPDF 4.3.003
>
> To make sure that the basic apache configuration is correct (before
> worrying about xymon data), point a web browser at the tcpdf directory
> under your apache htdocs directory (or wherever you installed tcpdf).
>
> There you should have a sub-directory called examples which contains
> example pdf documents - if these don't display in your browser then your
> basic configuration is wrong!!
>
> Regards,
> Chris
>
> -----Original Message-----
> From: Jacobs, Eric [mailto:ejacobs (at) thomaspublishing.com]
> Sent: 08 March 2010 20:54
> To: hobbit (at) hswn.dk
> Subject: RE: [hobbit] PDF Reports
>
> Well, it's nice to know it works. I'll probably have to drop back a
> version or two on PHP and try again.
> As far as SAR graphs go, did you follow Thomas' directions or do
> something different?
>
> Eric
>
> -----Original Message-----
> From: Chris.Morris (at) rwe.com [mailto:Chris.Morris (at) rwe.com]
> Sent: Monday, March 08, 2010 5:01 AM
> To: hobbit (at) hswn.dk
> Subject: RE: [hobbit] PDF Reports
>
> Yes, I have PDF Reports working and sar graphs.
>
> It took a little collaboration with Thomas to get there.
>
> Original problem was with a PHP config paramater relating to
> short_open_tag
>
> Using SERVER_SOFTWARE="Apache/2.2.2 (Unix) PHP/5.1.4"
>
> Regards,
> Chris
>
> -----Original Message-----
> From: Jacobs, Eric [mailto:ejacobs (at) thomaspublishing.com]
> Sent: 05 March 2010 22:09
> To: hobbit (at) hswn.dk
> Subject: [hobbit] PDF Reports
>
> Has anyone tried to get the PDF Reports add-in from XYMONTON working.
> I've been trying and am not having much luck. (I'm suspecting it may
> have something to do with version of PHP I installed). I also tried
> getting the bb-sar.sh working. That works, sort-of. I get the reports
> but not any of the graphs (Thomas Seglard, in his writeup about PDF
> Reports, has instructions). Anyone have sar graphs working?
>
> Eric Jacobs
> Infrastructure and Operations
> Information Technology Group
> Phone:215-682-5354
> Email:ejacobs (at) thomaspublishing.com
>