Email setup in Config.php
![](https://secure.gravatar.com/avatar/81a860a69ef1a0feb4f21bf9bdfa82bd.jpg?s=120&d=mm&r=g)
Hi,
I have been using Observium for about 1 year successfully and recently, approximately 3mth ago, I subscribed to the paid version, upgraded via SVN and copied my config.php. I do not have working email alerts at the moment and would like to know what needs to be changed to get this working again. Below is a print of my config.php file. Please advise me as to what needs to be changed to get email working again.
Config.php:
<?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'] = "myuesrname"; $config['db_pass'] = "mypassword"; $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)
// SNMP Settings $config['snmp']['timeout'] = 1000; # timeout in ms $config['snmp']['retries'] = 6; # how many times to retry the query
//Ping Settings $config['ping']['timeout'] = 2000; # timeout in ms $config['ping']['retries'] = 10; # how many times to retry the query
//Alert Settings $config['alerts']['email']['default'] = "myemail@domain.co.nz"; $config['alerts']['email']['from'] = "observium.dev < myeamil@domain.co.nz>"; $config['alerts']['email']['default_only'] = TRUE; $config['alerts']['email']['enable'] = FALSE; $config['uptime_warning'] = "14400"; ## Time to display reboot warning //Poller and Discovery Modules
//Syslog settings $config['enable_syslog'] = 1; $config['syslog_filter'] = array("last message repeated", "Connection from UDP: [", "ipSystemStatsTable node ipSystemStatsOutFragOKs not implemented", "diskio.c: don't know how to handle"); ## Ignore some crappy stuff from SNMP daemon
//Geocoding Configuration
// End config.php
*Observium*0.14.8.5763 *Apache*2.2.22 (Ubuntu) *PHP*5.3.10-1ubuntu3.13 *MySQL*5.5.38-0ubuntu0.12.04.1 *SNMP*NET-SNMP version: 5.4.3 *RRDtool*1.4.7
![](https://secure.gravatar.com/avatar/34cc65eb8c79bb58b9ec903ca6dbefa0.jpg?s=120&d=mm&r=g)
My best guess is that you have not un-commented this field:
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
Do you think that is it?
Tristan
*Tristan Rhodes* Network Engineer Weber State University 801.626.8549
On Sun, Aug 31, 2014 at 2:32 PM, matthew waterman mwaterman1982@gmail.com wrote:
Hi,
I have been using Observium for about 1 year successfully and recently, approximately 3mth ago, I subscribed to the paid version, upgraded via SVN and copied my config.php. I do not have working email alerts at the moment and would like to know what needs to be changed to get this working again. Below is a print of my config.php file. Please advise me as to what needs to be changed to get email working again.
Config.php:
<?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'] = "myuesrname"; $config['db_pass'] = "mypassword"; $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)
// SNMP Settings $config['snmp']['timeout'] = 1000; # timeout in ms $config['snmp']['retries'] = 6; # how many times to retry the query
//Ping Settings $config['ping']['timeout'] = 2000; # timeout in ms $config['ping']['retries'] = 10; # how many times to retry the query
//Alert Settings $config['alerts']['email']['default'] = "myemail@domain.co.nz"; $config['alerts']['email']['from'] = "observium.dev < myeamil@domain.co.nz>"; $config['alerts']['email']['default_only'] = TRUE; $config['alerts']['email']['enable'] = FALSE; $config['uptime_warning'] = "14400"; ## Time to display reboot warning //Poller and Discovery Modules
//Syslog settings $config['enable_syslog'] = 1; $config['syslog_filter'] = array("last message repeated", "Connection from UDP: [", "ipSystemStatsTable node ipSystemStatsOutFragOKs not implemented", "diskio.c: don't know how to handle"); ## Ignore some crappy stuff from SNMP daemon
//Geocoding Configuration
// End config.php
*Observium*0.14.8.5763 *Apache*2.2.22 (Ubuntu) *PHP*5.3.10-1ubuntu3.13 *MySQL*5.5.38-0ubuntu0.12.04.1 *SNMP*NET-SNMP version: 5.4.3 *RRDtool*1.4.7
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/a92c1c6e3c2174599760a0a354ab5a9b.jpg?s=120&d=mm&r=g)
Hi Guys, It could also be the cron entry needs to be updated to use the poller-wrapper instead of calling the poller directly. Check the cron section of the installation relevant to your platform (http://www.observium.org/wiki/Installation) Cheers, Nathan
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tristan Rhodes Sent: Monday, 1 September 2014 6:45 AM To: Observium Network Observation System Subject: Re: [Observium] Email setup in Config.php
My best guess is that you have not un-commented this field:
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
Do you think that is it?
Tristan
Tristan Rhodes Network Engineer Weber State University 801.626.8549
On Sun, Aug 31, 2014 at 2:32 PM, matthew waterman <mwaterman1982@gmail.commailto:mwaterman1982@gmail.com> wrote: Hi, I have been using Observium for about 1 year successfully and recently, approximately 3mth ago, I subscribed to the paid version, upgraded via SVN and copied my config.php. I do not have working email alerts at the moment and would like to know what needs to be changed to get this working again. Below is a print of my config.php file. Please advise me as to what needs to be changed to get email working again. Config.php:
<?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'] = "myuesrname"; $config['db_pass'] = "mypassword"; $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)
// SNMP Settings $config['snmp']['timeout'] = 1000; # timeout in ms $config['snmp']['retries'] = 6; # how many times to retry the query
//Ping Settings $config['ping']['timeout'] = 2000; # timeout in ms $config['ping']['retries'] = 10; # how many times to retry the query
//Alert Settings $config['alerts']['email']['default'] = "myemail@domain.co.nzmailto:myemail@domain.co.nz"; $config['alerts']['email']['from'] = "observium.dev <myeamil@domain.co.nzmailto:myeamil@domain.co.nz>"; $config['alerts']['email']['default_only'] = TRUE; $config['alerts']['email']['enable'] = FALSE; $config['uptime_warning'] = "14400"; ## Time to display reboot warning //Poller and Discovery Modules
//Syslog settings $config['enable_syslog'] = 1; $config['syslog_filter'] = array("last message repeated", "Connection from UDP: [", "ipSystemStatsTable node ipSystemStatsOutFragOKs not implemented", "diskio.c: don't know how to handle"); ## Ignore some crappy stuff from SNMP daemon
//Geocoding Configuration
// End config.php
Observium
0.14.8.5763
Apache
2.2.22 (Ubuntu)
PHP
5.3.10-1ubuntu3.13
MySQL
5.5.38-0ubuntu0.12.04.1
SNMP
NET-SNMP version: 5.4.3
RRDtool
1.4.7
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
matthew waterman
-
Nathan Phelan
-
Tristan Rhodes