Marcos Ferreira da Silva | 2 Jan 2012 14:15
Picon

Trigger send email

I'm having problem to send an email to an user when triggers occur.

The alarm is showed in the panel, but no email is send.

mysql> select * from triggers;
+----+-------------------------+-------+
| id | description             | type  |
+----+-------------------------+-------+
|  1 | No Trigger              | alarm |
|  2 | Interface Status Change | alarm |
|  3 | Trigger Test            | alarm |
+----+-------------------------+-------+
3 rows in set (0.00 sec)

mysql> select * from triggers_rules;
+----+------------+-----+----------------+----------+----------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+--------+
| id | trigger_id | pos | field          | operator | value    | action_id
|
action_parameters
| stop | and_or |
+----+------------+-----+----------------+----------+----------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+--------+
|  1 |          1 |  10 | none           | =        |          |         1
|
|    1 |      1 |
|  2 |          2 |  10 | type           | IN       | 12,25,38 |         2
| from:,subject:<interface-client_shortname> <interface-interface>
<interface-description> <alarm-type_description>
<alarm-state_description>,comment:Default Trigger                 |    0
|      1 |
|  3 |          3 |  10 | interface_host | =        | 4        |         2
(Continue reading)


Gmane