Alert Emails Not sending
![](https://secure.gravatar.com/avatar/946905bae76e44468c839c7f6e882b43.jpg?s=120&d=mm&r=g)
Guys,
Only new to Observium and it's a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech..... E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... "; $config['alerts']['email']['from'] = "monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01.......; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image001.png@01D0E09C.985E6EF0]
Any pointers are appreciated.
Regards
Cameron
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray cameron@techpath.com.au wrote:
Guys,
Only new to Observium and it's a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech..... E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... "; $config['alerts']['email']['from'] = "monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01.......; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image001.png@01D0E09C.985E6EF0]
Any pointers are appreciated.
Regards
Cameron
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/946905bae76e44468c839c7f6e882b43.jpg?s=120&d=mm&r=g)
Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech….. E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......mailto:monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... mailto:alert-infrastructure@tech......%20 "; $config['alerts']['email']['from'] = "monitoring@tech.....mailto:monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....mailto:monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01…….; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image001.png@01D0E0A0.F511D480]
Any pointers are appreciated.
Regards
Cameron _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray cameron@techpath.com.au wrote:
Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech….. E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......mailto:monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... mailto:alert-infrastructure@tech......%20 "; $config['alerts']['email']['from'] = "monitoring@tech.....mailto:monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....mailto:monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01…….; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image001.png@01D0E0A0.F511D480]
Any pointers are appreciated.
Regards
Cameron _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://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/946905bae76e44468c839c7f6e882b43.jpg?s=120&d=mm&r=g)
Thanks Adam,
It appears to already be using the php backend to send emails:
E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']):
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:20 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray cameron@techpath.com.au wrote: Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech….. E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......mailto:monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... mailto:alert-infrastructure@tech......%20 "; $config['alerts']['email']['from'] = "monitoring@tech.....mailto:monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....mailto:monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01…….; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image001.png@01D0E0A2.58584CD0]
Any pointers are appreciated.
Regards
Cameron _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Ahh indeed, that's true. You never actually tell it to use SMTP, even though you set the SMTP options!
In that case, make sure the local mail relay is installed and configured (probably just apt-get install postfix) and check /var/log/mail.log
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:28:51 pm Cameron Murray cameron@techpath.com.au wrote:
Thanks Adam,
It appears to already be using the php backend to send emails:
E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']):
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:20 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray cameron@techpath.com.au wrote: Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech….. E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......mailto:monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... mailto:alert-infrastructure@tech......%20 "; $config['alerts']['email']['from'] = "monitoring@tech.....mailto:monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....mailto:monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01…….; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image001.png@01D0E0A2.58584CD0]
Any pointers are appreciated.
Regards
Cameron _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://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/946905bae76e44468c839c7f6e882b43.jpg?s=120&d=mm&r=g)
Adam,
Thanks yes – When I test with the ./test_mail.php -h bne-b1-lvl4-r1-apc2 I receive the email correctly however none of the alerts come through.
Regards,
Cameron Murray Remote Support Engineer How am I doing? Please click herehttp://www.techpath.com.au/contact-us/feedback/ to rate my work. [cid:image001.png@01D0E0A4.D3533B50]http://www.techpath.com.au/
P 1300 033 300 F 07 3809 3999 E cameron@techpath.com.au
www.techpath.com.auhttp://www.techpath.com.au
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118 Formerly Betta Computer Services Pty Ltd [Facebook]http://www.facebook.com/techpathau
[Twitter]http://twitter.com/techpathau
[LinkedIn]http://www.linkedin.com/company/techpathau
Note: This message may contain privileged and confidential information that is the property of the intended recipient. The information herein is intended only for use of the addressee. If you are not the intended recipient, then you are requested to return e-mail to TechPath Pty Ltd and destroy any copies made. Copying or disseminating any of this message is prohibited. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of TechPath Pty Ltd. From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:41 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Ahh indeed, that's true. You never actually tell it to use SMTP, even though you set the SMTP options!
In that case, make sure the local mail relay is installed and configured (probably just apt-get install postfix) and check /var/log/mail.log
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:28:51 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Thanks Adam,
It appears to already be using the php backend to send emails:
E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']):
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:20 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech….. E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......mailto:monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... mailto:alert-infrastructure@tech......%20 "; $config['alerts']['email']['from'] = "monitoring@tech.....mailto:monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....mailto:monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01…….; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image005.png@01D0E0A4.D3533B50]
Any pointers are appreciated.
Regards
Cameron _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Does the alert log show them as being sent?
They will only be sent when they first occur, so you'll need to have new ones for any new alerts to be sent.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:46:40 pm Cameron Murray cameron@techpath.com.au wrote:
Adam,
Thanks yes – When I test with the ./test_mail.php -h bne-b1-lvl4-r1-apc2 I receive the email correctly however none of the alerts come through.
Regards,
Cameron Murray Remote Support Engineer How am I doing? Please click herehttp://www.techpath.com.au/contact-us/feedback/ to rate my work. [cid:image001.png@01D0E0A4.D3533B50]http://www.techpath.com.au/
P 1300 033 300 F 07 3809 3999 E cameron@techpath.com.au
www.techpath.com.auhttp://www.techpath.com.au
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118 Formerly Betta Computer Services Pty Ltd [Facebook]http://www.facebook.com/techpathau
[Twitter]http://twitter.com/techpathau
[LinkedIn]http://www.linkedin.com/company/techpathau
Note: This message may contain privileged and confidential information that is the property of the intended recipient. The information herein is intended only for use of the addressee. If you are not the intended recipient, then you are requested to return e-mail to TechPath Pty Ltd and destroy any copies made. Copying or disseminating any of this message is prohibited. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of TechPath Pty Ltd. From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:41 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Ahh indeed, that's true. You never actually tell it to use SMTP, even though you set the SMTP options!
In that case, make sure the local mail relay is installed and configured (probably just apt-get install postfix) and check /var/log/mail.log
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:28:51 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Thanks Adam,
It appears to already be using the php backend to send emails:
E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']):
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:20 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray <cameron@techpath.com.aumailto:cameron@techpath.com.au> wrote: Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2 Observium 0.15.8.6920 Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7) o Apache 2.2.15 o PHP 5.5.28 o Python 2.6.6 o MySQL 5.1.73 (extension: mysqli 5.1.73) o SNMP NET-SNMP 5.5 o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8 o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC o PHP +10:00 o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech….. E-mails ENABLED globally ($config['email']['enable']) E-mails use PHP-builtin MAIL backend ($config['email']['backend']) E-mails send only to default email ($config['email']['default_only']) E-mails use these default recipient(s) ($config['email']['default']): alert-infrastructure@tech...... E-mails send from ($config['email']['from']): monitoring@tech...... E-mails send to recipients based on default recipient from config and/or device sysContact. Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s): alert-infrastructure@tech...... EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer $config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id $config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "monitoring@tech......mailto:monitoring@tech......"; $config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = "alert-infrastructure@tech...... mailto:alert-infrastructure@tech......%20 "; $config['alerts']['email']['from'] = "monitoring@tech.....mailto:monitoring@tech....."; $config['email']['default_only'] = TRUE;
$config['email']['from'] = "monitoring@tech.....mailto:monitoring@tech.....";
$config['email']['smtp_host'] = 'mx01…….; $config['email']['smtp_port'] = 587; $config['email']['smtp_timeout'] = 10; $config['email']['smtp_secure'] = tls; $config['email']['smtp_auth'] = FALSE;
Contact List configuration:
[cid:image005.png@01D0E0A4.D3533B50]
Any pointers are appreciated.
Regards
Cameron _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observiumhttp://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/e09e8d50abe324c7d3eb1ba90cfde711.jpg?s=120&d=mm&r=g)
Hi,
I can confirm that installing postfix and hardcode the reciving mailbox in config.php works. But it doesn't use the contacts im making in the observium gui which seems to be the same issue Cameron has.
the funny thing is my spam filter blocks the email, well to be expected, but it shows it comming from root@observium even though my config.php says:
// Set up a default alerter (email to a single address) $config['email']['default'] = "it@dingit.dk"; $config['email']['from'] = "Observium observium@dingit.dk"; $config['email']['default_only'] = TRUE;
any ideas?
Also i couldn't find any documentation on how to set up email service in observium. I figured it out from Adams and Cameron conversation on the mail list.
Fra: "Adam Armstrong" adama@memetic.org Til: "Observium Network Observation System" observium@observium.org Sendt: torsdag, 27. august 2015 01:30:22 Emne: Re: [Observium] Alert Emails Not sending
Does the alert log show them as being sent?
They will only be sent when they first occur, so you'll need to have new ones for any new alerts to be sent.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:46:40 pm Cameron Murray cameron@techpath.com.au wrote:
Adam,
Thanks yes – When I test with the ./test_mail.php -h bne-b1-lvl4-r1-apc2 I receive the email correctly however none of the alerts come through.
Regards,
Cameron Murray Remote Support Engineer
How am I doing? Please click here to rate my work.
P 1300 033 300 F 07 3809 3999 E cameron@techpath.com.au
www.techpath.com.au
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118 Formerly Betta Computer Services Pty Ltd
Note: This message may contain privileged and confidential information that is the property of the intended recipient. The information herein is intended only for use of the addressee. If you are not the intended recipient, then you are requested to return e-mail to TechPath Pty Ltd and destroy any copies made. Copying or disseminating any of this message is prohibited. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of TechPath Pty Ltd.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:41 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Ahh indeed, that's true. You never actually tell it to use SMTP, even though you set the SMTP options!
In that case, make sure the local mail relay is installed and configured (probably just apt-get install postfix) and check /var/log/mail.log
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:28:51 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Thanks Adam,
It appears to already be using the php backend to send emails:
E-mails ENABLED globally ($config['email']['enable'])
E-mails use PHP-builtin MAIL backend ($config['email']['backend'])
E-mails send only to default email ($config['email']['default_only'])
E-mails use these default recipient(s) ($config['email']['default']):
Regards,
Cameron Murray
From: observium [ mailto:observium-bounces@observium.org ] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:20 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [ mailto:observium-bounces@observium.org ] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2
Observium 0.15.8.6920
Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7)
o Apache 2.2.15
o PHP 5.5.28
o Python 2.6.6
o MySQL 5.1.73 (extension: mysqli 5.1.73)
o SNMP NET-SNMP 5.5
o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8
o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC
o PHP +10:00
o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech…..
E-mails ENABLED globally ($config['email']['enable'])
E-mails use PHP-builtin MAIL backend ($config['email']['backend'])
E-mails send only to default email ($config['email']['default_only'])
E-mails use these default recipient(s) ($config['email']['default']):
alert-infrastructure@tech......
E-mails send from ($config['email']['from']):
monitoring@tech......
E-mails send to recipients based on default recipient from config and/or device sysContact.
Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s):
alert-infrastructure@tech......
EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter
$config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer
$config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id
$config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change";
$config['alerts']['alerter']['default']['type'] = "email";
$config['alerts']['alerter']['default']['contact'] = " monitoring@tech...... ";
$config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = " alert-infrastructure@tech...... ";
$config['alerts']['email']['from'] = " monitoring@tech..... ";
$config['email']['default_only'] = TRUE;
$config['email']['from'] = " monitoring@tech..... ";
$config['email']['smtp_host'] = 'mx01…….;
$config['email']['smtp_port'] = 587;
$config['email']['smtp_timeout'] = 10;
$config['email']['smtp_secure'] = tls;
$config['email']['smtp_auth'] = FALSE;
Contact List configuration:
Any pointers are appreciated.
Regards
Cameron
_______________________________________________ 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 BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/e09e8d50abe324c7d3eb1ba90cfde711.jpg?s=120&d=mm&r=g)
It seems my problem may stray from Camerons so i decided to make my own mail with the issues im facing.
im thinking my problem with from mail being root@observium01 is because I have not configured a domain and postfix creates a default from sender called root@hostname.domain and since i have no domian that becomes root@observium01. But shouldn't it be using the from mail in the config.php?
Fra: "Casper Allerslev Jensen" casper@dingit.dk Til: "Observium Network Observation System" observium@observium.org Sendt: torsdag, 27. august 2015 07:05:13 Emne: Re: [Observium] Alert Emails Not sending
Hi,
I can confirm that installing postfix and hardcode the reciving mailbox in config.php works. But it doesn't use the contacts im making in the observium gui which seems to be the same issue Cameron has.
the funny thing is my spam filter blocks the email, well to be expected, but it shows it comming from root@observium even though my config.php says:
// Set up a default alerter (email to a single address) $config['email']['default'] = "it@dingit.dk"; $config['email']['from'] = "Observium observium@dingit.dk"; $config['email']['default_only'] = TRUE;
any ideas?
Also i couldn't find any documentation on how to set up email service in observium. I figured it out from Adams and Cameron conversation on the mail list.
Fra: "Adam Armstrong" adama@memetic.org Til: "Observium Network Observation System" observium@observium.org Sendt: torsdag, 27. august 2015 01:30:22 Emne: Re: [Observium] Alert Emails Not sending
Does the alert log show them as being sent?
They will only be sent when they first occur, so you'll need to have new ones for any new alerts to be sent.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:46:40 pm Cameron Murray cameron@techpath.com.au wrote:
Adam,
Thanks yes – When I test with the ./test_mail.php -h bne-b1-lvl4-r1-apc2 I receive the email correctly however none of the alerts come through.
Regards,
Cameron Murray Remote Support Engineer
How am I doing? Please click here to rate my work.
P 1300 033 300 F 07 3809 3999 E cameron@techpath.com.au
www.techpath.com.au
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118 Formerly Betta Computer Services Pty Ltd
Note: This message may contain privileged and confidential information that is the property of the intended recipient. The information herein is intended only for use of the addressee. If you are not the intended recipient, then you are requested to return e-mail to TechPath Pty Ltd and destroy any copies made. Copying or disseminating any of this message is prohibited. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of TechPath Pty Ltd.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:41 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Ahh indeed, that's true. You never actually tell it to use SMTP, even though you set the SMTP options!
In that case, make sure the local mail relay is installed and configured (probably just apt-get install postfix) and check /var/log/mail.log
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:28:51 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Thanks Adam,
It appears to already be using the php backend to send emails:
E-mails ENABLED globally ($config['email']['enable'])
E-mails use PHP-builtin MAIL backend ($config['email']['backend'])
E-mails send only to default email ($config['email']['default_only'])
E-mails use these default recipient(s) ($config['email']['default']):
Regards,
Cameron Murray
From: observium [ mailto:observium-bounces@observium.org ] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:20 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [ mailto:observium-bounces@observium.org ] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2
Observium 0.15.8.6920
Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7)
o Apache 2.2.15
o PHP 5.5.28
o Python 2.6.6
o MySQL 5.1.73 (extension: mysqli 5.1.73)
o SNMP NET-SNMP 5.5
o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8
o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC
o PHP +10:00
o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech…..
E-mails ENABLED globally ($config['email']['enable'])
E-mails use PHP-builtin MAIL backend ($config['email']['backend'])
E-mails send only to default email ($config['email']['default_only'])
E-mails use these default recipient(s) ($config['email']['default']):
alert-infrastructure@tech......
E-mails send from ($config['email']['from']):
monitoring@tech......
E-mails send to recipients based on default recipient from config and/or device sysContact.
Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s):
alert-infrastructure@tech......
EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter
$config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer
$config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id
$config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change";
$config['alerts']['alerter']['default']['type'] = "email";
$config['alerts']['alerter']['default']['contact'] = " monitoring@tech...... ";
$config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = " alert-infrastructure@tech...... ";
$config['alerts']['email']['from'] = " monitoring@tech..... ";
$config['email']['default_only'] = TRUE;
$config['email']['from'] = " monitoring@tech..... ";
$config['email']['smtp_host'] = 'mx01…….;
$config['email']['smtp_port'] = 587;
$config['email']['smtp_timeout'] = 10;
$config['email']['smtp_secure'] = tls;
$config['email']['smtp_auth'] = FALSE;
Contact List configuration:
Any pointers are appreciated.
Regards
Cameron
_______________________________________________ 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 BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
BQ_END
_______________________________________________ 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/e09e8d50abe324c7d3eb1ba90cfde711.jpg?s=120&d=mm&r=g)
apparently i was wrong...
Aug 27 08:45:05 observium01 postfix/qmgr[7601]: A6D28A01BB: from=root@observium01, size=15174, nrcpt=1 (queue active) Aug 27 08:45:06 observium01 postfix/smtp[8635]: A6D28A01BB: to=it@dingit.dk
it still trying root@observium01 as a from address.. i don't get how this is suppose to work?
any help or link to documentation would be helpfull
Fra: "Casper Allerslev Jensen" casper@dingit.dk Til: "Observium Network Observation System" observium@observium.org Sendt: torsdag, 27. august 2015 08:10:25 Emne: Re: [Observium] Alert Emails Not sending postfix installed
It seems my problem may stray from Camerons so i decided to make my own mail with the issues im facing.
im thinking my problem with from mail being root@observium01 is because I have not configured a domain and postfix creates a default from sender called root@hostname.domain and since i have no domian that becomes root@observium01. But shouldn't it be using the from mail in the config.php?
Fra: "Casper Allerslev Jensen" casper@dingit.dk Til: "Observium Network Observation System" observium@observium.org Sendt: torsdag, 27. august 2015 07:05:13 Emne: Re: [Observium] Alert Emails Not sending
Hi,
I can confirm that installing postfix and hardcode the reciving mailbox in config.php works. But it doesn't use the contacts im making in the observium gui which seems to be the same issue Cameron has.
the funny thing is my spam filter blocks the email, well to be expected, but it shows it comming from root@observium even though my config.php says:
// Set up a default alerter (email to a single address) $config['email']['default'] = "it@dingit.dk"; $config['email']['from'] = "Observium observium@dingit.dk"; $config['email']['default_only'] = TRUE;
any ideas?
Also i couldn't find any documentation on how to set up email service in observium. I figured it out from Adams and Cameron conversation on the mail list.
Fra: "Adam Armstrong" adama@memetic.org Til: "Observium Network Observation System" observium@observium.org Sendt: torsdag, 27. august 2015 01:30:22 Emne: Re: [Observium] Alert Emails Not sending
Does the alert log show them as being sent?
They will only be sent when they first occur, so you'll need to have new ones for any new alerts to be sent.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:46:40 pm Cameron Murray cameron@techpath.com.au wrote:
Adam,
Thanks yes – When I test with the ./test_mail.php -h bne-b1-lvl4-r1-apc2 I receive the email correctly however none of the alerts come through.
Regards,
Cameron Murray Remote Support Engineer
How am I doing? Please click here to rate my work.
P 1300 033 300 F 07 3809 3999 E cameron@techpath.com.au
www.techpath.com.au
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118 Formerly Betta Computer Services Pty Ltd
Note: This message may contain privileged and confidential information that is the property of the intended recipient. The information herein is intended only for use of the addressee. If you are not the intended recipient, then you are requested to return e-mail to TechPath Pty Ltd and destroy any copies made. Copying or disseminating any of this message is prohibited. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of TechPath Pty Ltd.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:41 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Ahh indeed, that's true. You never actually tell it to use SMTP, even though you set the SMTP options!
In that case, make sure the local mail relay is installed and configured (probably just apt-get install postfix) and check /var/log/mail.log
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:28:51 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Thanks Adam,
It appears to already be using the php backend to send emails:
E-mails ENABLED globally ($config['email']['enable'])
E-mails use PHP-builtin MAIL backend ($config['email']['backend'])
E-mails send only to default email ($config['email']['default_only'])
E-mails use these default recipient(s) ($config['email']['default']):
Regards,
Cameron Murray
From: observium [ mailto:observium-bounces@observium.org ] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:20 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Remove all of the SMTP configutation and just let php send the mail using the local MTA itself.
You'll need to make sure one is installed, but its fairly straightforward with Debian/Ubuntu.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 11:18:57 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Adam,
Can you recommend a working configuration?
Regards,
Cameron Murray
From: observium [ mailto:observium-bounces@observium.org ] On Behalf Of Adam Armstrong Sent: Thursday, 27 August 2015 8:08 AM To: Observium Network Observation System Subject: Re: [Observium] Alert Emails Not sending
Don't use remote SMTP It never works properly.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 26 August 2015 10:47:42 pm Cameron Murray < cameron@techpath.com.au > wrote: BQ_BEGIN
Guys,
Only new to Observium and it’s a great product!
Setting up the email alerts and testing from the cli works perfectly however automated alerts configured via the interface do not send. The alerts trigger in the interface and the contact groups are configured.
Test Email from cli:
[root@obs observium]# ./test_mail.php -h bne-b1-lvl4-r1-apc2
Observium 0.15.8.6920
Test E-mail Configuration
##### Software versions #####
o OS Linux 2.6.32-504.23.4.el6.x86_64 [amd64] (CentOS 6.7)
o Apache 2.2.15
o PHP 5.5.28
o Python 2.6.6
o MySQL 5.1.73 (extension: mysqli 5.1.73)
o SNMP NET-SNMP 5.5
o RRDtool 1.3.8
##### Charset info #####
o PHP UTF-8
o MySQL utf8
##### Timezones info #####
o Date Wednesday, 26-Aug-15 21:43:01 UTC
o PHP +10:00
o MySQL +10:00
See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings
My Hostname: obs.tech…..
E-mails ENABLED globally ($config['email']['enable'])
E-mails use PHP-builtin MAIL backend ($config['email']['backend'])
E-mails send only to default email ($config['email']['default_only'])
E-mails use these default recipient(s) ($config['email']['default']):
alert-infrastructure@tech......
E-mails send from ($config['email']['from']):
monitoring@tech......
E-mails send to recipients based on default recipient from config and/or device sysContact.
Try send test notification for bne-b1-lvl4-r1-apc2 to these email(s):
alert-infrastructure@tech......
EMAILINGNotification for bne-b1-lvl4-r1-apc2 SENT.
Config.php > Email Config
// Enable alerter
$config['poller-wrapper']['alerter'] = TRUE;
$config['billing']['customer_autoadd'] = 0; # Enable Auto-add bill per customer
$config['billing']['circuit_autoadd'] = 0; # Enable Auto-add bill per circuit_id
$config['billing']['bill_autoadd'] = 0; # Enable Auto-add bill per bill_id
$config['email']['sendmail_path'] = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['descr'] = "System Alert Change";
$config['alerts']['alerter']['default']['type'] = "email";
$config['alerts']['alerter']['default']['contact'] = " monitoring@tech...... ";
$config['alerts']['alerter']['default']['enable'] = TRUE;
$config['email']['default'] = " alert-infrastructure@tech...... ";
$config['alerts']['email']['from'] = " monitoring@tech..... ";
$config['email']['default_only'] = TRUE;
$config['email']['from'] = " monitoring@tech..... ";
$config['email']['smtp_host'] = 'mx01…….;
$config['email']['smtp_port'] = 587;
$config['email']['smtp_timeout'] = 10;
$config['email']['smtp_secure'] = tls;
$config['email']['smtp_auth'] = FALSE;
Contact List configuration:
Any pointers are appreciated.
Regards
Cameron
_______________________________________________ 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 BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
BQ_END
_______________________________________________ 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
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Adam Armstrong
-
Cameron Murray
-
Casper Allerslev Jensen