![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
On 08.09.2014 18:03, Darian Jimenez wrote:
Mike,
I tried but it keeps saying "NOT ended"
That because you not have any recipient for these device. You can set snmp sysContact on specific device or default recipient for all devices: $config['email']['default'] than try again.
Also if you want sent all alerts only to one default recipient, set $config['email']['default_only'] to TRUE.
below is the debug output
root@cacti:/opt/observium# ./test_mail.php -h fwtec.sup.xxxxx.local -d CMD[/bin/hostname -f] RUNTIME[0.0043s] OUTPUT[ cacti ] Observium v0.14.9.5792 Test E-mail Configuration
My Hostname: cacti E-mails ENABLED globally E-mails use SMTP backend smtp host: [xxxxx.mail.protection.outook.com http://xxxxx.mail.protection.outook.com] smtp port: [25] smtp timeout: [10] smtp auth: [FALSE] E-mails send from: "Observium" observium@xxxxxxs
SQL[SELECT * FROM `devices` WHERE `hostname` LIKE 'fwtec.sup.xxxxxx.local']
SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '16' AND `attrib_type` = 'override_sysContact_bool']
SQL[SELECT `contact_descr`, `contact_endpoint` FROM `alert_contacts` WHERE `contact_disabled` = 0 AND `contact_method` = 'email' AND `contact_id` IN (SELECT `alert_contact_id` FROM `alert_contacts_assoc` WHERE `alert_checker_id` = '');] Try send test notification for fwtec.sup.xxxx.local to these email(s):
SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '16' AND `attrib_type` = 'disable_notify']
SQL[SELECT DISTINCT `contact_method` FROM `alert_contacts` WHERE `contact_disabled` = 0 AND `contact_id` IN (SELECT `alert_contact_id` FROM `alert_contacts_assoc` WHERE `alert_checker_id` = '');]
SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '16' AND `attrib_type` = 'override_sysContact_bool']
SQL[SELECT `contact_descr`, `contact_endpoint` FROM `alert_contacts` WHERE `contact_disabled` = 0 AND `contact_method` = 'email' AND `contact_id` IN (SELECT `alert_contact_id` FROM `alert_contacts_assoc` WHERE `alert_checker_id` = '');] Notification for fwtec.sup.xxxx.local NOT sended.
On Mon, Sep 8, 2014 at 2:26 AM, Mike Stupalov <mike@observium.org mailto:mike@observium.org> wrote:
Hi Darian, please use updated (latest svn) version. Run ./test_mail.php -h fwtec.sup.domain.local and if anyway mail not sended, run same script with -d option and send me full output from this script. SMTP backend should work properly. On Fri, Sep 5, 2014 at 1:48 AM, Darian Jimenez <darian929@gmail.com <mailto:darian929@gmail.com>> wrote: Hello, I was able to get some alert checks going but email doesn't seem to be working. When I try the test_mail.php script it eventually times out giving me the following. ./test_mail.php -h fwtec.sup.domain.local Sending test notification for fwtec.sup.domain.local...Mailer Error: Failed to connect to myemailserverl.protection.outook.com:25 <http://myemailserverl.protection.outook.com:25> [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )] done. my config.php has the following for email settings. $config['alerts']['email']['default'] = "xxx@mydomain"; $config['email_from'] = "Observium <observium@mydomain.com <mailto:observium@mydomain.com>>"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = 'mymaildoman.protection.outook.com <http://mymaildoman.protection.outook.com>'; $config['email_smtp_port'] = 25; $config['alerts']['email']['enable'] = TRUE; $config['email_smtp_auth'] = TRUE; $config['email_smtp_username'] = 'xxx@mydomain'; $config['email_smtp_password'] = 'xxxx'; $config['email_smtp_timeout'] = 10; I am able to successfully telnet to my email server on port 25 but can't seem to send. What am i Missing? _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium -- Mike Stupalov http://observium.org/ _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium