Welcome to Pandora FMS Community!

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

  • about emailing

    Posted by yduma on June 9, 2008 at 16:01

    as I understand when I have Pandora server version 1.3 email alert don/t work with module – Host alive ???
    Is it true?
    and to fix this – I must upgrade server to 1.3.1???

    Thank’s

    godzone-nz replied 16 years, 7 months ago 3 Members · 6 Replies
  • 6 Replies
  • manu

    Member
    June 9, 2008 at 16:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    It does work

  • yduma

    Member
    June 9, 2008 at 16:33
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    my command is
    echo “ERRORS”|mail -s “PANDORA” [email protected]

    is it correct?

    When I run this command at console – I receive letter, so I think problem is in Agent configuration> alert
    min and max value – 1.00
    alert test error yevhen-pc
    Description 111
    Field #1 (Alias, name) 1
    Field #2 (Single Line) 1
    Field #3 (Full Text) 1
    time from and to 00:00
    time threshold – 10 minutes
    min number of alerts – 1 max – 3

    IS THIS correct?

  • manu

    Member
    June 9, 2008 at 18:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
  • godzone-nz

    Member
    July 4, 2008 at 02:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Make sure that you do NOT include quotations in the command. When an email command is entered in the alert definition, it ends up with quotes being converted to &quot in the database. When this is feed to the shell, when an alert fires, it gets pretty unhappy.

    I had tried to add the following;
    echo _field3_ | mail -s “Pandora: _agent_ _field2_” _field1_

    what was presented to the shell at execution was
    echo “the content of field 3” | mail -s &quot Pandora: myserver “content of field 2” &quot someone@domain

    I ended up having to put the prefix on each individual alert. But it does work.

  • manu

    Member
    July 4, 2008 at 10:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    Just a note, you do not need to define the macros (_agent_) for instance in the alert creation menu, you can use it when defining an alert for a module.
    I mean, you could use it in the field2 something like: Pandora: _agent_ down

  • godzone-nz

    Member
    July 9, 2008 at 15:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The advantage with putting it in the alert creation would have been consistent subject lines so that mail filters can move the messages into folders etc.

    If I had been able to put “Pandora: _agent_ – _field2_” on the alert when created, then all modules using it would have that prefix in the subject line and it would not need to be repeated on an each individual module. As it is currently, I have had to repeat it and put “Pandora: _agent_ – ” in field2 on each module.

    But as stated previously, it does work.