Welcome to Pandora FMS Community!

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

  • Email not sending

    Posted by brucestclair on April 23, 2014 at 17:38

    I followed the instructions  @ “http://wiki.pandorafms.com/index.php?title=Pandora:Configuration_emails_alerts” but no go.  I checked the logs at /var/log/pandora and the logs are not showing it trying to send out mail.  If fact the logs are pretty bare except when I rebooted the server.  This build is the centos appliance,  pandorafms_console-5.0SP3-140419.tar.gz.  Please see the attachment to see the agent fired.

    brucestclair replied 10 years, 8 months ago 2 Members · 17 Replies
  • 17 Replies
  • ivo_yordanov

    Member
    April 23, 2014 at 19:40
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Check the configuration in your pandora_server.conf file to see if there is an email address configured for the server.

    Regards
    Ivo

  • brucestclair

    Member
    April 23, 2014 at 19:46
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    mta_address localhost
    #mta_port 25
    #mta_user null
    #mta_pass mypassword
    #mta_auth LOGIN
    mta_from Pandora FMS

    is what I have currently. I based this on the wiki page.

    Thanks 🙂

  • ivo_yordanov

    Member
    April 23, 2014 at 19:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    in mta_address put your mail server
    discoment mta_user and put your email account.
    discoment mta_pass and put your password (for the acount)
    discoment mta_auth LOGIN

    Restart the pandora_server process.

    Regards
    Ivo

  • brucestclair

    Member
    April 23, 2014 at 20:24
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I am able to get log messages now and they are saying error.  When I look at the maillog log I see postfix is trying to connect to my mail server via the outside ip address on my router, which will never work.  How can I force it to use the local IP adderss of my exchange box?

  • brucestclair

    Member
    April 23, 2014 at 22:33
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    OK I had to reconfigure my firewall to allow postfix to send smtp through the firewall to connect to my outside ip address and now mail is flowing.

  • ivo_yordanov

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

    Hello

    Yes the other solution was to check the connectivity and the firewall.

    Regards
    Ivo

  • brucestclair

    Member
    May 2, 2014 at 19:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Well for some reason email just stopped flowing.  The mailog has no entries.  The pandora_server.log has:

    2014-04-30 13:32:02 fms.tbd.local [V1] [ERROR] Sending email to [email protected] with subject [PANDORA] Alert from agent AOC_AOCMAIL on module Exchange POP3

    The pandora_server.error log is having issues as well.: Not sure if they are related but will paste the log.

    2014-04-30 13:40:09 – fms.tbd.local Starting Pandora FMS Server. Error logging activated.
    DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 621.
    DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 597.
    DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 621.
    DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 811.
    DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 811.
    DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 811.
    DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 811.
    DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 811.
    DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 621.
    DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 811.
    DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 811.
    Perl exited with active threads:
    11 running and unjoined
    2 finished and unjoined
    1 running and detached

    if I run the command :  echo test |mail -s test [email protected]
    the mail comes through instantly.

  • ivo_yordanov

    Member
    May 5, 2014 at 15:32
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    It seems mysql isn’t running correctly. Can you try and execute the following command: /etc/init.d/mysqld start  and post here the result.

    Regards
    Ivo

  • brucestclair

    Member
    May 7, 2014 at 02:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The reply is [OK]
    and I fired an alert and this is what I got in the server log

    2014-05-06 16:19:59 fms.tbd.local [V1] [ERROR] Sending email to [email protected] with subject [PANDORA] Alert RECOVERED for CRITICAL status on AOC_AOCMAIL / Exchange tes Service

    and nothing in the maillog

  • ivo_yordanov

    Member
    May 7, 2014 at 12:13
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Can you send me an email with the pandora_server.conf file located in /etc/pandora/ to the following email: [email protected]
    Where do you have pandora installed? Into a virtual machine or is it a normal system?

    Regards
    Ivo

  • brucestclair

    Member
    May 7, 2014 at 17:39
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    email has been sent.

  • ivo_yordanov

    Member
    May 7, 2014 at 19:23
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Can you tell us the updates you commented you made?

    Regards
    Ivo

  • brucestclair

    Member
    May 7, 2014 at 19:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I have attached a screen show of what is running currently and what patches I have applied.

  • ivo_yordanov

    Member
    May 7, 2014 at 20:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Can you make a screenshot of the configuration made in when creating the alert and the configuration of the action set with that alert.

    Regards
    Ivo

  • brucestclair

    Member
    May 7, 2014 at 20:07
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I hope this is what you are looking for.  THe system is pretty much default except the pandora_config changes.  Other that that all the actions are what was in there.

  • ivo_yordanov

    Member
    May 13, 2014 at 20:14
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Can you check your mail server configuration? From what i’ve seen on your configuration it should work properly. Please check your local connection settings.

    Regards
    Ivo

  • brucestclair

    Member
    May 14, 2014 at 22:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    nothing has changed.  I can send mail from the command line without any issues.