Hi,
Assuming your system mail works, this is all you need :
$config['alerts']['email']['default'] = "adama@memetic.org"; $config['alerts']['email']['from'] = "Observium Dev adama@memetic.org"; $config['alerts']['email']['default_only'] = TRUE;
adam.
On 2014-09-09 23:16, Zhenhui Liang wrote:
Hi, All
I tired many ways to make email working. But seems to be out of luck.
From linux command line, mail prove to be work on either local sendmail/postfix or via external smtp server. Php test email works either way as well. But observium seems not able to generate any alert email. A tcpdump session would not capture any email data as well when my configured alert checker fires off an alert.
Seems from config.php, I need to configure $config['alerts']['alerter']['default']['descr'] = "Observium Email Alert"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = “zliang@xxxx.com"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email_from'] = “observium@xxxxxx.com"; $config['email_backend'] = "mail"; $config['email_smtp_host'] = 'localhost’;
Also tried
$config['email']['from'] = “observium@xxx.com"; $config['email']['backend'] = "mail"; $config['email']['smtp_host'] = 'localhost'; $config['email']['default_only'] = 'true'; $config['email']['smtp_secure'] = 'false’;
And
$config['email']['from'] = “observium@mydomain.com"; $config['email']['backend'] = “smtp"; $config['email']['smtp_host'] = ’smtp.mydomain.com'; $config['email']['default_only'] = 'true'; $config['email']['smtp_secure'] = 'false’;
None of those combination of configs works.
It looks like we are deprecate old format of $config['email_from’] to $config[‘email’]['from’] style? With later format, from global settings, I could see my change taking effect. But using the old format, some values got updated, some not. But nevertheless, email were never sent out.
Please advise.
I am using code version of Observium 0.14.9.5798 Apache 2.2.15 (CentOS) PHP 5.3.3 MySQL 5.1.66 SNMP NET-SNMP version: 5.5 RRDtool 1.3.8
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium