Re: [Nagios-users] check_http and proxy
Hi and thank you all for your help, I tried check_http -H http://my.proxy -p proxy_port -u https://my.website -S -vvv And I got : CRITICAL - cannot make SSL connection 23041:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:583: GET https://my.website HTTP/1.0 User-Agent: check_http/v2053 (nagios-plugins 1.4.13) Connection: close Host: my.proxy:proxy_port HTTP CRITICAL - Error in reception Is that a dead end ? Le mercredi 17 mars 2010 à 15:34 +0100, Leo Stolk a écrit : > Hi, > > You could try to use --ssl in the check. > > check_http --ssl -H my.proxy -p my_proxy_port -u http://my.website > > Greetings, > > Leo > > > -Oorspronkelijk bericht- > Van: Marc-André Doll [mailto:m...@b-care.net] > Verzonden: woensdag 17 maart 2010 14:17 > Aan: Nagios-Users > Onderwerp: [Nagios-users] check_http and proxy > > Hi list, > > I'm trying to check some web applications through a proxy with > check_http (version 1.4.13). > > I googled it and found that, with version 1.4.8, it might be possible to > try this > ( > http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg11186.html > ) : > > check_http -H my.proxy -p my_proxy_port -u http://my.website > > Unfortunately, I have to access my application through HTTPS. So I tried > with > > check_http -H my.proxy -p my_proxy_port -u https://my.website -vvv > > And I obtained this message : > > GET https://my.website HTTP/1.0 > > User-Agent: check_http/v2053 (nagios-plugins 1.4.13) > > Connection: close > > Host: my.proxy:my_proxy_port > > > > > > http://my.proxy:my_proxy_porthttps://my.website > > STATUS: HTTP/1.1 400 Bad Request > > [] > > Does soemone know how I should deal with this ? > > Thank you, > > Marc-André > > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http and proxy
On Wed, Mar 17, 2010 at 8:16 AM, Marc-André Doll wrote: > Hi list, > > I'm trying to check some web applications through a proxy with > check_http (version 1.4.13). > > I googled it and found that, with version 1.4.8, it might be possible to > try this > ( > http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg11186.html) > : > > check_http -H my.proxy -p my_proxy_port -u http://my.website > > Unfortunately, I have to access my application through HTTPS. So I tried > with > I do not believe you can do this with check_http. From my recollection and looking at the code, it does not support the CONNECT method required to tunnel the https traffic through the proxy. -- Marc formerly marc /at/ ena.com -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http and proxy
I had this same issue (trying to check sites with SSL through a proxy). Unfortunately, it appears that the issue is that check_http does not support the 'CONNECT' tunneling protocol that our proxy servers require for that service. I'm not really sure what other options exist to do this. Like, for instance if WWW::Mechanize would allow it either. I wish check_http did, though. Mark -Original Message- From: Leo Stolk [mailto:leo.st...@enovation.nl] Sent: Wednesday, March 17, 2010 10:34 AM To: Nagios Users List Subject: Re: [Nagios-users] check_http and proxy Hi, You could try to use --ssl in the check. check_http --ssl -H my.proxy -p my_proxy_port -u http://my.website Greetings, Leo -Oorspronkelijk bericht- Van: Marc-André Doll [mailto:m...@b-care.net] Verzonden: woensdag 17 maart 2010 14:17 Aan: Nagios-Users Onderwerp: [Nagios-users] check_http and proxy Hi list, I'm trying to check some web applications through a proxy with check_http (version 1.4.13). I googled it and found that, with version 1.4.8, it might be possible to try this ( http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg11186.html ) : check_http -H my.proxy -p my_proxy_port -u http://my.website Unfortunately, I have to access my application through HTTPS. So I tried with check_http -H my.proxy -p my_proxy_port -u https://my.website -vvv And I obtained this message : > GET https://my.website HTTP/1.0 > User-Agent: check_http/v2053 (nagios-plugins 1.4.13) > Connection: close > Host: my.proxy:my_proxy_port > > > http://my.proxy:my_proxy_porthttps://my.website > STATUS: HTTP/1.1 400 Bad Request > [] Does soemone know how I should deal with this ? Thank you, Marc-André -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http and proxy
Hi, You could try to use --ssl in the check. check_http --ssl -H my.proxy -p my_proxy_port -u http://my.website Greetings, Leo -Oorspronkelijk bericht- Van: Marc-André Doll [mailto:m...@b-care.net] Verzonden: woensdag 17 maart 2010 14:17 Aan: Nagios-Users Onderwerp: [Nagios-users] check_http and proxy Hi list, I'm trying to check some web applications through a proxy with check_http (version 1.4.13). I googled it and found that, with version 1.4.8, it might be possible to try this ( http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg11186.html ) : check_http -H my.proxy -p my_proxy_port -u http://my.website Unfortunately, I have to access my application through HTTPS. So I tried with check_http -H my.proxy -p my_proxy_port -u https://my.website -vvv And I obtained this message : > GET https://my.website HTTP/1.0 > User-Agent: check_http/v2053 (nagios-plugins 1.4.13) > Connection: close > Host: my.proxy:my_proxy_port > > > http://my.proxy:my_proxy_porthttps://my.website > STATUS: HTTP/1.1 400 Bad Request > [] Does soemone know how I should deal with this ? Thank you, Marc-André -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http and proxy
> Unfortunately, I have to access my application through HTTPS. So I tried > with > > check_http -H my.proxy -p my_proxy_port -u https://my.website -vvv > > And I obtained this message : > > GET https://my.website HTTP/1.0 > > User-Agent: check_http/v2053 (nagios-plugins 1.4.13) > > Connection: close > > Host: my.proxy:my_proxy_port > > > > > > http://my.proxy:my_proxy_porthttps://my.website > > STATUS: HTTP/1.1 400 Bad Request > > [] > > Does soemone know how I should deal with this ? > > Thank you, > > Marc-André > Hi You get bad request, because you don't use SSL. You need to add this option -S, --ssl Connect via SSL. Port defaults to 443 Martin -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null