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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by killshoot »

I've started with that ;-)

My user has all accesses to all realms. Any other idea?

Regards
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by killshoot »

Ok my bad...

Uninstalling the plugin and installing it again solve the problem.

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

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by phalek »

Can you provide some screenshots of this issue ?

UPDATE: oh, you were faster with the reply ;-)

Thanks for the info. I'll probably add some addition checks. The PHP settings is also removed from v2.00 as Cacti itself already has this information.
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
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

I don't understand how works this plugin.
I have downloaded the latest alpha release with the license valid until December 31th, but i don't know how to use it.
There is any userguide ?
I don't understand how to create a new report, a new template, a new dsstat report...
Can someone help me ??? :o
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

I am using the alpha test version with cacti 0.88a and PA 3.1
I clic on Add Report and nothing happens.
I can only see a new entry into the menu NMID - Manage report.
Now i can ONLY choose to delete the report (see the screenshot), it's a bug ?
I want to test this plugin and buy it, but it's impossible to do if no minimum support is available.
Attachments
Cereus_report.png
Cereus_report.png (46.38 KiB) Viewed 2930 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by phalek »

Hi nandozzi,

Basically, you create a report and then go to the normal cacti graphs ( tree mode ). You should notice a checkbox next to the graphs and a toolbar to the top.

You can then add graphs to the report using that way.

Weathermap, Availability or smokeping graphs need to go into a "Mutli Report" type of report.

The actual generation then can be started using the Cereus tab. Now this tab actually does have 2 functionalities. If you have set the "View Archived Reports" realm for your user, you will only see pre-generated reports. If you remove that permission, you can then use that tab to generate a report.

I'm planning on doing a series of Screencast showing the functionality of the plugin.

At the moment, you can use the attached USer Guide, which is for an older version, but most of the functionality stayed the same.
Attachments
CereusReporting_UserGuide.pdf
(2.11 MiB) Downloaded 238 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
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

Hi phalek,
thanks for your precious support, but i have followed your instructions with the same bad result.
I have created a report, then i have gone to the graph, checked the box near this one and clic to Add report after choosing the name of my report.
After that i have clicked on Cereus Tab and i have read read this message:

"No archived reports for your userid exist"

I have choosed to clic on Consolle and then gone into NMID - Manage Reports to find my report, but i can see only a list of
"Local Graphs for this report" and i can only delete them, but no more actions (see attached screenshot).
Can you help me ?
Thanks in advance
Attachments
Report.png
Report.png (33.68 KiB) Viewed 2897 times
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

Update:

I have seen that there's an option called "Manage Report Schedule"
I have added a new schedule and selected my previous report called Test.
I have tried to use the function "Run Now", but no report was created into the Archive.
How i can debug this problem ? I am using the poller to run the schedule.
You think it's better to use cron for this planning ???
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by phalek »

Some questions.

- Did you add yourself to an archive group ?
- Did you try removing the "View Archived Reports" permission from your user and hit the cereus tab again?

Yes you can use cron, but you have to schedule the following command (change paths accordingly):

Code: Select all

*/1 * * * * cacti /usr/bin/php /var/www/cacti/plugins/nmidCreatePDF/cron_pdf_scheduler.php > /dev/null 2>&1
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
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

Hi phalek,
i have removed my account from the Archive report view and now i can run the report (graph report - pdf file).
I receive this error when i run it (i have already verified that the ReportEngine is FPDF).

Fatal error: Call to undefined method PDF::WriteHTML() in /var/www/html/plugins/CereusReporting/createPDFReport_defined.php on line 309

It seems that i haven't the module PDF::WriteHTML into my perl...
An other question... There is a way to put 4 graph into 4 columns ???
Can you help me ?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by phalek »

Oh,

You will need the MPDF Report Engine to be implemented for this to work. Download the tgz file from here and extract the content to the ReportEngines directory.

Then enable it in the NMID settings.

4x4 is not supported. But could be implemented.
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
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

I have downloaded the MPDF Engine and enabled it into NMID Settings, but i receive this error when i try to Generate the Report:

Error - mPDF requires mb_string functions. Ensure that PHP is compiled with php_mbstring.dll enabled.

I have discovered that i need to install the php-mbstring rpm and now works :)
Thanks for your support :wink:

UPDATE

Now i have a problem with the Schedule...
I have created a Schedule and selected the previous working template. I clic on Run Now, but nothing happens... :o
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

Anyone can help me ? :cry:
It seems there's no error in my configuration. All php modules are loaded, the poller doesn't send any error related to NMID or CereusReporting, i have all tables into MySQL, but if i go into the plugin tmp directory i found no file.
An other strange issue is that even if i choose a template, i have always the same output pdf :(
As you can see from the next screenshot i have the "last run" schedule set at 01-01-1970 !!!
It seems that when i press on Run Now nothing happens.
Please help me, i need to configure this option until next Monday or i have to choose an other system to get report. :-?
Attachments
Schedule.png
Schedule.png (4.95 KiB) Viewed 2840 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by phalek »

Odd, I usually get a notification if someone post to this, but I only received on for your last post.

Nevertheless,

Check your Console -> Settings -> NMID tab for the setting "Scheduler being used" if it is set to "Poller" than the scheduler runs after each polling cycle.

If it is set to "Cron" you will have to manually add a cron job for it, e.g.:

Code: Select all

*/1 * * * * cacti /usr/bin/php /var/www/html/cacti/plugins/nmidCreatePDF/cron_pdf_scheduler.php > /dev/null 2>&1
The cron job is the recommended way of doing it.

Edit: for the template, set the following:

Code: Select all

Report Template: templates/nmidCreatePDF.pdf
Report Cover Logo: images/transparent_logo.png
Please do not change the naming in any way. Although the nmidCreatePDF.pdf file actually does not exists, that is the way of configuring it.

If you like to have a special company template, just mail me a word-document of the company design (may also include a logo) and I can create a template for you that works.

This is only working with the mPDF engine.
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
nandozzi
Posts: 34
Joined: Sun Nov 25, 2012 6:44 am

Re: CereusReporting - PDF/HTML Cacti Reports - v2.00 ALPHA o

Post by nandozzi »

Hi thanks for your reply.
I have tried both poller and cron as a scheduler, but with the same result :(
I have used php as user for the cron command and not cacti cause i have a CactiEZ installation.
There's a way to debug this function and understand where i have done a mistake ???
Regarding to the template i have solved my problem following your instruction, but how i can create a template by myself ???
I need only to convert a word document to pdf format or i need also a css file ?
If i want to add more space between graphs, how i can do it ??? I have tried to change the top, down, left and right margin but i have always the graphs too close.
Thanks for all your precious support
Attachments
Bad Graph Report.png
Bad Graph Report.png (42.69 KiB) Viewed 2836 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest