problem with thold

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

problem with thold

Post by zorrosam »

Hi,

i use plugin thold in my cacti. It works very well ... but actually i have a problem on the email. When i receive it, i can't find the graph attached.

Anyone can help me?

thanks,

sam
Ahuber
Cacti User
Posts: 59
Joined: Thu Nov 16, 2006 1:57 pm
Location: BC, kootenays

Post by Ahuber »

I have the same issue, are you using lotus notes? What I did was modify the code so that it would send the email with an image attached, as opposed to an inline image... This was my work around... Can say I remember how I did? No I can't... :oops:
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

Post by zorrosam »

yeah my friend!

i have lotus notes!

... very very strange.

You don't remember how have you modify cacti?

mmmmm....

please try to remember it!

thanks!

sam
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Lotus Notes, that industry standard, does not support PNG files :(

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Ahuber
Cacti User
Posts: 59
Joined: Thu Nov 16, 2006 1:57 pm
Location: BC, kootenays

Post by Ahuber »

My trusty Cacti manual that I write to everytime I make a change has it! I just remembered. It says:
"Edit reports plugin to disable png inline att. as notes does not support this; In File 'functions.php' in reports folder, comment out "$mail -> AddStringEmbedAttachment" in the "if($type='attach'||$type=='') {" section. Also comment out this line" "$mail->Body.=<br><br><img sfc'cid$cid'>"; " this line creates inline image. Now Add this line: $mail ->AddStringAttachment($data,$val['filename'].'.png');

This is copied from my book. Expect spelling errors except for the last line (The line to add to the .php file)

Good Luck!
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

.... info

Post by zorrosam »

thanks!

the position where i should add the line is the same of the other line that i commented out?

sam
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

great!

Post by zorrosam »

well done,

now the email has in attacch the png of the graph!

sam
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest