PDF Report Generator??

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

PDF Report Generator??

Post by chadw »

Hi,

I'm wondering if anyone has done any work on a plug-in that could take a selection of graphs and export them as a single PDF report that could be used as a capacity/performance report for clients.

I've got some preliminary work done to generate PDF files with cacti graphs using PDFlib (see attached), but thought I'd check before I went too far.

Thanks,

Chad
Attachments
reporting_4.zip
Sample PDF Report
(16.99 KiB) Downloaded 1204113 times
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hi chadw,

in general a very useful enhancement for Cacti.

Have you done any additional work - any new samples ?

Pumpi
moonman
Cacti User
Posts: 101
Joined: Sat Sep 06, 2003 10:25 am

Post by moonman »

In rrdtool 1.2 you can change the image format to PDF

from http://people.ee.ethz.ch/~oetiker/webto ... ph.en.html

[-a|--imgformat PNG|SVG|EPS|PDF]

what I think about is adding another button near the zoom and properties that will open a new window with the graph in PDF format

Nitzan
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

chadw,

perhaps http://www.fpdf.org/ will be also a solution ?

Found someone has done a solution for the ZABBIX application:

http://www.zabbix.com/forum/showthread.php?t=1049
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: PDF Report Generator??

Post by cigamit »

chadw wrote:Hi,

I'm wondering if anyone has done any work on a plug-in that could take a selection of graphs and export them as a single PDF report that could be used as a capacity/performance report for clients.

I've got some preliminary work done to generate PDF files with cacti graphs using PDFlib (see attached), but thought I'd check before I went too far.

Thanks,

Chad
I have just created a plugin (last Thursday) that could be modified to do this. Currently it allows you to create "reports" to be sent out at a certain time to the email addresses you specify. You select which graphs you want from which hosts (through a simple wizard). The report is actually an HTML email with the graphs attached and embedded into the HTML. All fairly simple to do really.

But I can easily see the ability to send PDF reports instead. I will take a look at what you have done and see about implementing it. I haven't released the plugin yet as there are a few minor reworking I need to do with it after our internal testing, but I will release the reworked version this week (probably without the PDF stuff) if you want to take a gander at it.
aijii
Posts: 4
Joined: Tue Sep 06, 2005 12:52 am

Post by aijii »

If you would like some help with testing this, we'd be glad to help. Eagerly awaiting release of this plugin!

Can you have multiple reports running simultaneously ? Ie, if you have 3 tree headers, each with multiple graphs under them, could you have a different report generated for each header (each with their own list of email addresses)?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

aijii wrote:If you would like some help with testing this, we'd be glad to help. Eagerly awaiting release of this plugin!

Can you have multiple reports running simultaneously ? Ie, if you have 3 tree headers, each with multiple graphs under them, could you have a different report generated for each header (each with their own list of email addresses)?
You can actually create as many reports as you want. Reports can even have the the same graphs as other reports.

I have went ahead and released a beta of the plugin just to let you test it. It currently works fine, just lacks a lot of polish and lots of options that we will eventually want in it.

You can grab it on my site here. You will need the Plugin Architecture installed for it to work.
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hi cigamit,

you are getting the Cacti-addon developer of the year award :D

I hope TheWitness, raX and rony have already hired you :wink:


btw. any short documentation available ?
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

Post by chadw »

Hey cigamit,

I'm going to get your plugin architecture and have a look at reports. Hopefully I'll find some time today for it.

Thanks for your work.
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

Have installed the plugins patch and the reports addon. Where do you run the reports from inside cacti? Can't find it anywhere.
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

Post by chadw »

You'll have to go to user management and add "Create Reports" to your permissions. Then you'll see "Reports" in the left menu.

You'll also have to run the reports.sql code to create the required tables:

mysql -u root -p cacti < reports.sql
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

Ah ok...looks good.

Some suggestions for furture releases.

1. Have the option to send the different reports to different email address's.
2. Be able to send different reports at different times.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

africanw wrote:Ah ok...looks good.

Some suggestions for furture releases.

1. Have the option to send the different reports to different email address's.
2. Be able to send different reports at different times.
I am actually working on a more robust scheduler, so you can send reports daily, weekly, monthly, ect... at specific times, only on certain days etc...

As for you suggestions, I am not sure if I am understanding them correctly.

1. You can send reports to as many people as you want, just comma seperated the names (I need to fix the 255 max char thing though). If you create 2 different reports, you can send them to different addresses.

2. Different reports don't have to be send at the same time. Are you wanting the same report to be send at 2 different times? That would be possible in the new scheduler.
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

On point one you could make it so different reports get send to different people/customers or they could login to cacti and could enter there email address in so the reports they can see get emailed to them.

Hope that makes sense.
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

Post by chadw »

The new scheduler sounds good cigamit. I'm eagerly awaiting it's arrival. I'd be willing to lend a hand or test it for you. It's been requested of me at work, so I can actually work on it during work hours!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests