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
360 stars 132 forks source link

Timeout not affecting Check SSL Labs? #472

Closed ChiyoDragon closed 10 months ago

ChiyoDragon commented 10 months 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 10 months 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 10 months ago

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