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

Icinga2.conf -> verbose doesn't work as a flag #479

Closed DukeSniper closed 8 months ago

DukeSniper commented 8 months ago

https://github.com/matteocorti/check_ssl_cert/blob/5138e1a3554727dc79c7064d86ad23bf0ece9566/check_ssl_cert_icinga2.conf#L677-L679 expects vars.ssl_cert_extended_verbose to be set and passes its value as a parameter to the "--verbose" command line option, which does not accept values. So unless vars.ssl_cert_extended_verbose is set to either "--verbose" (which will translate to "--verbose --verbose" on the generated command) or "no options arguments" like "-v" or "-4", this will lead to a failure during argument parsing