PDF Report: export2pdf

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

fred-xdev
Posts: 18
Joined: Tue Nov 08, 2005 11:54 am
Location: France
Contact:

PDF Report: export2pdf

Post by fred-xdev »

Hi,
I saw some post about pdf exports.
I'm currently coding an addon for cacti, that make possible to create
"schema" for a report. You can add elements, like graph, title, section header, text area, ... and also you can "cut" some page for the pdf export.

Currently, i'm still under developpment, but i've attached a pdf sample.

Curious can have a look at http://kalika.no-ip.com/cacti/
user: pdf
pass: pdfpass

Fred.

PS: be courtous with me, i'm a french guy, ...english is not my best part.
User avatar
joed
Posts: 29
Joined: Mon Sep 19, 2005 6:27 am
Location: Germany/Palatinate

Post by joed »

looks interessting.

regards
joed
Ingimar
Posts: 7
Joined: Mon Feb 21, 2005 8:53 am

Post by Ingimar »

This looks really interesting Fred!

Very nice for monthly/yearly reports! They could even be made automagically! :-)
User avatar
sumsum
Cacti User
Posts: 68
Joined: Mon Apr 26, 2004 7:18 am
Location: Switzerland
Contact:

Post by sumsum »

brilliant !

I'm shure this welcome by the community !

go ahead.
cheers
tom
http://www.lounge-radio.com/
rebel
Posts: 14
Joined: Sun Mar 13, 2005 7:52 am

Post by rebel »

Great. Please share it with us. Very interessting.
dkibilka
Posts: 2
Joined: Wed Feb 04, 2004 10:27 am
Location: Niederkassel, Germany
Contact:

Post by dkibilka »

Thats what i'm waiting for ....
wonderfull work.
Great.

David
David Kibilka
ACT IT-Consulting & Services AG
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Nice Addon! This is very simular to the Reports Plugin I have been working, but you have added quite a few features I haven't gotten around to yet. With you developing this, I see no reason to continue on mine, so I will devote my time to my other plugins.

The one thing that my plugin has that I wouldn't mind seeing in yours is the ability to email out the reports on a set schedule, and ofcourse not require any extra code hacks, so make it use the Plugin Architecture. Once Cacti v0.9 rolls around, it would ensure that your plugin works out of the box just by dropping it in a directory.

If you have questions, suggestions, or need any help, just let me know!
fred-xdev
Posts: 18
Joined: Tue Nov 08, 2005 11:54 am
Location: France
Contact:

Post by fred-xdev »

Hi,
thx for you interest for this.

export2pdf has now a bug tracker (http://kalika.no-ip.com/ => see the Bug Tracker). It's based on mantis. Feel free to register if you want.

I'm working under CVS, and it will be soon open.

All ideas, as 'cigamit ' has given, are welcome. Email and scheduling are great ideas.
Help too (when my cvs will be correct :oops: ).

I have rewritten the most part of the export2pdf integration in cacti, to have the less modification to do when integrating with Cacti.

For now, some 'item' part are not working, as 'Tree Branch'.
I'll release the first alpha next week I think.
I want to make it very easy to integrate, but sometimes, Cacti code is not very 'open'.
I've reached to modify only two files, by adding content only, not changing ant value.


To end, be patient when trying to bug track or anything else....my adsl internet line is a little big slow.... Telecom in France prefers to give better download than upload :cry: ....
kayalinux
Posts: 23
Joined: Mon Oct 31, 2005 4:38 am

Post by kayalinux »

I got a 404 Not Found form your server.

The requested URL /cacti/export2pdf_mail.php was not found on this server.

I will be glade if i can test it or even help you.
fred-xdev
Posts: 18
Joined: Tue Nov 08, 2005 11:54 am
Location: France
Contact:

Post by fred-xdev »

i'm sorry for that.
the mail template will be a new implementation.
the idea is coming from cigamit. (thx)

the main idea is to create:
- schema for report, i mean skeleton of a report.
- template for mail distribution (mailling, etc...)

So, a schema will have items (Title, Page Break, ...) and a mail template to be associated with.

keep in mind, that kalika.no-ip.com is the direct server and i'm working on.
i'll try to make '2' cacti running.
- one for the show :wink:
- one for the developpement

for any bug, do not hesitate to use the bug tracker (http://kalika.no-ip.com/mantis/)
fell free to register/create login and post the bugs found.

thank for your interest.
fred-xdev
Posts: 18
Joined: Tue Nov 08, 2005 11:54 am
Location: France
Contact:

Post by fred-xdev »

Well,
i'm near the release the beta2 of export2pdf.

beta1 was so awfull & buggy..

Features (working)
- Skeleton (add/edit/del)
#item (Title, Graph, Logo, Page Break, Text) [add/edit/del...]
- Mail template, that you can 'link' with your schema.

The mail, part is working. I'm using phpmailer class.

Sorry kayalinux for the trouble you've encountered with the 404 error.
When i've replied to you, i had not seen the state of my cacti on the net... :oops:

I think, tomorrow or tonight :roll: , i'll be able to make available the release public release (also it should be considered still as a beta2).
Bye.
BrettS
Posts: 24
Joined: Tue Feb 15, 2005 8:49 pm

Post by BrettS »

Just wondering about the status of this plugin., This one seems to be a realy good Idea that is needed

thanks

Brett Stevens
Nemea
Posts: 13
Joined: Tue Nov 15, 2005 10:33 am

Post by Nemea »

Bug:

patch -p1 < export2pdf-beta2.patch --> user_admin.php


/*_____patch fred_____*/
/*_____base query was unsafe I think. rewritten it_____*/
$realms = db_fetch_assoc("select
user_auth_realm.user_id, user_auth.id, user_auth.username from user_auth left join user_auth_realm
on (user_auth.id=user_auth_realm.realm_id and user_auth_realm.user_id" . (empty($_GET["id"]) ? "0" : $_GET["id"]) . ")
order by user_realm.name"); <------------------------------
order by user_auth.username");
/*_____end patch_____*/


uncommented last line --> no error


/*_____patch fred_____*/
/*_____base query was unsafe I think. rewritten it_____*/
$realms = db_fetch_assoc("select
user_auth_realm.user_id, user_auth.id, user_auth.username from user_auth left join user_auth_realm
on (user_auth.id=user_auth_realm.realm_id and user_auth_realm.user_id" . (empty($_GET["id"]) ? "0" : $_GET["id"]) . ")
order by user_realm.name");
# order by user_auth.username");
/*_____end patch_____*/
Nemea
Posts: 13
Joined: Tue Nov 15, 2005 10:33 am

Post by Nemea »

Feature-Request:

It would be great to generate reports periodically.
fred-xdev
Posts: 18
Joined: Tue Nov 08, 2005 11:54 am
Location: France
Contact:

Post by fred-xdev »

yes you're right.

---
beta-3 is out (http://kalika.no-ip.com/)
i've made some changes, but it's almost a bug correction from the beta2.
*user_admin.patch is separated from the main patch file => means that you may want to patch user_admin.php only if you want.
*export2pdf.sql is now corrected to support old version of mysql.
*the mail template/export is working.
---

beta4 should add some features like:
- branch of tree for item selection
- multi graph selection (if you have 120 host to graph, it's better...)

the request about periodical export is taken in account. i'll put it in my bug tracker (opened if you want in /mantis/ on Kalika)

Thx for your interest.
Fred.[/url]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests