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?
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.
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
OpenSearch-Dashboards Github Projects Bug Report case; https://github.com/opensearch-project/alerting-dashboards-plugin/issues/890
OpenSearch dashboards-notifications Project Bug Report case; https://github.com/opensearch-project/dashboards-notifications/issues/162
screenshot of my smtp definition;
![Screen Shot 2024-02-21 at 08 17 14](https://github.com/opensearch-project/OpenSearch-Dashboards/assets/9979648/a2664863-1788-4817-9fa7-4d8f9a9d770a)
screenshot of my Alerting/Monitors definition;
![Screen Shot 2024-02-21 at 08 13 55](https://github.com/opensearch-project/OpenSearch-Dashboards/assets/9979648/a9de5c1b-ee8f-45b8-a97c-648246ccf7d0)
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":"myaddress@mydomain.com","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.