Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 -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

share|improve this question

3 Answers 3

up vote 4 down vote accepted

script it! write your own plugin using wget or curl


wget -t 5 --timeout 30 -O /dev/null -o /dev/null -e http_proxy=your.proxy:port https://www.google.com
if [ $? -eq 0 ] ; then
  echo all ok
  exit 0
  echo not ok
  exit 2

you can obviously extend it eg to check the content of returned page.

share|improve this answer
Hello - this worked fine for me - i use it in this syntax: wget -t 5 --timeout 30 -e https_proxy= https://example.com --no-check-certificate –  Fake4d Jun 1 '11 at 12:05

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



  • I have had better results using relative uri rather than the full url .. eg: '/vendors' instead of 'http://example.com/vendors'
  • Of course the -s is only if you are trying to match a particular string in the returned content
  • Finally, there are environments in which your best bet would still be to wrap wget or curl in a script
share|improve this answer

I recently had the same problem so I wrapped the wget approach into a Nagios plugin https://github.com/SimpleFinance/nagios-check-http-proxy

share|improve this answer
Welcome to Server Fault! We really do prefer that answers contain content not pointers to content. Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Iain Jul 15 '12 at 20:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.