<HTML>
<HEAD>
<TITLE>Re: [Nagios-users] Check_http status 503 gives 200 OK</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thank you for your reply.<BR>
<BR>
I’ve tried the check without the ip adress option but it makes no difference.<BR>
<BR>
Any other ideas?<BR>
<BR>
Thanks.<BR>
<BR>
<BR>
On 11/19/12 2:29 PM, "Ryan Edwards" <<a href="wyild1@gmail.com">wyild1@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>You said u are using it like so:<BR>
<BR>
   Check:<BR>
   /usr/local/nagios/libexec/check_http -I <ip address> -u <a href="http://<url>">http://<url></a> -w1 -c2<BR>
<BR>
Maybe drop the IP address?  I dunno, maybe cuz you have both IP and the url its causing problems. Maybe its replying on the IP, but not on the URL your providing.  You prob only need one or the other if im not mistaken<BR>
<BR>
Cheers!<BR>
<BR>
<BR>
On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon <<a href="j.vanarragon@lukkien.com">j.vanarragon@lukkien.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello,<BR>
<BR>
Does anyone know why it gives me a 200 back?<BR>
<BR>
If you need more info, I will gladly provide it ;-)<BR>
<BR>
Thank you.<BR>
<BR>
Regards,<BR>
<BR>
Jaap<BR>
<BR>
<BR>
On 11/16/12 11:54 AM, "Jaap van Arragon" <<a href="j.vanarragon@lukkien.com">j.vanarragon@lukkien.com</a>> wrote:<BR>
<BR>
> Hello,<BR>
><BR>
> I’m trying to use the check_http plugin to verify if one of our website is<BR>
> available.<BR>
><BR>
> When I check our website it gives me a 200 OK status code back even when the<BR>
> website isn’t available en the URL gives me a 503 status code through the<BR>
> browser.<BR>
><BR>
> After some searching I came across the post below:<BR>
><BR>
> <a href="http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485">http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485</a><BR>
><BR>
> This states that there is a bug in check_http. The only thing is that the post<BR>
> is from 2003 so I expect that the necessary changes are already in the new<BR>
> release.<BR>
><BR>
> Things I’ve tried:<BR>
><BR>
> - recompiled the latest version of the check_http plugin but the necessary<BR>
> changes seems to be integrated there already.<BR>
> - updated the plugins package to the latest version for our release<BR>
><BR>
> Check:<BR>
> /usr/local/nagios/libexec/check_http -I <ip address> -u <a href="http://<url>">http://<url></a> -w1 -c2<BR>
><BR>
> Packages:<BR>
><BR>
> ii nagios-images 0.5<BR>
> ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1<BR>
> ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1<BR>
> ii nagios-plugins 1.4.14-1ubuntu1<BR>
> ii nagios-plugins-basic 1.4.14-1ubuntu1<BR>
> ii nagios-plugins-standard 1.4.14-1ubuntu1<BR>
> ii nagios3 3.2.0-4ubuntu2.2<BR>
> ii nagios3-cgi 3.2.0-4ubuntu2.2<BR>
> ii nagios3-common 3.2.0-4ubuntu2.2<BR>
> ii nagios3-core 3.2.0-4ubuntu2.2<BR>
> ii nagiosgrapher 1.7.1-1<BR>
><BR>
> Does anyone know why it gives me a status 200 OK back? At the moment I can't<BR>
> rely on my Nagios checks..<BR>
><BR>
> Thank you in advance<BR>
><BR>
> Regards<BR>
> Jaap<BR>
<BR>
<BR>
<BR>
------------------------------------------------------------------------------<BR>
Monitor your physical, virtual and cloud infrastructure from a single<BR>
web console. Get in-depth insight into apps, servers, databases, vmware,<BR>
SAP, cloud infrastructure, etc. Download 30-day Free Trial.<BR>
Pricing starts from $795 for 25 servers or applications!<BR>
<a href="http://p.sf.net/sfu/zoho_dev2dev_nov">http://p.sf.net/sfu/zoho_dev2dev_nov</a><BR>
_______________________________________________<BR>
Nagios-users mailing list<BR>
<a href="Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><BR>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><BR>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>
::: Messages without supporting info will risk being sent to /dev/null<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>