CereusReporting problem

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

CereusReporting problem

Post by Rickylolz »

Hello everybody,

I just finished installing the CereusReporting plugin on my Cacti server.
However, I encounter a problem:

When I try to generate a PDF report I have the following error message :

FPDF error: Undefined font: B on http://cacti/plugins/nmidCreatePDF/createPDFReport.php page

I did several researchs on Google but didn't found anything...

PS : I'm using CereusReporting v1.83.42

Any idea ?

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

Re: CereusReporting problem

Post by phalek »

hi Rickylolz,

Can you download and extract the following file into the "ReportEngines" directory and try again ?

http://redmine.nmid-plugins.de/attachme ... ode_45.tgz
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
Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

Re: CereusReporting problem

Post by Rickylolz »

Hi Phalek,

Done... but it still doesn't work..
But I'm surprised that the folder named "mpdf" wasn't present in the "ReportEngines" directory before i extract your archive into, there was only a "fpdf" folder (and severals php file)

Anyway, thanks for your reply :)
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting problem

Post by phalek »

Ok, need to dig into this.
Nevertheless, you should now be able to switch to that ReportEngine from the NMID settings tab. It should solve that issue.
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
Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

Re: CereusReporting problem

Post by Rickylolz »

Indeed, i switched to mpdf but now I have a kind of "load-loop" when I try to generate a report (the page load but nothing happens, loadbar still empty or half complete)
During this load nobody can access the cacti server.. I Had to reboot it
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting problem

Post by phalek »

wow, I've never seen that happen ...

Switch back to the FPDF engine then and check your debug info page. Maybe a module is missing.

Does any error log show what happened here ?
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
Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

Re: CereusReporting problem

Post by Rickylolz »

I switched back to FPDF and now I don't have the error linked to the undefined font any more..

Here is a sample of the debug page :
Licensed Modules:
Availability module disabled
Report Scheduling module disabled
Zenoss module disabled
DSStats module disabled
MultiReports module disabled
Archiving module disabled
Templating module disabled

--------------------------------------------------------------------------------

File/Directory Settings:
tmp directory D:\Program_Files\Wamp\www\cacti\plugins\nmidCreatePDF\tmp
tmp directory exists yes
tmp directory writeable yes
tmp directory - can create dirs yes

--------------------------------------------------------------------------------

Loaded PHP Modules:
mbstring enabled
gd enabled
SourceGuardian disabled
IonCube Loader enabled
zip enabled
soap disabled

--------------------------------------------------------------------------------

Required Cacti Plugins:
settings installed

--------------------------------------------------------------------------------

Optional Cacti Plugins:
storeLastPoll missing

--------------------------------------------------------------------------------

Optional PHP Modules:
curl disabled
ChartDirector PHP API disabled

--------------------------------------------------------------------------------

Installed CereusReporting Extenstions:
File parallelGraphRetriever.exe does not exists ( D:\Program_Files\Wamp\www\cacti\plugins\nmidCreatePDF\parallelGraphRetriever.exe )
Thanks for your assistance
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting problem

Post by phalek »

Ok,

You will need to download and install the "parallelGraphRetriever.exe" extension for the reports to generate correctly.

Other than that, a quick question: Did you go to the settings tab and hit the save button at least once after the install and before that FPDF error occured ?
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
Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

Re: CereusReporting problem

Post by Rickylolz »

I put parallelgraphretriever.exe in the nmidCreatePDF directory but i have still the same problem (with both FPDF and MPDF)

Yes, I hit the save button
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting problem

Post by phalek »

Do you see any error messages ? Especially any php related ones ?
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
Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

Re: CereusReporting problem

Post by Rickylolz »

Nothing...

After furthers investigations, it only works when I go to the detailed view of a graph (the pdf generation works fine)
In the general view ("Showing all graphs"), there is a "load loop" when I try to generate a report
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting problem

Post by phalek »

Maybe this a php memory/execution time error. Can you increase the following settings in your php.ini file:

Code: Select all

max_execution_time = 60     ; Maximum execution time of each script, in seconds
memory_limit = 128M      ; Maximum amount of memory a script may consume
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
Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

Re: CereusReporting problem

Post by Rickylolz »

Done.. Just restarted apache and I've still the same problem..
Stucking to "createPDFReport.php" while trying to generate a report..

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

Re: CereusReporting problem

Post by phalek »

Odd ...

Nevertheless, can you quickly sum up what kind of system you have and how you installed Cacti on it ? I want to play around with re-creating the issue. I don't think I have a (paying) customer actually running it on Windows system, though I know some use the express version on Windows.

I bet it's probably just a minor issue ... that minor that it's easily overlooked ... ;-)
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
Rickylolz
Posts: 14
Joined: Thu Oct 18, 2012 7:02 am

Re: CereusReporting problem

Post by Rickylolz »

I am using Cacti Version 0.8.8a on a Windows Server 2003 R2.
My web service is "WAMP based"

Also, I'm using the Express edition of CereusReporting plug-in..

:roll:
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests