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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

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

Post by phalek »

I just uploaded the new files to

http://redmine.nmid-plugins.de/projects ... dcreatepdf

you will need these two files:
v05_html_tree_087e.tgz
v03_graph_087e.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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Ok previous errors gone, but when trying to create or runa report I get this error


Notice: Undefined variable: s_reportCoverLogo in G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php on line 114

Notice: Undefined variable: s_reportCoverPage in G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php on line 116

Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php:114) in G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php on line 157

PHP Notice: Undefined variable: s_reportCoverLogo in G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php on line 114 PHP Notice: Undefined variable: s_reportCoverPage in G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php on line 116 PHP Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php:114) in G:\cacti\plugins\nmidCreatePDF\nmidCreatePDF_addReport.php on line 157
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

please try the v0.71 from:

http://redmine.nmid-plugins.de/projects ... dcreatepdf

Simply extract the file content over the existing plugin. It should fix the mentioned error and also addresses some other minor issues
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 »

Some of the errors have been corrected...,but I will let you rest...I think I have abused enough your skills for today....

Thank you very very much and have a great weekend. I will reconvene on monday with a better detail post of the errors still poping up.

Cheers man!!! :wink:


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

Post by phalek »

Most of them are actually non critical but just warnings due to me not defining some vars ( actually they are defined in the Corporate version which has the same code base ). I guess your php.ini has set the warning stuff to E_ALL, hence that's why all these errors make the app not work ...

Just sum up these errors and I can work on thos. Help is appreciated :-)
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 »

I'm working on a new kind of report type called "Multi Report". Multi reports can have several types of content:
* Graphs
* DSStats Graphs
* Smokeping Graphs ( nmidSmokePing )
* Simple text
* Titles
* New Chapters

The attached screenshot and PDF show these features.

This kind of report will be available with the Pro and Corp edition.
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
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

Hi there,

I've installed the free version of nmidCreatePdf plugin in my cacti 0.8.7e

Since then, monitoring completely stop to work (we use Spine, large site performance booster, ...)

And we have segmentation faults in httpd error_log and most of the time cacti HTML pages are simply... empty and white.

We also have replaced the cacti HTML files (graph, tree, and also the other one) and of course installed the ixed loader as said by their php installer.

We really need help to understand what is happening and solve this issue.

Thanks for your reply.

hardware:
8 cores x86_64

Linux RHEL 5.3
PHP 5.2.1
httpd 2.2.3-22
cacti 0.8.7e
PIA 2.5
Large Site Performane Booster 2.4
IXED 5.2 for linux
a lot of other cacti modules
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

The segmentation faults are caused by the ixeds loader.

Please download and install the php script avaialble at the bottom of:

http://sourceguardian.com/ixeds/

and follow the very same steps as put out of that script.

It should report the following if all goes well:

Code: Select all

How to install SourceGuardian loaders

SourceGuardian loaders are already installed. 
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
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

OK. I had to disable createPDF plugin and also the ixed folder to have those seg faults gone away, in order to restart all from the begining.

So, here below is what the ixed script says with nothing installed:

How to install SourceGuardian loaders
Server-wide setup

1. Download ixed4.lin.x86-32.tar.gz (for Intel x86 32-bit processor) or ixed4.lin.x86-64.tar.gz (for Intel x86 64-bit processor)
2. Extract it to folder /usr/lib64/php/modules
3. Edit PHP.INI file (located at /etc/php.ini) and add following line:
extension=ixed.5.2.lin

Run-time loading

1. Download ixed4.lin.x86-32.tar.gz (for Intel x86 32-bit processor) or ixed4.lin.x86-64.tar.gz (for Intel x86 64-bit processor)
2. Extract it to folder /monitor/var/www/cacti/ixed/

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

Then I will download again the ixed4.lin.x86_64.tar.gz and put it where it says. (run-time loading: /monitor/var/www/cacti/ixed/)

once done, ixed php script says the same thing as above, and I have segmentation faults again...
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

don't use the runtime load, put it into php.ini.

I had the same problem on 32bit CentOs 5.2 with php 5.1.6. The runtime load did not work properly.
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
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

OK. I did it.

At least now, the output of the ixed loader php script is nice:

How to install SourceGuardian loaders
SourceGuardian loaders are already installed.

I will now see if it is working...
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

OK.

What you said helped me a lot ;-)

I don't have seg faults for now, and the plugin is enabled.

I have another problem:

When I select only one graph, and push on the PDF icon to export it, my acrobat reader open and I see only one page in the PDF document, containing text like "Report for host ....", "Load average", ...

But there is absolutely no graph.

And an alert box from acrobat says: "Could not find the XObject named 'I2'"

When I select more than 1 graph to export as PDF, and acrobat open, it cannot load the document and says that it is not a supported file type. And the PDF file is only 37 bytes

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

Post by phalek »

open the pdf with a text editior it will provide a text messages with the error :-)
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
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

Sorry did a mistake: the PDF document when I select more than one graph is 0 bytes.

Now, when I redo the test for only one graph to export, I have nothing (compared to the first time I did it), but the PDF file is 45 bytes and here below is the content:

<b>FPDF error:</b> Error while reading stream
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok, first of all, check that you followed the steps from the quick install ( use the CactiEZ section, should be about the same for RedHat 5 )

http://www.network-outsourcing.de/corpo ... ation.html

Then, try the mpdf engine ( install is described in the quick install )

Nevertheless, make sure permissions are correct ( e.g. by using tar -xzvpf when extracting the plugin ). It's described in the guide, too.

Also: make sure the logo is existing or empty and that the files in the images dir are writeable by the webserver. The same goes for the tmp dir within the plugin dir
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