matteocorti / nagios_plugins

18 stars 7 forks source link

timeout not working #71

Closed matteocorti closed 9 years ago

matteocorti commented 9 years ago

Original reporter: hrabbach@fablemail.com

the plugin does not time out after 15 seconds, at least when used with STARTTLS mode and when a connection can be established, but STARTTLS is not supported. Try the following for an example:

check_ssl_cert -H mx3.safe-mail.net -p 25 -P smtp

The connection hangs indefinitely, rather than returning an error condition after the timeout has expired. This doesn't seem to happen with all hosts that don't support STARTTLS, I've so far been unable to figure out what triggers this. Calling openssl s_client with the parameters used by the plugin does return a result.

matteocorti commented 9 years ago

Original reporter: matteo@corti.li

Hi,

the plugin is implemented as a shell script and uses "expect" to trigger timeouts. If expect is not present timeouts are disabled.

Could you please run the plugin with the --verbose option and tell me if you get any message on expect?

Thanks

Matteo

matteocorti commented 9 years ago

This issue was moved to matteocorti/check_ssl_cert#2