Reporting

After upgrading Splunk 6.4 to 6.6 why is Splunk not able to send mails anymore? Error: No such file or directory

inko6nito
Explorer

Hi,

we've made an update of Splunk (6.4 -> 6.6) and changed our certificates, everything works fine except one thing:

We're not able to send emails anymore. Triggered by alert or directly executed via SPL (| sendemail ...), both is not possible.

We get the following errors in python.log:

 ERROR sendemail:137 - Sending email. subject="xxx", results_link="yyy", recipients="[u'name@server.com']", server="mail.server" 
 ERROR sendemail:443 - [Errno 2] No such file or directory while sending mail to: ... 

In splunk.log it is almost the same message:

 ...[lot_of_arguments] ... ERROR   sendemail:443 - [Errno 2] No such file or directory while sending mail to: ... 

Does anyone have an idea, what file or directory Splunk cannot find when sending a mail or how I can find it out?

thx!

0 Karma

splunkybit
Engager

It is a simple typing error at line 115!
I have changed to:

sslConfJSON=ssContent.get('alert_Actions'),

because the splunk conf file name is with an underscore in it.
Thanks for your post in splunk answers 🙂

0 Karma

inko6nito
Explorer

Well, I've found something but I would not call it a solution:

When I comment out the line 115 in the Script sendemail.py my Splunk is able to send mails again.
Content of the line:

  sslConfJSON=ssContent.get('alertActions'), 

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...