haleo plugin not showing e-mail addresses

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

haleo plugin not showing e-mail addresses

Post by dagonet »

Hello community
I have a problem with my haleo installation. It works great just out of the box.

I do all the logging with syslog-ng and the haleo plugin. So I log to syslog-ng the postfix log as well.
It appears in haleo, everything is right so far. But this morning I discovered that haleo does NOT show me the e-mail addresses in the message column as it should.

Here is an example:
haleo output:
postfix/virtual[24500]: 5E082764049: to=, orig_to=, relay=virtual, delay=0.62, delays=0.43/0.01/0/0.18, dsn=2.0.0, status=sent (delivered to maildir)

and message in the haleo database:
postfix/virtual[24500]: 5E082764049: to=<xxx@test.de>, orig_to=<blub@test.de>, relay=virtual, delay=0.62, delays=0.43/0.01/0/0.18, dsn=2.0.0, status=sent (delivered to maildir)

kind regards

dagonet
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Post by dagonet »

Hi community,
after spending hours and hours for research I finally find the solution:

changing line 345 in haloe.php from
<?php print ($haloe_message[$haloe_config["textField"]]);?>
to
<?php print htmlspecialchars($haloe_message[$haloe_config["textField"]]);?>

did the trick. Look at http://www.php.net/manual/de/function.h ... lchars.php

After appling this function the output of haloe was correct.

regards

Dagonet
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

dagonet wrote:Hi community,
after spending hours and hours for research I finally find the solution:

<snip>

After appling this function the output of haloe was correct.

regards

Dagonet
Thanks for catching that, I have now updated SVN to fix this issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest