Email Alerts with Mail/Sendmail Not Working
![](https://secure.gravatar.com/avatar/d402d458f0578782baca3e576248be32.jpg?s=120&d=mm&r=g)
Hello,
I'm having an issue getting Observium to send email alerts.
1. SysContact is set on the client device. 2. Sending test mail from monitoring server via sendmail on command line works fine. 3. Observium config.php has following configuration:
$config['alerts']['email']['enable'] = TRUE; $config['alerts']['port']['ifdown'] = TRUE; $config['alerts']['email']['default'] = "notif…@xx.net";
$config['email_backend'] = 'mail'; $config['email_from'] = "MTR mtr...@xx.net"; $config['email_sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['interval'] = 900;
Setup a demo device, ensured it was polling and reporting correctly, then force-shutdown the demo. No mail sent by Observium. In mail.log, nothing reported (except for the successful test message I sent via command line).
Maybe I'm misunderstanding. Will Observium send an email alert when a monitored device goes down, when configured this way? How can I achieve this?
Many thanks in advance to anyone who can offer advice.
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Hi,
Historical notifications are deprecated and shouldn't be used.
The new-style notifications are still a work in progress and should only be used if you know what you're doing.
The new-style notifications are only available in the SVN version at the moment, as the code is still WiP.
adam.
On 2013-12-17 00:05, sysadmin@boyah.net wrote:
Hello,
I'm having an issue getting Observium to send email alerts.
- SysContact is set on the client device.
- Sending test mail from monitoring server via sendmail on command
line works fine. 3. Observium config.php has following configuration:
$config['alerts']['email']['enable'] = TRUE; $config['alerts']['port']['ifdown'] = TRUE; $config['alerts']['email']['default'] = "notif…@xx.net";
$config['email_backend'] = 'mail'; $config['email_from'] = "MTR mtr...@xx.net"; $config['email_sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['interval'] = 900;
Setup a demo device, ensured it was polling and reporting correctly, then force-shutdown the demo. No mail sent by Observium. In mail.log, nothing reported (except for the successful test message I sent via command line).
Maybe I'm misunderstanding. Will Observium send an email alert when a monitored device goes down, when configured this way? How can I achieve this?
Many thanks in advance to anyone who can offer advice. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/d402d458f0578782baca3e576248be32.jpg?s=120&d=mm&r=g)
I gathered as much about the alert system differences in community and SVN versions. Unfortunately I cannot upgrade at present.
For the benefit of others searching this issue, is it possible to use the community version's email alerts, despite deprecation? Or is the functionality truly deprecated, and no longer supported by the default code?
Thank you!
On Dec 16, 2013, at 4:06 PM, Adam Armstrong adama@memetic.org wrote:
Hi,
Historical notifications are deprecated and shouldn't be used.
The new-style notifications are still a work in progress and should only be used if you know what you're doing.
The new-style notifications are only available in the SVN version at the moment, as the code is still WiP.
adam.
On 2013-12-17 00:05, sysadmin@boyah.net wrote:
Hello, I'm having an issue getting Observium to send email alerts.
- SysContact is set on the client device.
- Sending test mail from monitoring server via sendmail on command
line works fine. 3. Observium config.php has following configuration: $config['alerts']['email']['enable'] = TRUE; $config['alerts']['port']['ifdown'] = TRUE; $config['alerts']['email']['default'] = "notif…@xx.net"; $config['email_backend'] = 'mail'; $config['email_from'] = "MTR mtr...@xx.net"; $config['email_sendmail_path'] = '/usr/sbin/sendmail'; $config['alerts']['interval'] = 900; Setup a demo device, ensured it was polling and reporting correctly, then force-shutdown the demo. No mail sent by Observium. In mail.log, nothing reported (except for the successful test message I sent via command line). Maybe I'm misunderstanding. Will Observium send an email alert when a monitored device goes down, when configured this way? How can I achieve this? Many thanks in advance to anyone who can offer advice. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
On 2013-12-17 00:15, sysadmin@boyah.net wrote:
I gathered as much about the alert system differences in community and SVN versions. Unfortunately I cannot upgrade at present.
For the benefit of others searching this issue, is it possible to use the community version's email alerts, despite deprecation? Or is the functionality truly deprecated, and no longer supported by the default code?
They should work, and there are people still using them.
I've not used them for years, though. The email output stuff has been rewritten twice in the past few months, so I'm not even sure how that's working now.
adam.
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
For use old style notifications you should also add:
$config['alerts']['email']['enable'] = TRUE; // Enable email alerts
and for use sendmail as backend: $config['email_backend'] = 'sendmail'; // (Because by default used PHP's built-in mail function)
On Tue, Dec 17, 2013 at 4:05 AM, sysadmin@boyah.net sysadmin@boyah.netwrote:
Hello,
I'm having an issue getting Observium to send email alerts.
- SysContact is set on the client device.
- Sending test mail from monitoring server via sendmail on command line
works fine. 3. Observium config.php has following configuration:
$config['alerts']['email']['enable'] = TRUE; $config['alerts']['port']['ifdown'] = TRUE; $config['alerts']['email']['default'] = "notif…@xx.net";
$config['email_backend'] = 'mail'; $config['email_from'] = "MTR mtr...@xx.net"; $config['email_sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['interval'] = 900;
Setup a demo device, ensured it was polling and reporting correctly, then force-shutdown the demo. No mail sent by Observium. In mail.log, nothing reported (except for the successful test message I sent via command line).
Maybe I'm misunderstanding. Will Observium send an email alert when a monitored device goes down, when configured this way? How can I achieve this?
Many thanks in advance to anyone who can offer advice. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Adam Armstrong
-
Mike Stupalov
-
sysadmin@boyah.net