munin-monitoring / contrib

Contributed stuff for munin (plugins, tools, etc...)
http://munin-monitoring.org
1.05k stars 684 forks source link

[ssl/ssl-certificate-expiry] Add configurable timeout #1346

Closed HaseHarald closed 1 year ago

HaseHarald commented 1 year ago

This should help with unreachable hosts, as the plugin can take more than 10 minutes to complete otherwise. These changes should be fully backwards compatible, since the default is no timeout set, so it acts the same way as before if not explicitly configured otherwise.

Also I took the freedom to disable shellcheck SC1090. When linting this script, this will always fire. This is because shellcheck only does static code analysis and thus can not determine dynamic filepath for includes.

Changes: