Welcome to Pandora FMS Community!

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

  • eMail with pandora 2.1.1

    Posted by brenno on August 10, 2009 at 09:56

    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?

    Sancho replied 15 years, 2 months ago 2 Members · 3 Replies
  • 3 Replies
  • Sancho

    Administrator
    August 12, 2009 at 06:40
    2215 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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…

  • brenno

    Member
    August 12, 2009 at 08:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • Sancho

    Administrator
    August 12, 2009 at 10:28
    2215 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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…