PDF Report: export2pdf
Moderators: Developers, Moderators
PDF Report: export2pdf
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.
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.
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!
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!
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 ).
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 ....
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 ).
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 ....
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
- 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.
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
- 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.
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...
I think, tomorrow or tonight , i'll be able to make available the release public release (also it should be considered still as a beta2).
Bye.
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...
I think, tomorrow or tonight , i'll be able to make available the release public release (also it should be considered still as a beta2).
Bye.
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_____*/
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_____*/
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]
---
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]
Who is online
Users browsing this forum: No registered users and 2 guests