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 [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"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = '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?
Hi,
Don't use the SMTP backend, it seems to be choking on the images in the alert messages at the moment.
adam.
On 2014-09-04 22:48, Darian Jimenez 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 [1] [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"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = 'mymaildoman.protection.outook.com [2]'; $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?
Links:
[1] http://myemailserverl.protection.outook.com:25 [2] http://mymaildoman.protection.outook.com
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Which backend do I use then?
Sent from my iPhone
On Sep 4, 2014, at 6:51 PM, Adam Armstrong adama@memetic.org wrote:
Hi,
Don't use the SMTP backend, it seems to be choking on the images in the alert messages at the moment.
adam.
On 2014-09-04 22:48, Darian Jimenez 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 [1] [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"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = 'mymaildoman.protection.outook.com [2]'; $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? Links:
[1] http://myemailserverl.protection.outook.com:25 [2] http://mymaildoman.protection.outook.com _______________________________________________ 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
Just leave all of that configuration out and set up a mail server on the observium host and it'll send via that.
There are a lot of mails in the list archives showing his few config options you actually need to use!
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 4 September 2014 23:57:18 Darian Jimenez darian929@gmail.com wrote:
Which backend do I use then?
Sent from my iPhone
On Sep 4, 2014, at 6:51 PM, Adam Armstrong adama@memetic.org wrote:
Hi,
Don't use the SMTP backend, it seems to be choking on the images in the
alert messages at the moment.
adam.
On 2014-09-04 22:48, Darian Jimenez 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 [1] [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"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = 'mymaildoman.protection.outook.com [2]'; $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? Links:
[1] http://myemailserverl.protection.outook.com:25 [2] http://mymaildoman.protection.outook.com _______________________________________________ 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
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 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 [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"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = '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 http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Mike,
I tried but it keeps saying "NOT ended"
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] 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 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 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 [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"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = '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 http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov http://observium.org/ _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
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
Thanks Mike,
That's weird because I do have the $config['email']['default'] to send to my default email. When I added the Default_Only part though it seemed to have fixed the problem.
After attempting again it seems I'm running into another issue.
Mailer Error: Failed to connect to xxxx.protection.outook.com:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]
I can connect fine to the server via telnet port 25.
Looking at /var/log/mail.log I see the following which Im unsure where it's picking up smmsp@xxxx.com from and why its trying to send to root.
Sep 8 12:20:01 cacti postfix/pickup[1349]: 2922CA0187: uid=111 from=<smmsp> Sep 8 12:20:01 cacti postfix/cleanup[1756]: 2922CA0187: message-id=20140908172001.2922CA0187@cacti Sep 8 12:20:01 cacti postfix/qmgr[8343]: 2922CA0187: from=smmsp@xxxx, size=658, nrcpt=1 (queue active) Sep 8 12:20:06 cacti postfix/smtp[1758]: 2922CA0187: to=root@xxxxx, orig_to=<root>, relay=xxxxx.protection.outlook.com[207.46.163.247]:25, delay=4.9, delays=0.03/0.04/1.5/3.3, dsn=2.6.0, status=sent (250 2.6.0 20140908172001.2922CA0187@cacti [InternalId=11742440588743, Hostname= CY1PR0401MB0986.namprd04.prod.outlook.com] Queued mail for delivery) Sep 8 12:20:06 cacti postfix/qmgr[8343]: 2922CA0187: removed
On Mon, Sep 8, 2014 at 1:12 PM, Mike Stupalov mike@observium.org wrote:
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] 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 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 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 [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"; $config['email_backend'] = "smtp"; $config['email_smtp_host'] = '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 http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov http://observium.org/ _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalovhttp://observium.org
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
участники (3)
-
Adam Armstrong
-
Darian Jimenez
-
Mike Stupalov