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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I can zip the whole version that it is working for me and send it to you... or you want specific files......

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

Post by phalek »

that wouldn't do me any good, as the files are encrypted and I cannot decrypt those :-) ( that's why I use the FireFly SVN service from Activestate to be able to go back to specific versions/files and have a 2x backup in place ).

Do me a favour and delete the whole nmidCreatePDF directory and replace it with the latest working version you have, then test it and tell me if everything is working again.

No need to uninstall it via PIA, that would just kill/delete all your defined reports.
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

0.82 works like a charm

Code: Select all

NMID CreatePDF Plugin 
Directory: nmidCreatePDF 
Version: 0.82 
Author: Thomas Urban 
Home Page: http://www.urban-software.de 
Status: Active 
and...

Code: Select all

NMID WebService Plugin 
Directory: nmidWebService 
Version: 0.3.9a U 
Author: Thomas Urban 
Home Page: http://www.urban-software.de 
Status: Active 
I use TortoiseSVN.....
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

Hi Phalek,

I've version 0.82 of nmidCreatePdf.

Today, I wanted to have a view of the status of my servers in the "monitor" plugin also installed in my cacti installation.

But I was surprised to have a white page after having clicked on the "monitor" tab.

Taking a look at the httpd error log file, I can see there is a conflict between a declaration in your plugin, and a declaration in the monitor plugin. Here is the log extract:

[error] [client .......] PHP Fatal error: Cannot redeclare tree_tier() (previously declared in ........./cacti/plugins/monitor/monitor.php:906) in ......./cacti/lib/tree.php on line 66, referer: http://......../cacti/graph_view.php?action=tree&tree_id=22&leaf_id=248&select_first=true

Note: tree.php has been replaced by your version of this file.

Could you please provide a fix for this issue ?

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

Post by phalek »

Hi hahnn, thanks for pointing this out. I'm going to look into this issue and am going to release an updated version at the weekend once i fixed it.
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 »

Hi Hahnn,

I had a look into this, but I did not redeclare "tree_tier()" in any of the nmidCreatePDF files. The only lines added to the tree.php file are actually lines 101 to 104:

Code: Select all

		// nmidCreatePDF plugin START
		$save["nmidCreatePDF_cover_page"] =form_input_validate($_POST["nmidCreatePDF_cover_page"], "nmidCreatePDF_cover_page", "", true, 3);
		$save["nmidCreatePDF_cover_logo"] = form_input_validate($_POST["nmidCreatePDF_cover_logo"], "nmidCreatePDF_cover_logo", "", true, 3);
		// nmidCreatePDF plugin END
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
lasylve
Posts: 22
Joined: Fri Oct 02, 2009 1:34 am

Post by lasylve »

Hi, first, thanks fort this great plugin which was really missing in cacti.

I was using the 0.5 version which was working properly but I couldn't export graphs when I had click on one (even with good replacements files).

So I'm trying to use 0.83 but I have a problem. When I generate a graph (both with fpdf or mpdf reports engines), the file is empty (see attached file 1.pdf) and when I export after I have clicked on a graph, I have an empty file too but with error msg (see attached file 2.pdf).


I'm using cacti 0.8.7e and PIA 2.6.
tmp folder has 777, cacti folder's owner is apache.

Can you help me please ?

sorry for my english :oops:
Attachments
1.pdf
(1.93 KiB) Downloaded 113 times
2.pdf
(4.4 KiB) Downloaded 121 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

seems like you did not download the "parallelGraphRetriever" addon that is needed for the graph creation. Can you download the correct one for your installation and extract the executable to the nmidCreatePDF dir ?

The file can be downloaded from here:
http://redmine.nmid-plugins.de/projects ... dcreatepdf
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
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

report without graphs

Post by zorrosam »

Guys can you help me?
my plugin generate report blank ... with the logo and the right description set ... but without graphs.

All the dependencies are correctly installed.

On my first server in production it works correctly.

In the second one it has this problem.

The two cacti instllations are indipendent ... the only differences are the architecture of the OS ... 64bit in the first one ... 32bit in the second one.
Any help is appreciate.

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

Post by phalek »

Hi zorrosam,

which plugin version 0.83 ?

Did you also download the parallelGraphRetriever addon ? there's a 32bit and 64bit version out there.

What OS are you using, Linux or Windows ?
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 »

Hi,

Please put the attached (zipped) debug.php file in the nmidCreatePDF directory and point your browser to it. It will display some output.

Please paste that here or send it to "support at nmid-plugins.de".
Attachments
debug.zip
(725 Bytes) Downloaded 68 times
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
lasylve
Posts: 22
Joined: Fri Oct 02, 2009 1:34 am

Post by lasylve »

Hello phalek,
I've downloaded the parallelgraphretriever in my cacti dir, then made it executable and then executed it. Now, I have an error msg on every pdf I export :

Code: Select all

Error opening the file tmp/xxxxxx/1.png
Could you tell me what is the exact location of this tmp folder ? I gave 777 rights for the "cacti_folder/plugins/nmidCreatePDF/tmp" folder but I still have the same error.

Edit : I also try to give 777 to the whole cacti folder => still the same, it's not an "access rights" problem
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

errors

Post by zorrosam »

phalek wrote:Hi zorrosam,

which plugin version 0.83 ?

Did you also download the parallelGraphRetriever addon ? there's a 32bit and 64bit version out there.

What OS are you using, Linux or Windows ?
hi!

the issue is on the 0.83 version.

I have another installation with the version before and i have no problems.

On the second one i obtain a pdf without graphs when i generate it on a summarization page og my host with differents graphs.

If i click on on graph i open the page that resume the differents time slots for that graphs ... like 4 hour,daily,monthly and yearly. In this case i obtain a pdf without graphs but with the same errors of the other user ... /tmp/x.png

I have changed the permissions on the tmp directory but no goos news.

bye

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

Post by phalek »

Hi lasylve and zorrosam,

Can you download the debug.php file attached in one of the earlier posts and point your browser to that file ? It gives some valuable data for debugging purposes.

Also, check the tmp dir for any directories with some numbers in the name, there should be a file called "workerfile" in there. If there is, please open it and look at the 2nd line, there's a command in there which you can execute from the nmidCreatePDF directory and that command creates the graphs needed ( for the lines starting with "graph" or "smokeping" )

These directories may not be there, as they get deleted once the PDF is created.

Also check the webserver logs for any hints/error messages.

lasylve, the tmp dir is indeed /path/to/cacti/plugins/nmidCreatePDF/tmp

I'm going to add a debug mode into 0.84 for better troubleshooting these errors ...
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
jhariti
Posts: 19
Joined: Fri Dec 04, 2009 1:10 pm
Location: Brussels; BELGIUM

Post by jhariti »

Phalek,

How can I get the Pro version of nmidCreatePDF because of the link it's not working.

Thanks
Man is born for action, not being occupied and does not exist is the same for Man.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests