Email alerts on subscription version (again)
Hi all,
I've read all the archives and am sure below is right, but on a recent BGP flap from one of our peers we didn't see the email (but got an SNMP Trap from our NMS anyway). Is this all correct or do we have to config *all* alerts and there are no defaults?
./test_mail.php -h xxx.uk.suretec.net Observium v0.14.11.5936 Test E-mail Configuration
My Hostname: xxx.suretec.net E-mails ENABLED globally E-mails use PHP-builtin MAIL backend E-mails send from: "Observium" observium@xxx.suretec.net Try send test notification for xxx.uk.suretec.net to these email(s): noc@suretec.net Notification for xxx.suretec.net SENT. root@xxx:/opt/observium# cat 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'] = "xxx"; $config['db_pass'] = "xxx"; $config['db_name'] = "xxx";
// 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("xxx");
// Authentication Model - move to LDAP once confirmed. $config['auth_mechanism'] = "mysql"; // default, other options: ldap, http-auth, please see documentation for config help
// Enable alerter // $config['poller-wrapper']['alerter'] = TRUE;
//$config['enable_syslog'] = "1";
## Enable email backend settings $config['email']['enable'] = TRUE;
// Needed on subscription product //$config['alerts']['email']['enable'] = FALSE;
$config['enable_billing'] = 1;
// End config.php
Forgot our cron jobs:
# run config differ hourly 0 * * * * rancid /opt/rancid/bin/rancid-run
# clean out config differ logs 50 23 * * * rancid /usr/bin/find /opt/rancid/var/logs -type f -mtime +2 -exec rm {} ;
*/5 * * * * root /opt/observium/poll-billing.php >> /dev/null 2>&1 01 * * * * root /opt/observium/billing-calculate.php >> /dev/null 2>&1
33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1 */5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1 */5 * * * * root /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1
http://observium.org/wiki/Configuration_Options#Email_backend_settings
If you not set config option:
$config['email']['default']
than alerts sent only to address specified in device contact (sysContact).
this contact mail individual for each device
On Sat, Nov 22, 2014 at 2:39 PM, Gavin Henry ghenry@surevoip.co.uk wrote:
Hi all,
I've read all the archives and am sure below is right, but on a recent BGP flap from one of our peers we didn't see the email (but got an SNMP Trap from our NMS anyway). Is this all correct or do we have to config *all* alerts and there are no defaults?
./test_mail.php -h xxx.uk.suretec.net Observium v0.14.11.5936 Test E-mail Configuration
My Hostname: xxx.suretec.net E-mails ENABLED globally E-mails use PHP-builtin MAIL backend E-mails send from: "Observium" observium@xxx.suretec.net Try send test notification for xxx.uk.suretec.net to these email(s): noc@suretec.net Notification for xxx.suretec.net SENT. root@xxx:/opt/observium# cat 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'] = "xxx"; $config['db_pass'] = "xxx"; $config['db_name'] = "xxx";
// 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("xxx");
// Authentication Model - move to LDAP once confirmed. $config['auth_mechanism'] = "mysql"; // default, other options: ldap, http-auth, please see documentation for config help
// Enable alerter // $config['poller-wrapper']['alerter'] = TRUE;
//$config['enable_syslog'] = "1";
## Enable email backend settings $config['email']['enable'] = TRUE;
// Needed on subscription product //$config['alerts']['email']['enable'] = FALSE;
$config['enable_billing'] = 1;
// End config.php
-- Kind Regards, Gavin Henry. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Hi Mike,
Yes, we want emails to go to the email set in SysContact. This goes to our NOC alerts mailing list.
The test mail php script sends to the address correctly.
Thanks.
From our experience email alerts only work part of the time.
We use other tools and scripts for alerts - we just use Observium to show the business users a really slick, great utilization screen.
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Gavin Henry Sent: Monday, November 24, 2014 4:33 PM To: mike@observium.org; Observium Network Observation System Subject: Re: [Observium] Email alerts on subscription version (again)
Hi Mike,
Yes, we want emails to go to the email set in SysContact. This goes to our NOC alerts mailing list.
The test mail php script sends to the address correctly.
Thanks. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
They still do.
On 26/11/2014 23:42, Gavin Henry wrote:
Weird as they used to work well. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
We're getting Adam to log in and check things over as soon as we sort out remote access.
Thanks.
participants (4)
-
Gavin Henry
-
Joseph L. Brunner
-
Mike Stupalov
-
Tom Laermans