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
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any).
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any).
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any).
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
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any).
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
If you pull SVN down there is a 4.4.0 branch. It is about 200+ commits ahead of trunk - why I don't know. The 4.3.0 branch is also WAY ahead of trunk - again why I don't know.
I would like to see the 4.4.0 branch be merged into trunk and removed and development be on "trunk" and not the branches, where it looks like most of the last commits have been.
On Tue, 2010-03-09 at 12:10 -0500, Jerald Sheets wrote:
On Tue, Mar 9, 2010 at 11:57 AM, <wiskbroom at hotmail.com> wrote:
Xymon 4.3.0-beta2 (Wow, where did you get 4.4.0.1?)Seriously! Is that the current source level?
Jerald M. Sheets jr.
OK, now back to topic ;-) I *AM* able to see the following:
http://my-xymon-server/pdf/graphrrd/SOME-CLIENT/load.SOME-CLIENT-year.png
The graph above
But this PNG never gets injected into the PDF for some reason, i.e. when I select either report, or nalaysis for SOME-CLIENT.
Thanks again,
.vp
If you pull SVN down there is a 4.4.0 branch. It is about 200+ commits ahead of trunk - why I don't know. The 4.3.0 branch is also WAY ahead of trunk - again why I don't know.
I would like to see the 4.4.0 branch be merged into trunk and removed and development be on "trunk" and not the branches, where it looks like most of the last commits have been.
On Tue, 2010-03-09 at 12:10 -0500, Jerald Sheets wrote:
On Tue, Mar 9, 2010 at 11:57 AM, wrote:
Xymon 4.3.0-beta2 (Wow, where did you get 4.4.0.1?)
Seriously! Is that the current source level?
Jerald M. Sheets jr.
Hello guys,
I'm sorry to answer now but I'm very busy those days. I will try to answer some of your questions about reports but... tomorrow :) The only things I can told you is I never tested the PDF reports on Xymon above 4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
By the way, I'm just wondering why The Shire is not accessible anymore ?
Cheers.
ThomaS
wiskbroom at hotmail.com a écrit :
OK, now back to topic ;-) I *AM* able to see the following:
http://my-xymon-server/pdf/graphrrd/SOME-CLIENT/load.SOME-CLIENT-year.png
The graph above
But this PNG never gets injected into the PDF for some reason, i.e. when I select either report, or nalaysis for SOME-CLIENT.
Thanks again,
.vp
If you pull SVN down there is a 4.4.0 branch. It is about 200+ commits ahead of trunk - why I don't know. The 4.3.0 branch is also WAY ahead of trunk - again why I don't know.
I would like to see the 4.4.0 branch be merged into trunk and removed and development be on "trunk" and not the branches, where it looks like most of the last commits have been.
On Tue, 2010-03-09 at 12:10 -0500, Jerald Sheets wrote:
On Tue, Mar 9, 2010 at 11:57 AM, wrote:
Xymon 4.3.0-beta2 (Wow, where did you get 4.4.0.1?)
Seriously! Is that the current source level?
Jerald M. Sheets jr.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hi, Thomas !
By the way, I'm just wondering why The Shire is not accessible anymore ?
Please try http://xymonton.trantor.org/doku.php. it's work for me ..
cheers, martin
On Tue, 9 Mar 2010, Thomas Séglard wrote:
Hello guys,
I'm sorry to answer now but I'm very busy those days. I will try to answer some of your questions about reports but... tomorrow :) The only things I can told you is I never tested the PDF reports on Xymon above 4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
By the way, I'm just wondering why The Shire is not accessible anymore ?
Cheers.
ThomaS
wiskbroom at hotmail.com a écrit :
OK, now back to topic ;-) I *AM* able to see the following:
http://my-xymon-server/pdf/graphrrd/SOME-CLIENT/load.SOME-CLIENT-year.png
The graph above
But this PNG never gets injected into the PDF for some reason, i.e. when I select either report, or nalaysis for SOME-CLIENT.
Thanks again,
.vp
If you pull SVN down there is a 4.4.0 branch. It is about 200+ commits ahead of trunk - why I don't know. The 4.3.0 branch is also WAY ahead of trunk - again why I don't know.
I would like to see the 4.4.0 branch be merged into trunk and removed and development be on "trunk" and not the branches, where it looks like most of the last commits have been.
On Tue, 2010-03-09 at 12:10 -0500, Jerald Sheets wrote:
On Tue, Mar 9, 2010 at 11:57 AM, wrote:
Xymon 4.3.0-beta2 (Wow, where did you get 4.4.0.1?)
Seriously! Is that the current source level?
Jerald M. Sheets jr.
To unsubscribe from the hobbitlist, 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
Yep.
http://xymonton.trantor.org/doku.php
Works from Atlanta, GA
Jerald M. Sheets jr.
On Tue, Mar 9, 2010 at 2:19 PM, Martin Flemming <martin.flemming at desy.de>wrote:
Hi, Thomas !
By the way, I'm just wondering why The Shire is not accessible anymore ?
Please try http://xymonton.trantor.org/doku.php. it's work for me ..
cheers, martin
On Tue, 9 Mar 2010, Thomas Séglard wrote:
Hello guys,
I'm sorry to answer now but I'm very busy those days. I will try to answer some of your questions about reports but... tomorrow :) The only things I can told you is I never tested the PDF reports on Xymon above 4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
By the way, I'm just wondering why The Shire is not accessible anymore ?
Cheers.
ThomaS
wiskbroom at hotmail.com a écrit :
OK, now back to topic ;-) I *AM* able to see the following:
http://my-xymon-server/pdf/graphrrd/SOME-CLIENT/load.SOME-CLIENT-year.png
The graph above But this PNG never gets injected into the PDF for some reason, i.e. when I select either report, or nalaysis for SOME-CLIENT.
Thanks again,
.vp
If you pull SVN down there is a 4.4.0 branch. It is about 200+ commits ahead of trunk - why I don't know. The 4.3.0 branch is also WAY ahead of trunk - again why I don't know.
I would like to see the 4.4.0 branch be merged into trunk and removed and development be on "trunk" and not the branches, where it looks like most of the last commits have been. On Tue, 2010-03-09 at 12:10 -0500, Jerald Sheets wrote:
On Tue, Mar 9, 2010 at 11:57 AM, wrote: > > > > > Xymon 4.3.0-beta2 (Wow, where did you get 4.4.0.1?) > > > > > > > Seriously! Is that the current source level? > > > > > > > > > > > --- Jerald M. Sheets jr.
To unsubscribe from the hobbitlist, 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hi Martin :)
Thanks, it's working. For your information, I'm not able to find this link neither on the Xymon Website nor in the documentation.
Maybe redirects could be made from http://theshire.sourceforge.net/ and http://www.trantor.org/theshire/ to this new location ?
Cheers,
Thomas Séglard
Martin Flemming a écrit :
Hi, Thomas !
By the way, I'm just wondering why The Shire is not accessible anymore ?
Please try http://xymonton.trantor.org/doku.php. it's work for me ..
cheers, martin
On Tue, 9 Mar 2010, Thomas Séglard wrote:
Hello guys,
I'm sorry to answer now but I'm very busy those days. I will try to answer some of your questions about reports but... tomorrow :) The only things I can told you is I never tested the PDF reports on Xymon above 4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
By the way, I'm just wondering why The Shire is not accessible anymore ?
Cheers.
ThomaS
wiskbroom at hotmail.com a écrit :
OK, now back to topic ;-) I *AM* able to see the following:
http://my-xymon-server/pdf/graphrrd/SOME-CLIENT/load.SOME-CLIENT-year.png
The graph above But this PNG never gets injected into the PDF for some reason, i.e. when I select either report, or nalaysis for SOME-CLIENT.
Thanks again,
.vp
If you pull SVN down there is a 4.4.0 branch. It is about 200+ commits ahead of trunk - why I don't know. The 4.3.0 branch is also WAY ahead of trunk - again why I don't know.
I would like to see the 4.4.0 branch be merged into trunk and removed and development be on "trunk" and not the branches, where it looks like most of the last commits have been. On Tue, 2010-03-09 at 12:10 -0500, Jerald Sheets wrote:
On Tue, Mar 9, 2010 at 11:57 AM, wrote: > > > > > Xymon 4.3.0-beta2 (Wow, where did you get 4.4.0.1?) > > > > > > > Seriously! Is that the current source level? > > > > > > > > > > > --- Jerald M. Sheets jr.
To unsubscribe from the hobbitlist, 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I'll look into the link on SF. It should be redirecting you to xymonton. The Shire was changed to Xymonton over a year ago and has even changed hosting locations 2x :-).
=G=
-----Original Message----- From: Thomas Séglard [mailto:tsg at bluekiwi-software.com] Sent: Wednesday, March 10, 2010 4:54 AM To: hobbit at hswn.dk Subject: Re: [hobbit] PDF Reports
Hi Martin :)
Thanks, it's working. For your information, I'm not able to find this link neither on the Xymon Website nor in the documentation.
Maybe redirects could be made from http://theshire.sourceforge.net/ and http://www.trantor.org/theshire/ to this new location ?
Cheers,
Thomas Séglard
Martin Flemming a écrit :
Hi, Thomas !
By the way, I'm just wondering why The Shire is not accessible anymore ?
Please try http://xymonton.trantor.org/doku.php. it's work for me ..
cheers, martin
On Tue, 9 Mar 2010, Thomas Séglard wrote:
Hello guys,
I'm sorry to answer now but I'm very busy those days. I will try to answer some of your questions about reports but... tomorrow :) The only things I can told you is I never tested the PDF reports on Xymon above 4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
By the way, I'm just wondering why The Shire is not accessible anymore ?
Cheers.
ThomaS
wiskbroom at hotmail.com a écrit :
OK, now back to topic ;-) I *AM* able to see the following:
http://my-xymon-server/pdf/graphrrd/SOME-CLIENT/load.SOME-CLIENT-year.png
The graph above But this PNG never gets injected into the PDF for some reason, i.e. when I select either report, or nalaysis for SOME-CLIENT.
Thanks again,
.vp
If you pull SVN down there is a 4.4.0 branch. It is about 200+ commits ahead of trunk - why I don't know. The 4.3.0 branch is also WAY ahead of trunk - again why I don't know.
I would like to see the 4.4.0 branch be merged into trunk and removed and development be on "trunk" and not the branches, where it looks like most of the last commits have been. On Tue, 2010-03-09 at 12:10 -0500, Jerald Sheets wrote:
On Tue, Mar 9, 2010 at 11:57 AM, wrote: > > > > > Xymon 4.3.0-beta2 (Wow, where did you get 4.4.0.1?) > > > > > > > Seriously! Is that the current source level? > > > > > > > > > > > --- Jerald M. Sheets jr.
To unsubscribe from the hobbitlist, 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
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
Yum info php-gd
Also may help... Php -i|grep -i gd
On 3/9/10, wiskbroom at hotmail.com <wiskbroom at hotmail.com> wrote:
4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
How do you enable GD? Is there a way to test?
Thanks,
.vp To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
“Success is not final, failure is not fatal: it is the courage to continue that counts.” --- Winston Churchill
Yum info php-gd
Also may help... Php -i|grep -i gd
It's installed :-(
Thanks.
On 3/9/10, wiskbroom at hotmail.com wrote:
4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
How do you enable GD? Is there a way to test?
Thanks,
.vp
Hi Vadim,
I got two questions for you :)
could you please, try an older version of TCPDF ? I suspect an incompatibility between your RRDTOOL version and TCPDF.
could you give me the output for this command : shell$ file pdf/graphrrd/CLIENT/load.CLIENT-year.png
For your information, here is mine : graphrrd/www01/cputil.www01-2day.png: PNG image data, 697 x 255, 8-bit/color RGBA, non-interlaced
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 :
$HOBBITBIN/bin/bbgen --reportopts=$TODAY:$NOWTIME:0:all --csv=$RRDGRAPHS/$dir/${GRAPH}-day.csv
Sincerly,
Thomas Séglard
wiskbroom at hotmail.com a écrit :
Yum info php-gd
Also may help... Php -i|grep -i gd
It's installed :-(
Thanks.
On 3/9/10, wiskbroom at hotmail.com wrote:
4.2.3. My PHP version is 5.2 and you need to enable the GD module for PHP.
How do you enable GD? Is there a way to test?
Thanks,
.vp
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
- 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/
- 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..)
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 :
- 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/
- 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
DING DING DING!!
That is one of the things I nneded to do to get my graphs to work - remove the "-woalpha" from the imagePNG statements.
Regards, Chris
-----Original Message----- From: Thomas Séglard [mailto:tsg at bluekiwi-software.com] Sent: 10 March 2010 18:18 To: hobbit at hswn.dk Subject: Re: [hobbit] PDF Reports
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 :
- 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/
- 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
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any).
OK, I feel like a WINNER!!!! (The bells helped a great deal ;-)
My graphs are starting to show up, although I needed to remove "-woalpha.png", otherwise it was searching for something.png.png.
On another note, does anyone know how I can convert my companies logo (in JPEG format) to PNG? For some reason TCPDF does not show my company logo, but does work for the sample_logo.png.
Thank you!
.vadim
DING DING DING!!
That is one of the things I nneded to do to get my graphs to work - remove the "-woalpha" from the imagePNG statements.
Regards, Chris
-----Original Message----- From: Thomas Séglard [mailto:tsg at bluekiwi-software.com] Sent: 10 March 2010 18:18 To: hobbit at hswn.dk Subject: Re: [hobbit] PDF Reports
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 :
- 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/
- 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..)
On another note, does anyone know how I can convert my companies logo (in JPEG format) to PNG? For some reason TCPDF does not show my company logo, but does work for the sample_logo.png.
Nevermind, used 'convert my_company_logo.jpg my_company_logo.png' and that worked like a charm.
These reports look awesome.
Thanks all!
.v
Hello;
My bb-hosts file, and the includes that it uses, contain hosts which are sometimes required to be in UPPER-case characters. I've noticed that whenever I try to pull up a PDF for these, the graphs do not display.
I was able to confirm that the PNG files are being created with the proper UPPER case names, but the reports are showing them in lowercase. (I.e., "Monitoring report client-1" instead of "Monitoring report CLIENT-1")
Thank you,
.vp
On another note, does anyone know how I can convert my companies logo (in JPEG format) to PNG? For some reason TCPDF does not show my company logo, but does work for the sample_logo.png.
Nevermind, used 'convert my_company_logo.jpg my_company_logo.png' and that worked like a charm.
These reports look awesome.
Thanks all!
.v
Hi Vadim,
first, I'm really happy that you got your graphs :) If I remember well, I've done this modification to remove the alpha-transparency layer which prevented graphs to show within reports !!! I will do a rollback and remove this part of the code. I will try to release a new version as soon as I can but I want to add additional pie charts on the second page before.
Then for your case problem, that's normal. When you enter the name of a server into the field "Hostname" a conversion to lower-case is done. I made this decision to avoid errors when you type server names. You can change this behaviour by editing the file $PDFHOME/include/config.inc.php. Go to line 73 and comment : $srvname = strtolower(trim($nmsrv)) ; . Next, modify the line just before this one to replace the variable name : $nmsrv = $_POST['nom'] ; will become $srvname = $_POST['nom'] ;
Please tell me if this is working for you and I will add a checkbox or configuration item somewhere :)
It's a long time since I haven't worked on the reports. It's good to see that people are using them :) Thus, please feel free to give me some feedbacks or new ideas.
Regards,
Thomas Séglard
wiskbroom at hotmail.com a écrit :
Hello;
My bb-hosts file, and the includes that it uses, contain hosts which are sometimes required to be in UPPER-case characters. I've noticed that whenever I try to pull up a PDF for these, the graphs do not display.
I was able to confirm that the PNG files are being created with the proper UPPER case names, but the reports are showing them in lowercase. (I.e., "Monitoring report client-1" instead of "Monitoring report CLIENT-1")
Thank you,
.vp
On another note, does anyone know how I can convert my companies logo (in JPEG format) to PNG? For some reason TCPDF does not show my company logo, but does work for the sample_logo.png.
Nevermind, used 'convert my_company_logo.jpg my_company_logo.png' and that worked like a charm.
These reports look awesome.
Thanks all!
.v
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Thomas;
first, I'm really happy that you got your graphs :) If I remember well, I've done this modification to remove the alpha-transparency layer which prevented graphs to show within reports !!! I will do a rollback and remove this part of the code. I will try to release a new version as soon as I can but I want to add additional pie charts on the second page
before.
Wow! I look forward to that! Same for the checkbox feature.
Then for your case problem, that's normal. When you enter the name of a server into the field "Hostname" a conversion to lower-case is done. I made this decision to avoid errors when you type server names. You can change this behaviour by editing the file
$PDFHOME/include/config.inc.php. Go to line 73 and comment : $srvname =
strtolower(trim($nmsrv)) ; . Next, modify the line just before this one
to replace the variable name : $nmsrv = $_POST['nom'] ; will become
$srvname = $_POST['nom'] ;
Your changes worked, thank you very much.
Please tell me if this is working for you and I will add a
checkbox or
configuration item somewhere :)
My vote would be in the configuration, since a site would either need it, or not, thus eliminating an additional checkbox to be selected. One checkbox that I can imagine being quite useful is the choice of either line graph, or pie chart.
It's a long time since I haven't worked on the reports. It's good to see that people are using them :) Thus, please feel free to give me some feedbacks or new ideas.
Well, since you're asking ;-)
Some questions:
1. What is the purpose for the first pie-chart titled "24x7 Availability" with the word "Tests" in an outlined box?
2. The only graphs I am displaying are "Daily graph for CPU load" and "Daily graph for memory utilization", "Daily graph for network traffic" and "Daily graph for CPU utilization" both show up as "No graph". Do they require some additional work; I've not gone so far as to read about custom graphs given my prior issues.
This is an awesome addition to Xymon, one that gives it a more professional look and feel, thank you.
.vadim
[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 :
- 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/
- 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
Downloaded it from SourceForge SVN Branches long time ago!
From: Jerald Sheets [mailto:questy at gmail.com]
Sent: 09 March 2010 17:11
To: hobbit at hswn.dk
Subject: Re: [hobbit] PDF Reports
On Tue, Mar 9, 2010 at 11:57 AM, <wiskbroom at hotmail.com> wrote:
Xymon
4.3.0-beta2 (Wow, where did you get 4.4.0.1?)
Seriously! Is that the current source level?
---
Jerald M. Sheets jr.
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any).
participants (9)
-
cade.robinson@gmail.com
-
Chris.Morris@rwe.com
-
ejacobs@thomaspublishing.com
-
Galen.Johnson@sas.com
-
josh@imaginenetworksllc.com
-
martin.flemming@desy.de
-
questy@gmail.com
-
tsg@bluekiwi-software.com
-
wiskbroom@hotmail.com