Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support FMS 3.0: Email not sent

  • FMS 3.0: Email not sent

    Posted by JPSelter on February 12, 2010 at 15:03

    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 [email protected] 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!

    borjagb replied 14 years, 10 months ago 5 Members · 6 Replies
  • 6 Replies
  • JPSelter

    Member
    February 12, 2010 at 19:13
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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?

  • raul

    Member
    February 14, 2010 at 19:15
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • JPSelter

    Member
    February 15, 2010 at 18:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

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

  • daniels

    Member
    March 18, 2010 at 21:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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: [email protected]

  • Sancho

    Administrator
    April 5, 2010 at 02:47
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Should be:

    mta_from  [email protected]

    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: [email protected]

  • borjagb

    Member
    April 16, 2010 at 18:17
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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!