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

Facebook

Twitter

LinkedIn

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:

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.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:

 

 

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

_______________________________________________
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