No graphs on reports with nmidCreatePDF

Support for the Plugin Architecture

Moderators: Moderators, Developers

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

#16 Post by catcha8 » Wed Jul 21, 2010 8:39 am

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
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#17 Post by phalek » Wed Jul 21, 2010 8:43 am

:-) 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 : 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: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#18 Post by phalek » Wed Jul 21, 2010 2:51 pm

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 : 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]

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

#19 Post by catcha8 » Thu Jul 22, 2010 4:25 am

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
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#20 Post by phalek » Thu Jul 22, 2010 5:26 am

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 : 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]

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

#21 Post by catcha8 » Thu Jul 22, 2010 5:33 am

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
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#22 Post by phalek » Thu Jul 22, 2010 5:54 am

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 : 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: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#23 Post by phalek » Thu Jul 22, 2010 6:20 am

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 : 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]

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

#24 Post by catcha8 » Thu Jul 22, 2010 7:03 am

No, it's off on both php.ini files.

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

#25 Post by phalek » Thu Jul 22, 2010 7:19 am

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 : 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]

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

#26 Post by catcha8 » Thu Jul 22, 2010 7:37 am

:) 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
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#27 Post by phalek » Thu Jul 22, 2010 7:46 am

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 : 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: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#28 Post by phalek » Thu Jul 22, 2010 2:30 pm

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 : 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]

torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

#29 Post by torstentfk » Fri Jul 23, 2010 2:13 am

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
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#30 Post by phalek » Fri Jul 23, 2010 2:19 am

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 : 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