<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#f1f0ed><FONT face=Arial size=2>
<DIV> </DIV>
<DIV>Following Subhendu's suggestion, I've installed the latest check_http 
plugin, <BR>but unfortunately, Nagios is still issuing a "warning" status for a 
seemingly fine</DIV>
<DIV>reponse from the web server.<BR> </DIV>
<DIV>check_http (nagios-plugins 1.3.0-beta2) 1.12</DIV>
<DIV> </DIV>
<DIV>Current Status:   WARNING  (Has been 
acknowledged)   <BR>Status Information: HTTP ok: HTTP/1.0 200 OK - 
0.240 second response time <BR>Current Attempt: 3/3 <BR>State Type: HARD 
<BR>Last Check Type: ACTIVE <BR>Last Check Time: 01-31-2003 10:55:22 <BR>Status 
Data Age: 0d 0h 2m 6s <BR>Next Scheduled Active Check:   01-31-2003 
11:00:22 <BR>Latency: < 1 second <BR>Check Duration: < 1 second <BR>Last 
State Change: 01-27-2003 10:27:32 <BR>Current State Duration: 4d 0h 29m 56s 
<BR>Last Service Notification: 01-27-2003 12:27:32 <BR>Current Notification 
Number: 3 <BR>Is This Service Flapping? N/A <BR>Percent State Change: N/A <BR>In 
Scheduled Downtime?   NO   <BR>Last Update: 01-31-2003 
10:57:20 <BR></DIV>
<DIV> </DIV>
<DIV>All details from below are still the same, with the exception that I now 
have the latest version of the </DIV>
<DIV>check_http plugin.</DIV>
<DIV> </DIV>
<DIV>Any ideas?</DIV>
<DIV> </DIV>
<DIV>-David</DIV>
<DIV> </DIV>
<DIV><BR>> -----Original Message-----<BR>> From: Subhendu Ghosh 
[mailto:sghosh@sghosh.org]<BR>> Sent: Monday, January 27, 2003 2:01 
PM<BR>> To: <A 
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A><BR>> 
Subject: Re: [Nagios-users] Stange problem checking https<BR>> <BR>> 
<BR>> On Mon, 27 Jan 2003, DM wrote:<BR>> <BR>> > Hi All,<BR>> 
> <BR>> > I've got a problem with Nagios returning a "warning status" 
when<BR>> > checking https on a Resin http server. Resin is a servlet/JSP 
engine<BR>> > which can also serve up static pages as well as dynamic. 
<BR>> (details can be<BR>> > had at <A 
href="http://www.caucho.com/resin/">http://www.caucho.com/resin/</A>)<BR>> 
> <BR>> > The problem is that Nagios keeps generating a "warning" 
<BR>> status for the<BR>> > http service, even though the service is 
up. Nagios doesn't <BR>> even seem to<BR>> > indicate a problem, other 
than indicating a warning status. (i.e.<BR>> > response time is good, 
etc.)<BR>> > <BR>> > The Resin server is serving up the https pages 
just fine. Hitting it<BR>> > with different browsers (IE6, Konqueror) 
works fine. Also Nagios is<BR>> > working fine with other web servers 
(Zeus, IIS). I've <BR>> checked the syntax<BR>> > and run the 
check_http manually with the command line and <BR>> it works fine<BR>> 
> too. The response from the plugin is always "HTTP ok: <BR>> HTTP/1.0 200 
OK -<BR>> > 0 second response time"<BR>> > <BR>> > The only 
difference I can come up with is that the http <BR>> response from<BR>> 
> the Resin server comes back as "HTTP/1.0" as opposed to all <BR>> the 
other<BR>> > web servers which return a "HTTP/1.1" Could this be causing 
<BR>> a problem<BR>> > for Nagios?<BR>> > <BR>> > Below are 
full details about platforms, versions, relevant <BR>> lines from<BR>> 
> config files, etc. As mentioned above, this Nagios config works 
just<BR>> > fine with my other servers.<BR>> > <BR>> > Any 
ideas are appreciated.<BR>> > <BR>> > -David<BR>> > <BR>> 
> <BR>> > Nagios version:<BR>> > <BR>> >  Nagios 
1.0<BR>> >  Copyright (c) 1999-2002 Ethan Galstad (<A 
href="mailto:nagios@nagios.org">nagios@nagios.org</A>)<BR>> >  Last 
Modified: 11-24-2002<BR>> >  License: GPL<BR>> > <BR>> > 
Nagios server is running on Solaris 8.0 with latest <BR>> Maintenance 
Updates/ patch<BR>> > clusters.<BR>> > <BR>> > check_http 
plugin version:<BR>> > <BR>> >  <A 
href="mailto:admin@nagios:>check_http">admin@nagios:>check_http</A> 
-V<BR>> >  check_http (netsaint-plugins 1.2.9-4) 1.32.2.6<BR>> 
> <BR>> > services.cfg:<BR>> > <BR>> >  
check_command<BR>> >  
check_https!hosta.mydomain.com!/test/test?act=login&id=123ABC123<BR>> 
> <BR>> > commands.cfg:<BR>> > <BR>> >  # 
'check_https' command definition<BR>> > define command{<BR>> 
>          
command_name    check_https<BR>> 
>          
command_line    /apps/nagios/libexec/check_http -S <BR>> -I 
$HOSTADDRESS$ -H $<BR>> >   ARG1$ -u $ARG2$ -t 40 -e 200<BR>> 
>          }<BR>> > 
<BR>> > hosts.cfg:<BR>> > <BR>> > # 'hosta' host 
definition<BR>> > define host{<BR>> 
>         
use                     
generic-host            ; 
<BR>> Name of host template <BR>> > to use<BR>> > <BR>> 
>         
host_name               
hosta<BR>> >         
alias                   
AliasA<BR>> >         
address                 
2.3.4.5<BR>> >         
parents                 
parenta<BR>> >         
check_command           
check-host-alive<BR>> >         
max_check_attempts      10<BR>> 
>         
notification_interval   120<BR>> 
>         
notification_period     normal<BR>> 
>         
notification_options    d,u,r<BR>> 
>         }<BR>> > <BR>> 
> <BR>> > Running the check_http command manually using the<BR>> 
> same parameters that Nagios uses, works fine:<BR>> > <BR>> > 
check_http \<BR>> > -S -I hosta.mydomain.com \<BR>> > -H 
web.mydomain.com \<BR>> > -u '/test/test?act=login&id=123ABC123' -t 40 
-e 200<BR>> > <BR>> > It returns a normal status:<BR>> > 
<BR>> > "HTTP ok: HTTP/1.0 200 OK - 0 second response time"<BR>> > 
<BR>> > >From the "Service State Information" page on Nagios:<BR>> 
> <BR>> > Current Status:   WARNING     
<BR>> > Status Information: HTTP ok: HTTP/1.0 200 OK - 0 second <BR>> 
response time <BR>> > Current Attempt: 3/3 <BR>> > State Type: HARD 
<BR>> > Last Check Type: ACTIVE <BR>> > Last Check Time: 01-27-2003 
12:07:23 <BR>> > Status Data Age: 0d 0h 2m 11s <BR>> > Next 
Scheduled Active Check:   01-27-2003 12:12:23 <BR>> > Latency: 1 
second <BR>> > Check Duration: < 1 second <BR>> > Last State 
Change: 01-27-2003 10:27:32 <BR>> > Current State Duration: 0d 1h 42m 2s 
<BR>> > Last Service Notification: 01-27-2003 11:27:32 <BR>> > 
Current Notification Number: 2 <BR>> > Is This Service Flapping? N/A 
<BR>> > Percent State Change: N/A <BR>> > In Scheduled 
Downtime?   NO   <BR>> > Last Update: 01-27-2003 
12:09:22 <BR>> > <BR>> > >From the "Alert History" on 
Nagios:<BR>> > <BR>> > [01-27-2003 10:27:32] SERVICE ALERT: <BR>> 
hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 <BR>> second response 
time<BR>> > [01-27-2003 10:26:32] SERVICE ALERT: <BR>> 
hosta;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0 <BR>> second response 
time<BR>> > [01-27-2003 10:25:33] SERVICE ALERT: <BR>> 
hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 <BR>> second response 
time<BR>> > <BR>> > <BR>> <BR>> <BR>> <BR>> On the 
command line - do n "echo $?" after the plugin to see what the <BR>> return 
code is.<BR>> <BR>> Also may want to try a newer check_http - lots of 
changes <BR>> since 1.2.9-4 <BR>> release.<BR>> <BR>> -- <BR>> 
-sg</FONT></DIV></BODY></HTML>