CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

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

Unable to create pdf, pls help

#181 Post by megatron » Thu Jun 18, 2009 9:01 pm

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 2856 times

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#182 Post by phalek » Fri Jun 19, 2009 10:54 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

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

#183 Post by megatron » Sun Jun 21, 2009 9:47 pm

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 2802 times

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#184 Post by phalek » Mon Jun 22, 2009 12:41 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

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

#185 Post by megatron » Mon Jun 22, 2009 12:47 am

I did change the permission as I follow the steps in the forum but it still gives the same error.

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#186 Post by phalek » Mon Jun 22, 2009 12:56 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

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

#187 Post by megatron » Mon Jun 22, 2009 1:24 am

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 2780 times
pic1.JPG
pic1.JPG (221.49 KiB) Viewed 2780 times

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#188 Post by phalek » Mon Jun 22, 2009 1:41 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

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

#189 Post by megatron » Mon Jun 22, 2009 1:55 am

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 2772 times

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

#190 Post by megatron » Mon Jun 22, 2009 1:56 am

Attached is the permission image
Attachments
permission.JPG
permission.JPG (483.28 KiB) Viewed 2769 times

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#191 Post by phalek » Mon Jun 22, 2009 4:39 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

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

#192 Post by megatron » Tue Jun 23, 2009 1:28 am

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

#193 Post by megatron » Tue Jun 23, 2009 1:29 am

Thanks

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#194 Post by phalek » Tue Jun 23, 2009 1:42 am

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 [email protected]
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#195 Post by phalek » Tue Jun 23, 2009 3:41 pm

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

Post Reply