Thold question

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
kridaroc
Posts: 8
Joined: Fri Feb 18, 2005 11:43 am

Thold question

Post by kridaroc »

Hello,

First I want to say that thold is a very great add on for cacti
Adesimone, good work.

Question:

Is it possible to add static pictures when sending a threshold email, instead of dynamic ?
We've an out of band network where cacti is running.
Our firewall policy don't allow inbound connections to the oob network.

Thanks.
adesimone
Posts: 32
Joined: Mon Jan 24, 2005 12:46 am
Contact:

Post by adesimone »

it may be possible - it would probably require using the base64_encode function (and the dynamic picture is an issue I forsaw with firewalls, especially if you are checking your email from the outside). I'll put it on the todo list.
kridaroc
Posts: 8
Joined: Fri Feb 18, 2005 11:43 am

Post by kridaroc »

uuencode on nix works great

example:
uuencode /home/httpd/bla.png |mail -s 'bla' pietje@cacti.nl
Last edited by kridaroc on Mon Feb 21, 2005 2:56 pm, edited 1 time in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

If you have it installed... :)

Resently ran into that, it's usually in some package called shar_utils or something like that.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
adesimone
Posts: 32
Joined: Mon Jan 24, 2005 12:46 am
Contact:

Post by adesimone »

encoding can be done via PHP, but how would I export just one graph? the cacti export() function doesn't take any variables.

any help would be appreciated
adesimone
Posts: 32
Joined: Mon Jan 24, 2005 12:46 am
Contact:

Post by adesimone »

ok... I'll answer my own question - this can be done using the rrdtool_function_graph() function (duh!) and output into an email as an attachment ..

i'll include it in the next release
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests