Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2k stars 574 forks source link

ssl_cert: Allow forcing IPv4 or IPv6 check #9979

Open z3ntu opened 8 months ago

z3ntu commented 8 months ago

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

Al2Klimov commented 5 months ago

Hello Luca!

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

Best, A/K

z3ntu commented 5 months ago

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

Al2Klimov commented 5 months ago

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

Al2Klimov commented 3 months ago

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.