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

No port is displayed if check fails #462

Closed mmdevl closed 1 year ago

mmdevl commented 1 year ago

When a check fails (ex. certificate has expired), the port number is missing in the output.

Example:

check_ssl_cert -H xxxxxxxxxx -p 5003
==>
SSL_CERT CRITICAL xxxxxxxxxx: x509 certificate ...

expected output:

SSL_CERT CRITICAL xxxxxxxxxx:5003 x509 certificate ...
                             ^^^^
                             port number

Tested with: