Linuxfabrik / monitoring-plugins

220+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
214 stars 49 forks source link

notify-*-mail: Enable SSL #773

Open Kaliumiodid opened 3 months ago

Kaliumiodid commented 3 months ago

Describe the solution you'd like

Currently, the notify mail plugins only support unencrypted connections. My mail server only allows encrypted connections. It would be helpful, if the plugins notify-host-mail and notify-service-mail would support it, too. A solution might be another argument --ssl. If set, the connection would be made like this: s = smtplib.SMTP_SSL. If not set, it would stay like it is now s = smtplib.SMTP.

Additional context

No response