Me either,
and i have tried both with the default setup and with contacts. Its the same problem in both cases..
and like you i only need alerts to go to one email. SO i would go with the default in config.php but that doesn't help me much as long as the from field is root@observium
here is a screenshot:
the above is from my spam filter, so it is being sent with that from field.
the above are "old" logs but thats because im testing with sendmail. I don't know sendmail but with default install no mails are being sent. So i need to figure out how to set it up. as i said .. im not sendmail expert.. or postfix for that matter :)
Fra: "Adam Armstrong" <adama@memetic.org>
Til: "Observium Network Observation System" <observium@observium.org>
Sendt: fredag, 28. august 2015 09:24:16
Emne: Re: [Observium] Alert Emails Not sending
That's strange, my config has this :
root@omega:/home/observium/dev# grep from config.php
$config['email']['from'] = "Observium Dev
<adama@observium.org>";
root@omega:/home/observium/dev#
Which works fine.
I don't use any per-alert contacts, but I can't imagine that would make
a difference!
adam.
On 2015-08-28 06:28, Casper Allerslev Jensen wrote:
Hi,
Im new to this but im pretty sure it right?
here is my config.php
DINGIT@OBSERVIUM01:~$ SUDO CAT /OPT/OBSERVIUM/CONFIG.PHP
[SUDO] PASSWORD FOR DINGIT:
SORRY, TRY AGAIN.
[SUDO] PASSWORD FOR DINGIT:
<?PHP
## CHECK HTTP://WWW.OBSERVIUM.ORG/WIKI/CONFIGURATION_OPTIONS FOR
DOCUMENTATION OF THESE SETTINGS
// DATABASE CONFIG --- THIS MUST BE CONFIGURED
$CONFIG['DB_EXTENSION'] = 'MYSQLI';
$CONFIG['DB_HOST'] = 'LOCALHOST';
$CONFIG['DB_USER'] = 'ROOT';
$CONFIG['DB_PASS'] = 'XXXXXXXXX;
$CONFIG['DB_NAME'] = 'OBSERVIUM';
// BASE DIRECTORY
$CONFIG['INSTALL_DIR'] = "/OPT/OBSERVIUM";
// 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 (NOT AVAILABLE IN CE)
#$CONFIG['POLLER-WRAPPER']['ALERTER'] = TRUE;
// SET UP A DEFAULT ALERTER (EMAIL TO A SINGLE ADDRESS)
$CONFIG['EMAIL']['DEFAULT'] = "CASPER@DINGIT.DK";
$CONFIG['EMAIL']['FROM'] = "OBSERVIUM <OBSERVIUM@DINGIT.DK>";
$CONFIG['EMAIL']['DEFAULT_ONLY'] = FALSE;
// END CONFIG.PHP
DINGIT@OBSERVIUM01:~$
I want the from field to say observium@dingit.dk
-------------------------
FRA: "Adam Armstrong" <adama@memetic.org>
TIL: "Observium Network Observation System" <observium@observium.org>
SENDT: fredag, 28. august 2015 07:21:47
EMNE: Re: [Observium] Alert Emails Not sending
Most installs are probably using postfix, certainly all of mine are.
Are you *sure* your config option is the correct one?
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 28 August 2015 6:19:16 am Casper Allerslev Jensen
<casper@dingit.dk> wrote:
I will try that... Thanks
Sent from Nine [1]
FRA: Cameron Murray <cameron@techpath.com.au>
SENDT: 28/08/2015 07.18
TIL: Observium Network Observation System
EMNE: Re: [Observium] Alert Emails Not sending
I am using sendmail.
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Casper Allerslev Jensen
SENT: Friday, 28 August 2015 3:13 PM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
Have you done any config to postfix than? Cause my mail is not being
sent with the from field matching what i have set in config. Php
Sent from Nine [1]
FRA: Cameron Murray <cameron@techpath.com.au>
SENDT: 28/08/2015 07.11
TIL: Observium Network Observation System
EMNE: Re: [Observium] Alert Emails Not sending
From the address I specified in the config.php
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Casper Allerslev Jensen
SENT: Friday, 28 August 2015 3:08 PM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
Cameron how does your from field look in the email?
Sent from Nine [1]
FRA: Cameron Murray <cameron@techpath.com.au>
SENDT: 28/08/2015 07.06
TIL: Observium Network Observation System
EMNE: Re: [Observium] Alert Emails Not sending
It was a CE version for 18 months
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Adam Armstrong
SENT: Friday, 28 August 2015 2:46 PM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
Got there in the end!
How come you ended up with poller.php? Was it a really old
installation?
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 28 August 2015 1:32:57 am Cameron Murray
<cameron@techpath.com.au> wrote:
Adam,
I’ve changed it to the wrapper and now the alerts are working.
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Cameron Murray
SENT: Friday, 28 August 2015 10:04 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
Adam,
[root@obs observium]# cat /etc/cron.d/observium
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.php -h all >> /dev/null 2>&1
*/5 * * * * root /opt/observium/poll-billing.php >> /dev/null 2>&1
01 * * * * root /opt/observium/billing-calculate.php >> /dev/null
2>&1
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Adam Armstrong
SENT: Friday, 28 August 2015 9:51 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
What are you running in cron? Poller-wrapper.py or poller.php?
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 28 August 2015 00:43:27 Cameron Murray <cameron@techpath.com.au>
wrote:
Adam,
When I ran that I received the email alerts.
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Adam Armstrong
SENT: Friday, 28 August 2015 9:37 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
That alert is still delayed, so not notification yet :)
What happens if you run :
./alerter.php -h all
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 28 August 2015 00:35:43 Cameron Murray <cameron@techpath.com.au>
wrote:
Adam,
I’ve disabled the snmp agent for one device and obs has recorded
the issue below:
https://dl.dropboxusercontent.com/u/8790688/obs3.png [9]
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Adam Armstrong
SENT: Friday, 28 August 2015 9:13 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
This says the state hasn't changed for over a day.
You need to unfail and refail the alert to see if it sends.
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 28 August 2015 00:11:13 Cameron Murray <cameron@techpath.com.au>
wrote:
Yes the second line entry in the previous picture is post contacts
being adjusted.
Regards,
CAMERON MURRAY
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Adam Armstrong
SENT: Friday, 28 August 2015 9:03 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
Hmm. That is odd. Are you sure an alert has entered the failed state
since you configured the contacts?
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 27 August 2015 23:58:19 Cameron Murray <cameron@techpath.com.au>
wrote:
Adam,
I’m not seeing notifications for “Email” However when I search
only for ALERT_NOTIFY there is 0 entries.
Regards,
CAMERON MURRAY
Remote Support Engineer
How am I doing? Please click here [2] to rate my work.
[3]
P 1300 033 300
F 07 3809 3999
E cameron@techpath.com.au
WWW.TECHPATH.COM.AU [4]
Unit 2/55 Tradelink Rd, Hillcrest QLD 4118
FORMERLY Betta Computer Services Pty Ltd
[5]
[6]
[7]
Note: This message may contain privileged and confidential
information that is the property of the intended recipient. The
information herein is intended only for use of the addressee. If you
are not the intended recipient, then you are requested to return
e-mail to TechPath Pty Ltd and destroy any copies made. Copying or
disseminating any of this message is prohibited. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of TechPath Pty Ltd.
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Adam Armstrong
SENT: Friday, 28 August 2015 8:50 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
Are the missing notifications recorded in the alert log?
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 27 August 2015 23:46:15 Cameron Murray <cameron@techpath.com.au>
wrote:
I have all alerts setup to a single for testing. Once I know it
works the other alert groups will be added.
Regards,
CAMERON MURRAY
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Adam Armstrong
SENT: Friday, 28 August 2015 8:43 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
Just out of interest, why are you associating all alerts with
something in contacts rather than just setting a default in the
config file?
If the default is working, why not just use that?
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 27 August 2015 23:41:42 Cameron Murray <cameron@techpath.com.au>
wrote:
Not showing in any logs – Like it is not being sent at all.
Alerts have been associated with contacts.
https://dl.dropboxusercontent.com/u/8790688/obs.png [10]
Regards,
CAMERON MURRAY
FROM: observium [mailto:observium-bounces@observium.org] ON BEHALF
OF Casper Allerslev Jensen
SENT: Friday, 28 August 2015 2:21 AM
TO: Observium Network Observation System
SUBJECT: Re: [Observium] Alert Emails Not sending
CAMERON have you checked that the email is not being captured by the
spam filter?
I'm asking because associating the contact with the alert worked for
me.. I can now see that postfix is sending mail to my contact email
address..
my problem, and maybe Cameron, is that the from filed still is from
root@observium01 which is being banned in my spam filter. I can't
whitelist it because it has to be a propper domain syntax to do so..
like root@observium01.org or something like that..
I know that tom said it was the default from field from postfix and
not the actual from field but i do see a root@observium01 in my spam
filter that is being blocked... so something is wrong..
Aug 27 18:10:05 observium01 postfix/cleanup[2022]: B9291A532E:
message-id=<e103e994b1f0ee8f892ba6a0b6ef6cbb@observium01>
Aug 27 18:10:05 observium01 postfix/qmgr[1101]: B9291A532E:
FROM=<ROOT@OBSERVIUM01>, size=15353, nrcpt=2 (queue active)
Aug 27 18:10:06 observium01 postfix/smtp[2025]: B9291A532E:
TO=<CASPER@DINGIT.DK>,
relay=mxpool2.spamgateway.comodo.com[178.33.199.66]:25, delay=0.53,
delays=0.05/0.04/0.23/0.21, dsn=5.0.0, status=bounced (host
mxpool2.spamgateway.comodo.com[178.33.199.66] said: 550 Access
denied - Invalid HELO name (See RFC5321 4.1.1.1) (in reply to RCPT
TO command))
Aug 27 18:10:06 observium01 postfix/smtp[2025]: B9291A532E: lost
connection with mxpool2.spamgateway.comodo.com[178.33.199.66] while
sending RCPT TO
Aug 27 18:10:06 observium01 postfix/smtp[2025]: B9291A532E:
TO=<IT@DINGIT.DK>,
relay=mxpool2.spamgateway.comodo.com[178.33.199.65]:25, delay=0.91,
delays=0.05/0.04/0.73/0.09, dsn=5.0.0, status=bounced (host
mxpool2.spamgateway.comodo.com[178.33.199.65] said: 550 Access
denied - Invalid HELO name (See RFC5321 4.1.1.1) (in reply to RCPT
TO command))
Aug 27 18:10:06 observium01 postfix/cleanup[2022]: 9C34EA532F:
message-id=<20150827161006.9C34EA532F@observium01>
Aug 27 18:10:06 observium01 postfix/qmgr[1101]: 9C34EA532F:
FROM=<>, size=17621, nrcpt=1 (queue active)
Aug 27 18:10:06 observium01 postfix/bounce[2054]: B9291A532E:
sender non-delivery notification: 9C34EA532F
Aug 27 18:10:06 observium01 postfix/qmgr[1101]: B9291A532E: removed
Aug 27 18:10:06 observium01 postfix/local[2058]: 9C34EA532F:
to=<root@observium01>, relay=local, delay=0.04,
delays=0/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 27 18:10:06 observium01 postfix/qmgr[1101]: 9C34EA532F: removed
Now im happy with only one email for alerting so i could go with
configuring it in the config.php file.. but nothing will work aslong
as the from field is from root@observium01
I really don't care what is in the from field as long as its propper
syntax. I would just whitelist it... its somewhat of a stupid
problem actually :)
-------------------------
FRA: "Cameron Murray" <cameron@techpath.com.au>
TIL: "Observium Network Observation System"
<observium@observium.org>
SENDT: torsdag, 27. august 2015 12:12:25
EMNE: Re: [Observium] Alert Emails Not sending
Certainly have for me
-------- Original message --------
From: Adam Armstrong
Date:27/08/2015 20:09 (GMT+10:00)
To: Observium Network Observation System
Subject: Re: [Observium] Alert Emails Not sending
Have the contacts been associated with any alerts?
Adam.
Sent with AquaMail for Android
http://www.aqua-mail.com [8]
On 27 August 2015 8:38:28 am Casper Allerslev Jensen
<casper@dingit.dk> wrote:
Hi Tom,
Thanks for tryng but it didn't help.. I set it to false but from
postfix i
can see my from field is still root@observium01 - this was tested
after reboot
Aug 27 09:35:05 observium01 postfix/pickup[1100]: 49784A532E:
uid=0 from=<root>
Aug 27 09:35:05 observium01 postfix/cleanup[2466]: 49784A532E:
message-id=<532453c60007a53981b676a34a5dac3e@observium01>
Aug 27 09:35:05 observium01 postfix/qmgr[1101]: 49784A532E:
from=<root@observium01>, size=15223, nrcpt=1 (queue active)
Aug 27 09:35:05 observium01 postfix/smtp[2470]: 49784A532E:
to=<it@dingit.dk>, relay=XXXXXXX, delay=0.32,
delays=0.06/0.02/0.16/0.09,
dsn=5.0.0, status=bounced (host XXXXX said: 550 Access denied -
Invalid
HELO name (See RFC5321 4.1.1.1) (in reply to RCPT TO command))
Aug 27 09:35:05 observium01 postfix/cleanup[2466]: 90B5FA532F:
message-id=<20150827073505.90B5FA532F@observium01>
Aug 27 09:35:05 observium01 postfix/qmgr[1101]: 90B5FA532F:
from=<>,
size=17097, nrcpt=1 (queue active)
Aug 27 09:35:05 observium01 postfix/bounce[2491]: 49784A532E:
sender
non-delivery notification: 90B5FA532F
Aug 27 09:35:05 observium01 pos
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium