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

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

script it! write your own plugin using wget or curl

eg:

#!/bin/bash
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
else
  echo not ok
  exit 2
fi

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

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

Your Answer

 
or
required, but never shown

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