Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


export2pdf: beta2 is out

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Mon Nov 21, 2005 12:52 pm    Post subject: export2pdf: beta2 is out Reply with quote

Hi,
after some very difficult starts, the beta2 is out.
you can download it from http://kalika.no-ip.com/

All descriptions are given on the site.
Regards.
Back to top
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Mon Nov 21, 2005 4:26 pm    Post subject: Reply with quote

One note more.
the account pdf/pdfpass is disabled from now.

some users may have found very funny too spam me with reports, and to delete them.

Some guyz are very curious...
Back to top
sumsum
Cacti User


Joined: 26 Apr 2004
Posts: 60
Location: Switzerland

PostPosted: Mon Nov 21, 2005 5:16 pm    Post subject: Reply with quote

i did a fresh installation with the latest cacti version. and installed your latest beta version (with patch successful). after that i could not access to the "User "Management . then i opened the export2pdf_main.php, which welcomes me with "access denied"
maybe i did something wrong. any hints or prerequisits ?
cheers
tom
Back to top
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Tue Nov 22, 2005 12:30 am    Post subject: Reply with quote

Hi,
i've done a new fresh install.

after that, it's true that user_admin.php, line 536, is broken. (but i've got an error type 'T_VARIABLE not defined'...)

Just delete the "order" tha is wrong, to keep:
"order by user_auth.username");"

because the order clause "user_realms" will not function. (will be corrected in beta3)

After that, in the user admin section it should be ok. Check the export2pdf rights.

If not, tell me.

Fred.
Back to top
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Tue Nov 22, 2005 5:15 am    Post subject: Reply with quote

Tom, i've noted that in export2pdf.sql
if you have an error, look in the file.

a coma ',' is inserted twice at the end of a line.

I've done a new install + a running install.
after having corrected export2pdf.sql and user_admin.php
all is working.

beta3 will be better.

Fred.
Back to top
sumsum
Cacti User


Joined: 26 Apr 2004
Posts: 60
Location: Switzerland

PostPosted: Tue Nov 22, 2005 5:18 am    Post subject: Reply with quote

hi fred
thanx for your investigation. I think about waiting for beta3 . dont like to hack around in the moment
Back to top
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Tue Nov 22, 2005 12:41 pm    Post subject: Reply with quote

yes, you're right.

my beta2 is not very stable....

but as a man said: "I'll be back"
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Tue Nov 29, 2005 3:12 am    Post subject: Reply with quote

Hi,
I install beta 3
I can see preview but when I try to generate pdf browser shows
Quote:
The page cannot be found

And browser link is:
Quote:
http://10.200.18.39/cacti/export2pdf_main.php?action=generate&id=1133249343

Additionally, when I clik generate Pdf&Mail icon browser shows a message :
Quote:
ERROR: Mail not sent...(Language string failed to load: file_accesstmp/pdf-438c0d30eaa1b.pdf)Click here to close
Warning: unlink(tmp/pdf-438c0d30eaa1b.pdf) [function.unlink]: No such file or directory in /www/htdocs/cacti/export2pdf_main.php on line 1351

what is wrong?
Back to top
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Tue Nov 29, 2005 3:31 am    Post subject: Reply with quote

Hi,
did you install htmldoc?

http://www.htmldoc.org/
and choose the version 1.8xxx (because 1.9 is known to crash).

the direct link may be: http://www.htmldoc.org/software.php?VERSION=1.9.x-r1474&FILE=htmldoc/1.8.25/htmldoc-1.8.25-source.tar.gz

Just extract and do:
./configure --prefix=/usr
make
make install

Remember to fill in the cacti administration panel the PATH of htmldoc.

you have raised one point: i've no documentation. This will be done.

Fred.
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Tue Nov 29, 2005 4:00 am    Post subject: Reply with quote

I install 1.6.25
Quote:
[root@cacti-test htmldoc]# which htmldoc
/usr/bin/htmldoc
[root@cacti-test htmldoc]# htmldoc -h
HTMLDOC Version 1.8.25 Copyright 1997-2005 Easy Software Products, All Rights Reserved.
This software is governed by the GNU General Public License, Version 2, and
is based in part on the work of the Independent JPEG Group.

Then I set PATH for htmldoc Binary File Path into cacti as:
Quote:
/usr/bin

But I still have same problems
Additionally, I found a problem:
When I select Multi Graph selection and select graphs, I read a message in preview like this:
Quote:
Warning: item index: 6 is unknwon. Item Type was: 3

Another error is when I select branch of tree I get a message like this:
Quote:
***error: do not know this item type

Say hi to your problem buddy
Back to top
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Tue Nov 29, 2005 10:57 am    Post subject: Reply with quote

please, read the post http://forums.cacti.net/viewtopic.php?t=10234

it answers some of your questions.
also, the problem about Multi Graph Selection is described. It's a feature implemented in the item view, not for the moment in the preview.

I must migrate to the Plugin Architecture as cigamit said, to be clean.

About your file not found problem, are you sure you have configured cacti as /usr/bin/htmldoc (Configuration =>Settings => Paths => htmldoc Binary File Path)?
It must be configured as the font for example or as the rrdtool binary path.

Fred.
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Wed Nov 30, 2005 1:42 am    Post subject: Reply with quote

fred-xdev wrote:
please, read the post http://forums.cacti.net/viewtopic.php?t=10234

it answers some of your questions.
also, the problem about Multi Graph Selection is described. It's a feature implemented in the item view, not for the moment in the preview.

I must migrate to the Plugin Architecture as cigamit said, to be clean.

About your file not found problem, are you sure you have configured cacti as /usr/bin/htmldoc (Configuration =>Settings => Paths => htmldoc Binary File Path)?
It must be configured as the font for example or as the rrdtool binary path.

Fred.

PDF creating is ok.
I realized that tree function is note ready todays. Because in export2pdf_main.php, between line 12227 and 1233 there is no case 8 that is tree
And I have a last question about mail. To send a mail that produced pdf, is my linux machine has sendmail package?
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Wed Nov 30, 2005 8:05 am    Post subject: Reply with quote

Ok I understand that I dont need to sendmail.
But, how can I configure my SMTP server?
I have a cacti 0.8.6g IP Address is 10.200.18.39 and we have have a SMTP server (Microsoft ESMTP MAIL Service) IP Address is 10.200.123.135
I dont know how can I configure php codes about export2pdf.
Or, do I need extra application to use send mail feature?
Back to top
fred-xdev



Joined: 08 Nov 2005
Posts: 18
Location: France

PostPosted: Wed Nov 30, 2005 1:18 pm    Post subject: Reply with quote

Oh yes,
it's not easily configurable for now.

but you can edit the code, export2pdf_main.php, about line 1333, when $mail->Host = "127.0.0.1", just enter the IP adress of your smtp gateway.

this is a great idea to include this in the new export2pdf (with Plugin Architecture).

Fred.
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Thu Dec 01, 2005 2:03 am    Post subject: Reply with quote

Cool. It works.
I can send mail now.
I still have two question:

1. how can I change the charset to see correct leter in PDF? I mean I use Turkish fonts. So when I use turkish letter in schema (textbox etc.) PDF output shows some weird letter.
Is there any way to change code page to see turkish code?

2. How can I send mail more than one mail address. I try comma, semicolon space between mail addresses. ıs there any way?

AND AN IDEA:

If your plug-in can send mail automatically, in cron, could be very nice.
For example , every monday cacti sends mail defined schema. Is it nice?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group