-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Problem Sending Mail Without Smtp Auth on OpenSearch #890
Comments
which OS version do you use? |
Hello @espala, Thank you for opening. I have pinged the team as well. @opensearch-project/admin please re-route to https://github.com/opensearch-project/alerting-dashboards-plugin |
Hi, I actually wrote above.
@kavilla thank you. We will be waiting for information from you. |
Hi @espala, To retrieve the monitor JSON, you can run the following command in devtools.
And from the logs provided above, it looks like the ID for your
If it looks like the channel returned by that command isn't the correct one, you can use the following command to get all of the notification channels configured on the cluster; I would just need the JSON for your
|
@AWSHurneyt Thank you very much for your response and interest. I'm sorry I've had a rough weekend and I'm responding late. I queried all the paths you forwarded and wrote them all below. Can you check it? By the way, I changed the sensitive data in the output. It may be different from the information I gave when opening the case before. If there is a difference, please ignore those parts (mail address, domain, etc.) query 1
results
Query 2
Query 3
|
Hello everyone,
I am using Opensearch cluster and my cluster is running smoothly. I don’t get any error messages or logs in the standard run cycle.
I wanted to define an alarm specifically, so I defined a new “Monitors” definition from the “Alerting” menu. Then I define “Trigger” and select my “Smtp Channel” definition.
Everything works correctly in the Alerting mechanism, it finds the word I filtered and runs the trigger function. But it cannot send an email using my smtp information I entered in the “Notification” section. Because it is trying to do smtp authentication.
But I selected the “Encryption Method” as “none” in the “Email Senders” section under the “Notifications” menu. When I click the “send test email” button both in the “Channel” I defined and in the Alerting > Monitors > Triggers I defined, I see that it sends emails. I can also see the emails in my inbox.
But when “Alerting > Monitors > Triggers > Action” automatically sends an email, it tries to establish smtp authentication connection.
I want to send email without smtp auth. There is also “none” option on OpenSearch Panel. I think we have such a possibility. But I see in the log that I get a 503 error. 503 here is an error code representing smtp auth.
I am using an internal smtp relay server and I am not using the smtp auth mechanism. I need to be able to send emails without smtp auth as the Opensearch system allows me.
I think this problem is a bug. How can I solve this problem?
My first OpenSearch forum case;
https://forum.opensearch.org/t/about-mail-sending-problem-on-alerting-notification-section/17786
My second case detailing the problem;
https://forum.opensearch.org/t/problem-sending-mail-without-smtp-auth-on-opensearch-critical/17993
screenshot of my smtp definition;
screenshot of my Alerting/Monitors definition;
Log;
Error: Failed running action: OpenSearchStatusException[{"event_status_list": [{"config_id":"Qzjsho0B2TBnxA0NWL9r","config_type":"email","config_name":"Test Email Notification Channel","email_recipient_status":[{"recipient":"[email protected]","delivery_status":{"status_code":"503","status_text":"sendEmail Error, status:Couldn't connect to host, port: smtp.mydomain.com, 25; timeout -1"}}],"delivery_status":{"status_code":"503","status_text":"sendEmail Error, status:Couldn't connect to host, port: smtp.mydomain.com, 25; timeout -1"}}]}]
Opensearch and my linux versions
Related sections in my logs
2. Subject
At the same time, when it can’t find the word I filtered for the alarm in “Alerting” > “Monitor”, it says that the “Trigger” and “Action” functions are working in the Alerts section and shows that it sent the email. But this is not true either.
My filter works correctly. I am looking for the word “error” in the log data for the last 3 hours. When it really can’t find the word “error” in the last 3 hours, the “History” section goes to green “no alerts”. This works correctly.
But when I change the status of the alarms under the “Alerts” heading at the bottom of the dashboard to “Completed”, it shows it as “Email Trigger”.
In this case, it does not seem to reflect an true result. Because even though there was an alarm trigger, the action gave an error and could not send the email.
The text was updated successfully, but these errors were encountered: