jjethwa / icinga2

GNU General Public License v3.0
223 stars 189 forks source link

check_http command using proxy #249

Open DvagNic opened 3 years ago

DvagNic commented 3 years ago

I have the feeling this is not the right place to ask, but I would like to know if there is a way to add the ability for the check_http command to use the supplied proxy server settings (like the https_proxy env variable in the docker container). I have seen an old version of the check_http command which supported the "-X" parameter but I guess that's either deprecated or that it was a custom template.

thx

jjethwa commented 3 years ago

Hi @DvagNic

Most of the default plugins are from the Monitoring Plugins project: https://www.monitoring-plugins.org/

It looks like check_http (ref: https://www.monitoring-plugins.org/doc/man/check_http.html ) supports basic proxy auth. I'm not sure what the -X flag did previously, but if you have a copy of it, you could always override it in the container if it supports the standard options icinga2 has configured for it. Hope that helps 😄