Pages: [1]   Go Down
Author Topic: eMail with pandora 2.1.1  (Read 712 times)
0 Members and 2 Guests are viewing this topic.
Brenno Hiemstra
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


View Profile
« on: August 10, 2009, 06:56:31 AM »

Hi,

I am trying to test pandora fms 2.1.1.
I am having problems with sending out mails.
I have verbose set on 10.

In the pandora_server.log I can see the following message:
pandora_server.log:2009/08/10 16:06:13 pandora_Data [V2] Alert (eMail) TRIGGERED for xxx.
But you're probably guessing already...   There is no email being sent out.

field1 == mail address that needs to receive the alert
field2 == mail subject
field3 == mail body

This command is succesfull:
echo "test" | mail -s "test subject" xxx@xxxx

I am running nullmailer on this system in case you are wondering...

What can I do to get more logging / debug information about this email problem?
Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: August 12, 2009, 03:40:17 AM »

Pandora 2.1 uses it's internal SMTP capabilities build on Pandora FMS server, take a look on /etc/pandora/pandora_server.conf. There is also a "alert command" defined to send mail, internally so you only need to define on Pandora FMS Server, using the pandora_server.conf, the SMTP gateway. Internal email alert type is defined as:

eMail: This alert send an email using internal Pandora FMS Server SMTP capabilities (defined in each server, using: _field1_ as destination email address, and _field2_ as subject for message. _field3_ as text of message.

Hope this may help...
Logged

-- See you in the other screen.

Brenno Hiemstra
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


View Profile
« Reply #2 on: August 12, 2009, 05:52:02 AM »

Nil,

Thanks for your help only I kinda fixed it already. And I dont know what I did to make it work!  :)

But now I am encountering an other problem....
In the subject of the email I am using the '&' sign (trying to send an sms via email).
Unfortunately this sign is being translated to the html version of '&'amp;
Ofcourse this will fail at the sms gateway provider...! The sms needs to be sent as plain text.

Is there a way to change this behaviour?

Thanks
« Last Edit: August 12, 2009, 05:53:48 AM by brenno » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #3 on: August 12, 2009, 07:28:15 AM »

Dammm, this is a very annoying bug, can you open a Bug Track in our project tracker ?, this should be fixed in a few weeks...
Logged

-- See you in the other screen.

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST