CereusReporting - PDF Reports - 4.00 for Cacti 1.x out soon!

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Unable to create pdf, pls help

Post by megatron »

1. Error occurred when i click the pdf icon. Refer to attachment.
2. Phalek, could you provide a proper documentation for nmidcreatepdf plugin?

Appreciate a lot. Thanks.
Attachments
error.JPG
error.JPG (58.88 KiB) Viewed 3525 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi megatron,

1. Did you set the logo correctly and made sure it exists ?
You can download that PDF file and open it in notepad/wordpad to actually see a text error message telling you more

2. sure I can and I will once I have a bit more time. I hope I can do some during this weekend.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Post by megatron »

1. Yes, I did set the path logo correctly. I changed the file type as you mention to check what is the error. Attached is the error.

2. Thanks and hope you could attach the documentation sooner.
Attachments
error.JPG
error.JPG (189.15 KiB) Viewed 3471 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ok, that might be a permission error, can you make sure that your wbserver has the right to write into that tmp dir ?

it should be in the plugin dir:

Code: Select all

/path/to/cacti/plugins/nmidCreatePDF/tmp
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Post by megatron »

I did change the permission as I follow the steps in the forum but it still gives the same error.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ok, can you check if there is that 1.png file in that tmp ? and if yes delete it.

If not, then check if the gaphs can be created. In your case the following command should create a PNG file and prints it to stdout:

Code: Select all

php create_image.php  1 0 1245646661 1245650258 800 100
you can "redirect" the output into a file which you can then view:

Code: Select all

php create_image.php  1 0 1245646661 1245650258 800 100 > file.png
If there is no error, then can you check your http error logs for anything unusal ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Post by megatron »

I did as you told. I'm not sure if it is the correct output. Can you verified it?
Attached is the image.
Attachments
pic.JPG
pic.JPG (317.29 KiB) Viewed 3449 times
pic1.JPG
pic1.JPG (221.49 KiB) Viewed 3449 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

the tmp dir is not the one in /tmp

It is directly under the plugin directory:

/path/to/cacti/plugins/nmidCreatePDF/tmp

i my case (Centos 5.x) it is

Code: Select all

/var/www/html/cacti/plugins/nmidCreatePDF/tmp
and the permissions should be:

Code: Select all

drwxr-xr-x 2 apache apache    4096 Jun 16 14:16 tmp
The image creation works, otherwise you wouldn't see these cryptic output ( binary ), you can see the graph by using my 2nd posted statement to redirect the output into a file, transfering it to you client PC and open it with an image viewer (IE would do)
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Post by megatron »

I have checked but there are no image. I run your 2nd statement and it gaves error. Attached is the error image.

Can you verified if the permission is correct? Attached is the permission as well. Thank you.
Attachments
error.JPG
error.JPG (276.84 KiB) Viewed 3441 times
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Post by megatron »

Attached is the permission image
Attachments
permission.JPG
permission.JPG (483.28 KiB) Viewed 3438 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

this seems to be an issue with your php installation. If you want, we can have a web session to look into this issue, but i`m only available in the mornings german time.

nevertheless check your php.ini and extensions dir for duplicate entries for the gd lib
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Post by megatron »

Yes, it seems we need a web session to look into this issue. Can I know what date & time you will be available? We can dicuss through in msn messenger. Is it alright?

Appreciatea lot.. Thanks
megatron
Posts: 13
Joined: Thu Jun 18, 2009 8:55 pm

Post by megatron »

Thanks
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi Megatron, I'm available from 06:00 - 07:30 GMT +2 and around 18:00 - 23:00 GMT +2.

Send your contact details to support@nmid-plugins.de
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Update 5 has just been released.

It now contains an option to select the path of the php binary.

Please make sure you set it. Default can be "php" to use the binary from the system path

I'm working on a FAQ setting, see here for further information

Important for the Pro version:
The Update 4 Pro version will expire end of June. Update 5 will expire on 17 Jul 2009 so make sure to upgrade.

As usual grap your copy from the project page
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest