matteocorti / check_ssl_cert

A shell script (that can be used as a Nagios/Icinga plugin) to check an SSL/TLS connection.
GNU General Public License v3.0
372 stars 132 forks source link

Timeout not affecting Check SSL Labs? #472

Closed ChiyoDragon closed 1 year ago

ChiyoDragon commented 1 year ago

Describe the bug

When performing a check against SSL Labs using the script, it has been observed that the timeout occurs around 60 seconds even though the timeout has been explicitly set to 300 seconds in the script. This behavior is inconsistent with the expected behavior where the script should wait for 300 seconds before timing out.

To Reproduce /usr/lib/nagios/plugins/check_ssl_cert.sh -H xxx.com --check-ssl-labs A --timeout 300

Steps to reproduce the behavior.

Expected behavior

Possibility to set the timeout also for check ssl labs

System (please complete the following information):

Additional context/output

Timeout after 56 seconds (SSL Lab assesstment)

matteocorti commented 1 year ago

Thanks for the report.

Would it be possible to get a copy of the debugging output? If possible with the timestamps?

--debug --debug-time 

Thanks

matteocorti commented 1 year ago

The $TIMEOUT variable is only decreased with the time spent in the exec_with_timout function and not overall.