i have a little question about the nagios tool:
Is there a possibility to monitor https sites in nagios over a proxy? Which means i want to monitor whether my proxy can reach some https ressources in the internet? I think it would be no problem with this command:
/usr/lib/nagios/plugins/check_http -j CONNECT -u "https://banking.postbank.de" -S
But our nagios server has no direct internet access and this command doesnt work.. (openssl is installed) I think the "-S" option doesnt work with proxy..:
/usr/lib/nagios/plugins/check_http -I 10.46.4.200 -p 8080 -j CONNECT -u "https://banking.postbank.de" -S
So here is the question: What to do? Is der some kind of check_https ? or something like that? Has anybody done a check like that?
Thank you very much for help, Fake4d
script it! write your own plugin using wget or curl
eg:
you can obviously extend it eg to check the content of returned page.
check_http certainly works for https websites, and '-j CONNECT' is essential as you already have but you will also need a -H .. And your proxy server is setup to pass-through https
example:
check_http -I PROXYHOST -p PROXYPORT -H FQDN -u RELATIVE-URI -S -j CONNECT -s STRING-TO-MATCH
Small enhancement of pQd's answer:
Change the proxy server and call it like this:
I recently had the same problem so I wrapped the wget approach into a Nagios plugin https://github.com/SimpleFinance/nagios-check-http-proxy