Holy shit. What is all that?
 
In the list archives are the 4 lines you need :
 
$config['alerts']['email']['default']      = "adama@memetic.org";
$config['alerts']['email']['from']         = "Observium Dev <adama@memetic.org>";
$config['alerts']['email']['default_only'] = TRUE;
$config['alerts']['email']['enable']       = FALSE;
Any more than that, and it probably don't work. Don't use SMTP unless you have to, and if your SMTP server is running on localhost, you most certainly do not have to.
 
adam.
 
------ Original Message ------
From: "Jacob Chavez" <jacob.chavez@trafficmanagement.com>
To: Observium@Observium.org
Sent: 11/10/2014 5:20:21 PM
Subject: [Observium] Configuring E-mail Alert Settings
 
Hello, which file should I edit to configure and enable e-mail notifications for when a device is down?

I need assistance configuring the mail backend settings and the alert itself. 

I was working on config.php, but haven't had success with messages being sent while a device is offline. 

Below is what I have thus far.

// 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['poller-wrapper']['alerter']    = TRUE;
$config['alerts']['interval']           = 86400;
$config['alerts']['bgp']['whitelist']   = NULL;
$config['uptime_warning']               ="84600";
$config['email']['enable']              = TRUE;
$config['email']['from']                = NULL;
$config['email']['default']             = "XXXXX@XXXX.com";
$config['email']['default_only']        = FALSE;
$config['email']['backend']             = 'mail';
$config['email']['sendmail_path']       = '/usr/sbin/sendmail';
$config['alerts']['alerter']['default']['enable']  = TRUE;
$config['alerts']['email']['from'] = "Observium <XXXX@XXXXX.com>";
$config['email']['smtp_host']           = 'localhost';
$config['email']['smtp_port']           = 25;
$config['email']['smtp_timeout']        = 10;
$config['email']['smtp_secure']         = NULL;
$config['email']['smtp_auth']           = FALSE;
$config['email']['smtp_username']       = NULL;
$config['email']['smtp_password']       = NULL;


// End config.php



Thanks!

--
Jacob Chavez - IT Support Technician
Traffic Management, Inc.
Toll Free: 800-763-3999
Direct: 562-264-2275
Mobile: 562-537-6205
Fax: 562-424-0266
http://www.trafficmanagement.com
California - Great Lakes - San Jose
California License # 785804, Class C31
  • Traffic Control Services
  • Sales and Rentals
  • Permits and Consulting
  • Engineering
  • Training