Details
-
Help
-
Resolution: Unresolved
-
Major
-
None
-
CE-21.10
-
None
Description
Hi all,
I'm running Observium CE 22.5.12042 and I'm facing issues with my observium installation, regarding alerting by email.
My machine has postfix configured correctly, and If I try to send an email from the console, everything seems to be ok.
echo "test message" | /usr/sbin/sendmail -v myemail@mydomain.it |
Following your support area, I also configured config.php manually to fit all the SMTP settings for my server.
$config['email']['enable'] = TRUE; |
$config['email']['from'] = "'Observium' <geoobs@geo.local>"; |
$config['email']['default'] = "XXXXXX@myaddress.it"; |
$config['email']['default_only'] = TRUE; |
$config['email']['backend'] = 'smtp'; |
$config['email']['sendmail_path'] = '/usr/sbin/sendmail'; // The location of the sendmail program. |
$config['email']['smtp_host'] = 'smtp-relay.sendinblue.com'; // Outgoing SMTP server name. |
$config['email']['smtp_port'] = 587; // The port to connect. |
$config['email']['smtp_timeout'] = 10; // SMTP connection timeout in seconds. |
$config['email']['smtp_secure'] = "tls"; // Enable encryption. Use 'tls' or 'ssl' or 'starttls' |
$config['email']['smtp_auth'] = TRUE; // Whether or not to use SMTP authentication. |
$config['email']['smtp_username'] = "XXXXXXX@XXXXXX.it"; // SMTP username. |
$config['email']['smtp_password'] = "XXXXXXXXXXXXXXX"; // Password for SMTP authentication. |
However, no emails were sent from my observium, even if alert occurred. And I cannot see any log in /var/log/syslog or mail.log or mail.err
Could you help me to fix it and to see if postfix is trying to send messages or not?
Thanks in advance
D.
Attachments
Activity
Comment |
[ _*General questions and device support can be discussed in [our Discord channel, click here to join|https://discord.gg/GjpNXKWm8W].*_ ---- Please make and attach additional information about the device: * full snmp dump from device: {noformat} snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk {noformat} _If device not support SNMP version 2c, replace -v2c with -v1._ * If you have problems with discovery or poller processes, please do and attach these debugs: {noformat} ./discovery.php -d -h <device> ./poller.php -d -h <device> {noformat} * additionally attach device and/or vendor specific MIB files ---- {color:#505F79}_This comment is added automatically._{color} ] |
Status | Original: Open [ 1 ] | New: Pending Response [ 10000 ] |
It'll likely work if you remove almost all of that configuration mess. Why have you told it to use SMTP and configured SMTP parameters, and are then testing with sendmail binary?
DO NOT USE SMTP IF YOU DON'T HAVE TO.
Just use local mta, this requires no special configuration except for the 'from' field. It does require a working mail server on the Observium system.