No graphs on reports with nmidCreatePDF

Support for the Plugin Architecture

Moderators: Developers, Moderators

catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

Unfortunately no.
I'm available for the next 2-3 hours or maybe tomorrow if you prefer. I'm under the same timezone than you.

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

Post by phalek »

:-) I'll check if I can find the error on my side. If there is any issue that I need to look into on your system, we can do something next week. I'm available then during the whole day.
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 »

Please download 0.85 from here: http://redmine.nmid-plugins.de/projects ... epdf/files

and check if this fixes the problem ...
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
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

I installed the new release but I receive the following apache error when trying to access "nmidCreatePDF" button :

PHP Fatal error: Call to undefined function db_fetch_cell() in /usr/share/cacti/site/plugins/nmidCreatePDF/nmidCreatePDF_GenerateReports.php on line 49
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

hm .. need to check that. Does the Graph report generation work ?
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
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

Unfortunately no.
From the tree view if I generate a graph, the file is named: \.pdf and the content is as follow: <b>FPDF error:</b> Undefined font: B

Maybe doing something wrong but don't know what. Rights are same than before, if I revert to 0.84 don't have this problem.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok, seems like there is a bug somewhere which did no show up on the test system. I removed 0.85 until it is fixed.
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 »

oh, do you have safe_mode = on in the php.ini file ?
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
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

No, it's off on both php.ini files.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Nice ... I was able to reproduce the same error only when turning safe_mode on ...

Can you check the php settings with creating a file with the following php code in it and calling it using your browser ?

Code: Select all

<?php
phpinfo();
?>
This will provide the current running config settings and also the php.ini file and it's location that is actually bein used by apache.
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
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

:) It's exactly what I was doing.

Here is my phpinfo, I just removed private informations (IP + hostname)
Last edited by catcha8 on Thu Jul 22, 2010 7:47 am, edited 1 time in total.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

hm, php 5.3 ... maybe that's where I need to look into. Centos only has 5.2. You can remove that file now, I've made a copy of it for reference.
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 »

FInally was able to reproduce the error. It's a small PHP 5.3 incompatibility which is now fixed in Build 46.

As usual download it from here: http://redmine.nmid-plugins.de/projects ... epdf/files
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
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

phalek wrote:FInally was able to reproduce the error. It's a small PHP 5.3 incompatibility which is now fixed in Build 46.

As usual download it from here: http://redmine.nmid-plugins.de/projects ... epdf/files
Hi,

I downloaded the beta version: nmidCreatePDF_v0.85_Build_46_full.tgz
Do I need the parallelGraphRetriever_linux32bit.zip from the corporate Edition, too? Or canIuse the old one from the previous version?

And:
Do I really need to uninstall and reinstall the free version? I have to create all the permissions for the users again!


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

Post by phalek »

0.85 works fine with the parallelGraphViewer from RC1. The only difference is the support for the Availability Graph.

0.85 does not need to be uninstalled. Just replace the files and you're fine.

The uninstall requirement is for v1.0 RC1, which is for testing in a non-prod environment only. the final v1.0 version will have the possibility to upgrade as usual, it's just not implemented yet.
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 0 guests