Pages: [1]   Go Down
Author Topic: FMS 3.0: Email not sent  (Read 819 times)
0 Members and 2 Guests are viewing this topic.
JPSelter
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« on: February 12, 2010, 12:03:21 PM »

I have created an action with command "email" and filled out all 3 fields (mail adress / subject / body). Then I created a template, added the action to it, here I also filled out all 3 fields. Then I connected the template to one of my hosts. The alert fires but no email is sent.

I used the EXPECT approach, from the command line I can send a test message with "smtp myself@mydomain.de Test Text", this works ok, no matter with what user or from where I start the script. So there seems to be no permission issue.

But what could it be? I cannot edit the default command "Email". What does it do exactly?

Thanks for any help!
Logged

JPSelter
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #1 on: February 12, 2010, 04:13:07 PM »

I solved it myself... I created a new command where I put the "smtp _field1_ _field2_ _field3" command in.

Buuuuut... there seems to be a little bug: I´m not allowed to use spaces in field2... so

smtp "myadress" "Host is down" "Text"

is converted into

smtp "myadress" "Host" "is"

What´s happening here?
« Last Edit: February 12, 2010, 04:15:15 PM by JPSelter » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #2 on: February 14, 2010, 04:15:49 PM »

As you say, this could be a bug, that filed2 is not allowing spaces. Could you add the bug to our tracker:

http://sourceforge.net/tracker/?func=add&group_id=155200&atid=794852

Thanks
Logged

JPSelter
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #3 on: February 15, 2010, 03:45:08 PM »

Is done. I wonder how other users send their alert emails, I can´t seriously be the first who notices this nasty little bugger ;-)
Logged

daniels
Smart member
*****

Karma: 19
Offline Offline

Posts: 205



View Profile
« Reply #4 on: March 18, 2010, 06:19:43 PM »

I finished my traumatic migration process from version 2.1 this week and configured alerts with the internal eMail command... Everything worked quite well...

I only had to add the mta_from line in the /etc/pandora/pandora_server.conf file:

mta_from: pandora@myserver.mydomain.com
Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


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


View Profile WWW
« Reply #5 on: April 04, 2010, 11:47:36 PM »

Should be:

mta_from  pandora@myserver.mydomain.com

Beware of the extra ":" dots. I'm going to remove from the sample conf to avoid future confussions.

I finished my traumatic migration process from version 2.1 this week and configured alerts with the internal eMail command... Everything worked quite well...

I only had to add the mta_from line in the /etc/pandora/pandora_server.conf file:

mta_from: pandora@myserver.mydomain.com
Logged

-- See you in the other screen.

borjagb
Jr. Member
**

Karma: 0
Offline Offline

Posts: 18


View Profile
« Reply #6 on: April 16, 2010, 03:17:48 PM »

can anyone put a "real" script to use expect or all the steps to make it works (changes in pandora_server.conf, in commads...)


thanks!
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


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