icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

ssl_cert: Allow forcing IPv4 or IPv6 check

Open z3ntu opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

check_ssl_cert supports passing -4 and -6 to force IPv4 or IPv6 respectively. There is no Icinga option to pass this through.

Describe the solution you'd like

Add an option for Icinga to pass through these arguments.

Describe alternatives you've considered

?

Additional context

Something like #9978

z3ntu avatar Jan 21 '24 12:01 z3ntu

Hello Luca!

Have you tried setting e.g. vars.check_ipv4?

Best, A/K

Al2Klimov avatar Apr 25 '24 11:04 Al2Klimov

No, is there any documentation what this does or how to use it? I can't seem to see any reference in the docs?

z3ntu avatar Apr 25 '24 12:04 z3ntu

Indeed, docs are missing. But according to command-plugins.conf it's a boolean.

Al2Klimov avatar Apr 25 '24 13:04 Al2Klimov

My suggestion seems not to be _the way_TM. A code grep for check_ipv[46] shows that lots of commands do this:

itl/command-plugins.conf:2142:	vars.check_ipv6 = "$dig_ipv6$"

They provide own switches on top of vars.check_ipv[46] in the first place and document them. So, strictly speaking: yes, the command lacks an own (documented) option.

Al2Klimov avatar Jun 21 '24 09:06 Al2Klimov