Welcome to Pandora FMS Community › Forums › Community support › about emailing
-
about emailing
Posted by yduma on June 9, 2008 at 16:01as 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
-
-
::
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 – 3IS THIS correct?
-
::
You might want to take a look at this:
http://www.openideas.info/wiki/index.php?title=Pandora_1.3:Documentation_en:Advanced_Setup
-
::
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 " 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 " Pandora: myserver “content of field 2” " someone@domainI ended up having to put the prefix on each individual alert. But it does work.
-
-
::
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.