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 windows version for v0.3. As usual you can get it here

Please also use the project forum to discuss feature requests and post support questions.

Also make sure to read the wiki page for some 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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

v0.3a has been release with some bug fixes and more features:
  • OS Independant. IXED loader need. See README for more info
  • Bug #19: graphs from different trees are included in the report
  • Feature #15: Add option to have graph images link back to cacti
  • Feature #24: Option to display hostname as report title when only a host is selected
Download it here

Please make sure to read the README.
Last edited by phalek on Fri Aug 28, 2009 1:57 am, edited 1 time in total.
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 »

Release v0.3a Update 2 fixes a problem with the link back into cacti. It was not working for all reports except the 2x2 columnar report format.

It also contains a cosmetic change for the foorter, where it displayed a "-" when no extra footer text was entered in the settings
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
milleryuan
Posts: 5
Joined: Mon Mar 30, 2009 7:59 pm

opening the file: tmp/791.png

Post by milleryuan »

I installed the new version(nmidCreatePDF_v0.3a2.tgz) today, my Cacti version is 0.87b, I have two question:
1.I got a PDF file but have no graph show there, it's "error opening the file: tmp/791.png", I try to use "create_image.php 791 0 1237298394 1237384794 100 800 > tmp/791.png " to create a graph by manual, it's succeed, and it can be show in IE, Could you please help me to check it?

2.I can used "submit" button in the first page(graph_view.php), but if I click my graph going to second page(graph.php), I can see that check box only, and the submit button missed. Is it by design?

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

Post by phalek »

milleryuan wrote: 1.I got a PDF file but have no graph show there, it's "error opening the file: tmp/791.png", I try to use "create_image.php 791 0 1237298394 1237384794 100 800 > tmp/791.png " to create a graph by manual, it's succeed, and it can be show in IE, Could you please help me to check it?
is the tmp dir writeable by apache ? try

Code: Select all

cd /path/to/cacti/plugins/nmidCreatePDF
chown root.apache tmp/
chmod 665 tmp/
it may be that it is wwwrun in your case instead of apache ...

If you extract the plugin with

Code: Select all

tar -xzvpf nmidCreatePDF_v0.3a2.tgz
it should set the permissions correctly ( -p does that ...)
milleryuan wrote: 2.I can used "submit" button in the first page(graph_view.php), but if I click my graph going to second page(graph.php), I can see that check box only, and the submit button missed. Is it by design?
It is by design. If you look at the roadmap for v0.4 you will see that it will be included there ( Feature #26 )
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
rootfive
Posts: 17
Joined: Tue Jan 29, 2008 12:58 pm

Post by rootfive »

I got the following error when I print in PDF.

FPDF error: Incorrect orientation:

How can I proceed.

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

Post by phalek »

What are your settings for "Page Orientation" in the NMID settings tab ? and what settings did you use for "Page Size" and "Graph Format" ?
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
rootfive
Posts: 17
Joined: Tue Jan 29, 2008 12:58 pm

Post by rootfive »

It is in Portrait orientation. After I change other orientation and save it, it works like a charm :).

Thanks for the great code. I wish it can send email to a particular address at schedule interval for a particular graph.
milleryuan
Posts: 5
Joined: Mon Mar 30, 2009 7:59 pm

Post by milleryuan »

[quote="phalek"][quote="milleryuan"]
1.I got a PDF file but have no graph show there, it's "error opening the file: tmp/791.png", I try to use "create_image.php 791 0 1237298394 1237384794 100 800 > tmp/791.png " to create a graph by manual, it's succeed, and it can be show in IE, Could you please help me to check it?
[/quote]
is the tmp dir writeable by apache ? try
[code]
cd /path/to/cacti/plugins/nmidCreatePDF
chown root.apache tmp/
chmod 665 tmp/
[/code]
it may be that it is wwwrun in your case instead of apache ...

If you extract the plugin with
[code]
tar -xzvpf nmidCreatePDF_v0.3a2.tgz
[/code]

it should set the permissions correctly ( -p does that ...)

[quote="milleryuan"]
2.I can used "submit" button in the first page(graph_view.php), but if I click my graph going to second page(graph.php), I can see that check box only, and the submit button missed. Is it by design?
[/quote]
It is by design. If you look at the [url=http://redmine.nmid-plugins.de/versions/show/7]roadmap for v0.4[/url] you will see that it will be included there ( Feature #26 )[/quote]


Thanks phalek.

I try to run your code as:
cd /path/to/cacti/plugins/nmidCreatePDF
chown root.apache tmp/
chmod 665 tmp/
but I got php error this time, pleae see my screenshot

I used root.root and set the folder tmp to 777 before, I got "error opening the file" in the PDF , but have no any error log.

Miller
Attachments
chown root.root tmp/ chmod 777 tmp/
chown root.root tmp/ chmod 777 tmp/
1.jpg (115.65 KiB) Viewed 3969 times
chmod 665 tmp/
chmod 665 tmp/
2.jpg (164.89 KiB) Viewed 3969 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi Miller,

Delete all files in the tmp dir and retry it. the file mentioned might be a "left-over" with wrong permissions set...
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
milleryuan
Posts: 5
Joined: Mon Mar 30, 2009 7:59 pm

Post by milleryuan »

Hi, Phalek
I have two or more php version in my system, default is 4.2, looks like nmidCreatePDF will use system default one, so I got a invalid png file in tmp folder, I changed system php version to 5.2, it work well now.

I set php5.2 bin path in cacti, and run phpinfo in the apache, php version is right, why nmidCreatePDF used old version? is possible to custom this path?

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

Post by phalek »

hm, there's actually a system call to the createimage php file, but that just says "php createimage.php" (or something like that). So it actually uses the php that's in the PATH variable, which might be 4.x in your case.

I'll add an option to add the complete path to the php binary in the next update
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
L0gRuS
Cacti User
Posts: 127
Joined: Thu Nov 06, 2008 7:57 am

Post by L0gRuS »

Hi Phalek.


i need trouble with nmid WebService . when i try install with PA 2.4 it plugin i see error

Code: Select all

Fatal error: Call to undefined function nmid_check_upgrade() in /var/www/html/plugins/nmidWebService/setup.php on line 33
This trouble is result upgrade 0.87c to 0.87d.
But plugin CreatePdf is work but no better perfomance.

How i can reinstall full nmidwebservice?

NMID CreatePDF Plugin Free Version
Directory: nmidCreatePDF
Version: 0.3
Author: Thomas Urban
Home Page: http://www.urban-software.de
Status: Active
Install | Uninstall | Enable | Disable | Check
NMID WebService Plugin
Directory: nmidWebService
Version: 0.3.9a
Author: Thomas Urban
Home Page: http://www.urban-software.de
Status: Not Installed
Install | Uninstall | Enable | Disable | Check
Cacti v.087g + PAv2.9
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

I had a similar issue with this when trying to install. Go into setup.php, and comment out the line referred to in the error message.

It'll work fine after that.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

oh yeah, i managed to have the wrong line of code in there (copy&paste error :-). I'll update that with v0.3b
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 1 guest