Hi, Observiuminists :)

 by first, what version you use (CE, Pro)?

I remember some time ago, probably in CE, used an old format for email config,
with many nested keys, like:
$config['alerts']['alerter']['default'] and similar.
This options obsolete and not supported!

Full list actually supported email config options is (see in includes/default.inc.php):

// Mailer backend Settings
$config['email']['enable']          = TRUE;                 // Enable/Disable email globally
$config['email']['from']            = NULL;                 // Mail from. Default: "Observium" <observium@`hostname`>
$config['email']['default']         = NULL;                 // Default alert recipient
$config['email']['default_only']    = FALSE;                // Only use default recipient (all alerts send to default recipient)
$config['email']['backend']         = 'mail';               // Mail backend. Allowed: "mail" (PHP's built-in), "sendmail", "smtp".
// sendmail backend specific options
$config['email']['sendmail_path']   = '/usr/sbin/sendmail'; // The location of the sendmail program.
// smtp backend specific options
$config['email']['smtp_host']       = 'localhost';          // Outgoing SMTP server name.
$config['email']['smtp_port']       = 25;                   // The port to connect.
$config['email']['smtp_timeout']    = 10;                   // SMTP connection timeout in seconds.
$config['email']['smtp_secure']     = NULL;                 // Enable encryption. Use 'tls' or 'ssl'
$config['email']['smtp_auth']       = FALSE;                // Whether or not to use SMTP authentication.
$config['email']['smtp_username']   = NULL;                 // SMTP username.
$config['email']['smtp_password']   = NULL;                 // Password for SMTP authentication.

these options and minimal examples I will soon write to the wiki

BUT, some old config options still works (but also obsolete), like:
$config['alerts']['email']['default']

Minimal email config for send all alerts to one (or multiple by commas) default recipient(s) is:
$config['email']['default']         = 'your@domain.com';
$config['email']['default_only']    = TRUE;
that use php built-in mail function for send mails.

For check your options and correct sending emails use script (within main observium dirrectory):
./test_mail.php

it will tell if it is found something problem sent mails.
If emails is still not able to send, try run this script with -d options and send script out here.

On 10.09.2014 03:43, Adam Armstrong wrote:
Hmm. Is this handled by us, or by the mail server?

Mike? :)

Adam.

Sent with AquaMail for Android
http://www.aqua-mail.com


On 10 September 2014 00:29:11 "Pedersen, Sean" <spedersen@io.com> wrote:

You can have multiple addresses separated by commas.

$config['alerts']['email']['default'] = "aaron@acme.com,bob@acme.com,chris@acme.com";

-----Original Message-----
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Zhenhui Liang
Sent: Tuesday, September 09, 2014 4:18 PM
To: Observium Network Observation System
Subject: Re: [Observium] email alerts

No problem at all. Really nice product.

Btw do we support multiple recipient yet? Or do I have to use a mail list for that?

Sent from my iPhone

> On Sep 9, 2014, at 4:11 PM, "Josh Hopper" <joshhopper@protectplus.com> wrote:
>
> Apologies. You are correct.
>
> --
> Sincerely,
> Joshua Hopper, A+ CE
> Network Administrator
>
>             420 3rd Ave NW Hickory NC 28601
> Office: 828-449-1839x2160 | Cell: 828-855-7565
>
>
> -----Original Message-----
> From: observium [mailto:observium-bounces@observium.org] On Behalf Of
> Zhenhui Liang
> Sent: Tuesday, September 09, 2014 6:54 PM
> To: Observium Network Observation System
> Subject: Re: [Observium] email alerts
>
> I really appreciate you guys awesome work. But just want to point out that the format in your example IS the one I used and failed and different from Adam just sent.
>
> $config['alerts']['alerter']['default']['contact'] =
> "you@yourdomain.org”;
>
>
> Vs
>
> $config['alerts']['email']['default']      = "adama@memetic.org”;
>
>
>
> Seems the “right” syntax is a lot neater.
>
>> On 9/9/14, 3:46 PM, "Josh Hopper" <joshhopper@protectplus.com> wrote:
>>
>> They are still working on the documentation on their site. There are
>> so many changes that I am sure it is hard to keep up.
>> However, this IS recorded already in the default file you created
>> when you first installed Observium (paid or unpaid version).
>>
>> administrator@network-monitoring:~$ cat
>> /opt/observium/config.php.default <?php
>>
>> ## Have a look in includes/defaults.inc.php for examples of settings
>> you can set here. DO NOT EDIT defaults.inc.php!
>>
>> // Database config
>> $config['db_host'] = 'localhost';
>> $config['db_user'] = 'USERNAME';
>> $config['db_pass'] = 'PASSWORD';
>> $config['db_name'] = 'observium';
>>
>> // Location
>> $config['install_dir']  = "/opt/observium";
>>
>> // Thie should *only* be set if you want to *force* a particular
>> hostname/port // It will prevent the web interface being usable form
>> any other hostname
>> #$config['base_url']        = "http://observium.company.com";
>>
>> // Default community list to use when adding/discovering
>> $config['snmp']['community'] = array("public");
>>
>> // Authentication Model
>> $config['auth_mechanism'] = "mysql";    // default, other options: ldap,
>> http-auth, please see documentation for config help
>>
>> // Enable alerter
>> // $config['poller-wrapper']['alerter']       = TRUE;
>>
>> // Set up a default alerter (email to a single address)
>> $config['alerts']['alerter']['default']['descr']   = "Default Email
>> Alert";
>> $config['alerts']['alerter']['default']['type']    = "email";
>> $config['alerts']['alerter']['default']['contact'] =
>> "you@yourdomain.org";
>> $config['alerts']['alerter']['default']['enable']
>> = TRUE;
>>
>> // End config.php
>> administrator@network-monitoring:~$
>>
>> --
>> Sincerely,
>> Joshua Hopper, A+ CE
>> Network Administrator
>>
>>           420 3rd Ave NW Hickory NC 28601
>> Office: 828-449-1839x2160 | Cell: 828-855-7565
>>
>> -----Original Message-----
>> From: observium [mailto:observium-bounces@observium.org] On Behalf Of
>> Zhenhui Liang
>> Sent: Tuesday, September 09, 2014 6:43 PM
>> To: Observium Network Observation System
>> Subject: Re: [Observium] email alerts
>>
>> Thank you so much :P this works. But Š not in any documentations :P
>>
>> Versions I used were directly from config.php.default with my
>> modification. And some from some older version¹s example and from
>> this email list¹s old threadsŠ
>>
>> But with these 3 lines, it worked perfectly!
>>
>>> On 9/9/14, 3:22 PM, "Adam Armstrong" <adama@memetic.org> wrote:
>>>
>>> Hi,
>>>
>>> Assuming your system mail works, this is all you need :
>>>
>>> $config['alerts']['email']['default']      = "adama@memetic.org";
>>> $config['alerts']['email']['from']         = "Observium Dev
>>> <adama@memetic.org>";
>>> $config['alerts']['email']['default_only'] = TRUE;
>>>
>>> adam.
>>>
>>>> On 2014-09-09 23:16, Zhenhui Liang wrote:
>>>> Hi, All
>>>>
>>>> I tired many ways to make email working. But seems to be out of luck.
>>>>
>>>> From linux command line, mail prove to be work on either local
>>>> sendmail/postfix or via external smtp server. Php test email works
>>>> either way as well. But observium seems not able to generate any
>>>> alert email. A tcpdump session would not capture any email data as
>>>> well when my configured alert checker fires off an alert.
>>>>
>>>>
>>>> Seems from config.php, I need to configure
>>>> $config['alerts']['alerter']['default']['descr']   = "Observium Email
>>>> Alert";
>>>> $config['alerts']['alerter']['default']['type']    = "email";
>>>> $config['alerts']['alerter']['default']['contact'] =
>>>> ³zliang@xxxx.com";
>>>> $config['alerts']['alerter']['default']['enable']
>>>> = TRUE;
>>>>
>>>> $config['email_from'] = ³observium@xxxxxx.com";
>>>> $config['email_backend'] = "mail"; $config['email_smtp_host'] =
>>>> 'localhost¹;
>>>>
>>>>
>>>> Also tried
>>>>
>>>> $config['email']['from'] = ³observium@xxx.com";
>>>> $config['email']['backend'] = "mail"; $config['email']['smtp_host']
>>>> = 'localhost'; $config['email']['default_only'] = 'true';
>>>> $config['email']['smtp_secure'] = 'false¹;
>>>>
>>>>
>>>> And
>>>>
>>>> $config['email']['from'] = ³observium@mydomain.com";
>>>> $config['email']['backend'] = ³smtp"; $config['email']['smtp_host']
>>>> = ¹smtp.mydomain.com'; $config['email']['default_only'] = 'true';
>>>> $config['email']['smtp_secure'] = 'false¹;
>>>>
>>>>
>>>>
>>>> None of those combination of configs works.
>>>>
>>>> It looks like we are deprecate old format of $config['email_from¹]
>>>> to $config[Œemail¹]['from¹] style? With later format, from global
>>>> settings, I could see my change taking effect. But using the old
>>>> format, some values got updated, some not. But nevertheless, email
>>>> were never sent out.
>>>>
>>>> Please advise.
>>>>
>>>> I am using code version of
>>>> Observium       0.14.9.5798
>>>> Apache  2.2.15 (CentOS)
>>>> PHP     5.3.3
>>>> MySQL   5.1.66
>>>> SNMP    NET-SNMP version: 5.5
>>>> RRDtool 1.3.8
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>
>> Protect Plus Air Holdings, LLC and Affiliates, Protect Plus, LLC and
>> Affiliates, Imagine One Resources, LLC and Affiliates, Protect Plus
>> Surfaces, LLC and Affiliates Confidentiality Notice: This e-mail is
>> intended only for the addressee named above. It contains information
>> that is privileged, confidential or otherwise protected from use and
>> disclosure. If you are not the intended recipient, you are hereby
>> notified that any review, disclosure, copying, or dissemination of
>> this transmission, or taking of any action in reliance on its
>> contents, or other use is strictly prohibited. If you have received
>> this transmission in error, please reply to the sender listed above
>> immediately and permanently delete this message from your inbox.
>> Thank you for your cooperation.
>>
>> _______________________________________________
>> 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
>
> Protect Plus Air Holdings, LLC and Affiliates, Protect Plus, LLC and Affiliates, Imagine One Resources, LLC and Affiliates, Protect Plus Surfaces, LLC and Affiliates Confidentiality Notice: This e-mail is intended only for the addressee named above. It contains information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. Thank you for your cooperation.
>
> _______________________________________________
> 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


Founded in 2007, IO is a worldwide leader in software defined data center technology, services and solutions that enable businesses and governments to intelligently control their information.

The communication contained in this e-mail is confidential and is intended only for the named recipient(s) and may contain information that is privileged, proprietary, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. Please immediately notify the sender of the error, and delete this communication including any attached files from your system. Thank you for your cooperation.
_______________________________________________
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


-- 
Mike Stupalov
http://observium.org