Welcome to Pandora FMS Community!

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

  • Alerts & E-mails [Solved]

    Posted by hannylicious on April 14, 2009 at 14:51

    Hey again!

    Now that things have been cooking, I’ve been running through the process necessary to setup alerts and other fun things!
    I’ve been having a lot of fun with it – and it’s really easy to get up and going…

    But I am (as I’ve said before) really new to a lot of this.  

    I am having trouble getting e-mails setup to work.
    I’ve got the alerts setup, and it tells me it’s firing and e-mail off when the alert hits, but I receive nothing in my e-mail I have it sending to.

    I have looked at the documentation and can’t find anywhere that I’m going wrong…

    Is there anywhere in particular I should check?  Or anywhere that might help me in order to get these working?

    Again – this is a very ‘default’ type install…

    jaytourist replied 13 years, 9 months ago 7 Members · 24 Replies
  • 24 Replies
  • manu

    Member
    April 14, 2009 at 14:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Did you fill out the MTA parameters in /etc/pandora/pandora_server.conf ?

    In the alert setup in the webconsole…did you put your email at the “field1”?
    Remember:
    field1 -> email
    field2 -> subject of the email
    field3 -> email’s body

  • hannylicious

    Member
    April 14, 2009 at 15:55
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I filled out some of the MTA parameters:

    I left: mta_address localhost
    and entered an e-mail in mta_from

    I also put the appropriate information in the webconsole fields.

    I installed sendmail on the server, and have left it with default settings. Is there further configuration needed there in order to work with pandora?

  • manu

    Member
    April 14, 2009 at 16:24
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    What do you get if you do:

    echo “test” | mail -s “test subject” [email protected]

  • hannylicious

    Member
    April 14, 2009 at 17:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The first time I got:

    The program ‘mail’ can be found in the following packages:
    *heirloom-mailx
    *mailutils
    Try: apt-get install

    So I added both of them.

    When I did it again after installing the packages – I got received no error, but the e-mail did not go anywhere (that I could see)

  • manu

    Member
    April 15, 2009 at 01:40
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Cool, now take a look at /var/log/mail.log (or similar) to see if the email is being sent.
    Are you sure your ISP or your mail server is not blocking it? Can be a relay issue?

  • hannylicious

    Member
    April 16, 2009 at 10:31
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Apr 16 09:48:16 ubuntu2 sm-mta[24645]: n3GEmGT5024645: from=, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
    Apr 16 09:53:21 ubuntu2 sm-mta[24736]: n3GErLkK024736: ruleset=check_rcpt, arg1=, relay=localhost [127.0.0.1], reject=553 5.1.8 … Domain of sender address [email protected] does not exist
    Apr 16 09:53:21 ubuntu2 sm-mta[24736]: n3GErLkK024736: lost input channel from localhost [127.0.0.1] to MTA-v4 after rcpt
    Apr 16 09:53:21 ubuntu2 sm-mta[24736]: n3GErLkK024736: from=, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
    Apr 16 09:57:43 ubuntu2 sm-mta[24788]: n3EMCEm1007808: to=, ctladdr= (0/0), delay=1+16:45:29, xdelay=00:00:00, mailer=esmtp, pri=22170494, relay=recyclingit.com, dsn=4.0.0, stat=Deferred: Connection timed out with recyclingit.com
    Apr 16 09:57:43 ubuntu2 sm-mta[24788]: n3ELvtn8007471: to=, ctladdr= (0/0), delay=1+16:59:48, xdelay=00:00:00, mailer=esmtp, pri=22260494, relay=recyclingit.com, dsn=4.0.0, stat=Deferred: Connection timed out with recyclingit.com

    This is the what I see in the mail.log file.
    I think it probably is what you said about the relay issue somehow…

    I imagine there’s probably a config file or something that I need to update with corrected information or something in order to resolve some of the setup of the mail server (I installed it, but have not run any config for it, nor do I know where to find it).

    If you know where I could look to see the configs of it – that’d be helpfull, otherwise I’ll be digging around and will report back 😀

    Thanks again for continuing to work with a newb such as myself 😀

  • hannylicious

    Member
    April 16, 2009 at 11:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’m working my way through this tutorial now to setup a mail server properly:
    http://flurdy.com/docs/postfix/

  • manu

    Member
    April 17, 2009 at 05:53
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Add this in the pandora_server.conf

    mta_from [email protected]

    This parameter lets you specify the sender of the emails sent by Pandora Server
    Try to put an email an domain that might not be rejected by your mail server

    Do not forget to restart the server after adding it.

  • hannylicious

    Member
    April 17, 2009 at 14:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I had added that already to the pandora_server.conf

    I’m sure it’s something going on here that I simply lack the knowledge to understand or see. I have done some of the tests on the postfix install page and it generates an e-mail on the localhost machine, so I can tell it’s working.

    It’s getting it to integrate with our network I think that’s causing the rub somewhere… i’m not sure how or why at this point…

    But again – I appreciate your helping me on this issue. I’ll keep on diggin 😀

  • hannylicious

    Member
    April 17, 2009 at 14:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Not that this has anything to do with the e-mails – but…

    I have noticed that for some reason the agents have stopped sending information to the server – I now have unknown monitors.
    The monitor that uses SSH has been down for a few days, the others (tentacle) have went down in the past day and have yet to come back up.

    This has happened before and after a while they automatically come back to life, but this time the outage seems to be taking some time – is there something I can check to see what might be going on?

  • manu

    Member
    April 17, 2009 at 14:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The email issue:
    The alert is actually being fired right? You can see it in the webconsole?
    Put the pandora_agent.conf verbosity 10, validate the alert and wait till the alert is fired again, go to /var/log/pandora/pandora_agent.log
    Can you see there a line saying the alert has been fired and “Executing command…”?

    The agents stuff:
    Windows agents?

  • hannylicious

    Member
    April 17, 2009 at 15:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’m sorry – yes windows agents.

    And with reference to the log – most recent thing in the pandora_server.log is:
    Alert executed for agent XXXXXX

    The alerts are working – they are showing up in the webconsole, and they’re stating the e-mail was sent. I’m sure it’s something to do with the setup of my server somehow (again, i am still very new to linux)

  • manu

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

    Try to restart the windows agents

    Try to send an email using telnet, if you don’t know how to do it, just do this:

    telnet IP_YOU_HAVE_IN_PANDORA_AGENT.CONF 25
    you will get something like:
    220 servername

    do:
    ehlo servername

    once the server replies write exactly what I wrote here (hit enter at the end of each sentence:
    mail from: [email protected]
    rcpt to: [email protected]
    data (hit enter)
    test
    . (write this “.”) and hit enter, this means you’re finishing the email and the server can try to send it

    Take a look at your inbox, did you get it?

  • manu

    Member
    April 17, 2009 at 15:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I was wondering…if you already have a mail server, why don’t you use it to send the emails?
    Just complete: mta_user, mta_pass and mta_auth with your server data and Pandora will use that server to send emails

  • hannylicious

    Member
    April 17, 2009 at 15:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I filled in the appropriate mta_ information…
    I wasn’t sure about the mta_auth however, I don’t know what should go there exactly… so i left it blank

    But it works!

    Spectacular.

    Once again – my BIGGEST thanks goes out to you –
    You are THE MAN!

  • manu

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

    I’m glad you had it sorted out! 🙂
    Enjoy pandora!!

  • Bty

    Member
    October 29, 2009 at 15:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi.

    I have a similar issue.
    I have setup the email alerting and everything is fine, except the address of the email sender.

    It is pandora@localhost

    I tried to edit /etc/pandora/pandora_server.conf

    mta_port 25
    mta_user: monitoring
    mta_pass: PASSWORD
    mta_from: monitoring@MYDOMAIN

    but I still get the email as pandora@localhost

    Thanks for you help.

  • Bty

    Member
    October 29, 2009 at 18:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Pandora 3.0

  • Sancho

    Administrator
    November 10, 2009 at 20:34
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Remove the double dots ! :-), like:

    mta_port 25
    mta_user monitoring
    mta_pass PASSWORD
    mta_from monitoring@MYDOMAIN

    Hi.

    I have a similar issue.
    I have setup the email alerting and everything is fine, except the address of the email sender.

    It is pandora@localhost

    I tried to edit /etc/pandora/pandora_server.conf

    mta_port 25
    mta_user: monitoring
    mta_pass: PASSWORD
    mta_from: monitoring@MYDOMAIN

    but I still get the email as pandora@localhost

    Thanks for you help.

  • Bty

    Member
    November 11, 2009 at 12:38
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks for your support.

    It’s working now.

Page 1 of 2