Need help getting the new alert system to send mail
What i did ☺
//Alert $config['alerts']['alerter']['default']['descr'] = "Observium Email Alert"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "tr@zitcom.dk"; $config['alerts']['alerter']['default']['enable'] = TRUE;
No emails are send on alerts
So I tried to change the email backend $config['email_backend'] = 'sendmail';
That did not help. So I did a test to check the php mail module.
<?php $to = "tr@zitcom.dk"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "test@mgmt3.network.zitcom.dk"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
And that worked fine. What is the problem?
I have an alert in Observium ☺ [cid:image001.png@01CF07BB.018EAC80]
Med venlig hilsen | Best regards Thomas Raabo Netværksansvarlig CCIE #33466 Zitcom A/S
Telefon: 70 40 00 00 E-mail: kontakt@zitcom.dkmailto:kontakt@zitcom.dk Direkte: 69 10 60 18 Direkte: tr@zitcom.dkmailto:tr@zitcom.dk
[cid:image005.jpg@01CEDC86.E897E480]http://www.zitcom.dk/
Hi,
On Thu, Jan 2, 2014 at 4:03 PM, Thomas Raabo - Zitcom A/S tr@zitcom.dkwrote:
What i did J
//Alert
$config['alerts']['alerter']['default']['descr'] = "Observium Email Alert";
$config['alerts']['alerter']['default']['type'] = "email";
$config['alerts']['alerter']['default']['contact'] = "tr@zitcom.dk";
$config['alerts']['alerter']['default']['enable'] = TRUE;
Where you get this config examples? New alert system for now uses same config options as old alert system (see in includes/defaults.inc.php) ;)
No emails are send on alerts
So I tried to change the email backend
$config['email_backend'] = 'sendmail';
That did not help.
So I did a test to check the php mail module.
<?php $to = "tr@zitcom.dk"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "test@mgmt3.network.zitcom.dk"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
And that worked fine.
What is the problem?
I have an alert in Observium J
Med venlig hilsen | Best regards *Thomas Raabo* Netværksansvarlig CCIE #33466 Zitcom A/S
Telefon: 70 40 00 00 E-mail: kontakt@zitcom.dk Direkte: 69 10 60 18 Direkte: tr@zitcom.dk
[image: cid:image005.jpg@01CEDC86.E897E480] http://www.zitcom.dk/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Hi,
I have the exact same issue with the same config , alerts trigger, tested php mail to be working
How can we debug observium to check it's sending emails or getting errors etc ...
Thanks Daniel
Sent from my iPhone
On 9 Jan 2014, at 8:14 am, Mike Stupalov mike@observium.org wrote:
Hi,
On Thu, Jan 2, 2014 at 4:03 PM, Thomas Raabo - Zitcom A/S tr@zitcom.dk wrote: What i did J
//Alert
$config['alerts']['alerter']['default']['descr'] = "Observium Email Alert";
$config['alerts']['alerter']['default']['type'] = "email";
$config['alerts']['alerter']['default']['contact'] = "tr@zitcom.dk";
$config['alerts']['alerter']['default']['enable'] = TRUE;
Where you get this config examples? New alert system for now uses same config options as old alert system (see in includes/defaults.inc.php) ;)
No emails are send on alerts
So I tried to change the email backend
$config['email_backend'] = 'sendmail';
That did not help.
So I did a test to check the php mail module.
<?php $to = "tr@zitcom.dk"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "test@mgmt3.network.zitcom.dk"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
And that worked fine.
What is the problem?
I have an alert in Observium J
<image001.png>
Med venlig hilsen | Best regards Thomas Raabo Netværksansvarlig CCIE #33466 Zitcom A/S
Telefon: 70 40 00 00 E-mail: kontakt@zitcom.dk Direkte: 69 10 60 18 Direkte: tr@zitcom.dk
<image002.jpg>
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
participants (3)
-
Daniel Rolfe
-
Mike Stupalov
-
Thomas Raabo - Zitcom A/S