<!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>
<DIV><FONT face="Courier New" size=2>Hi All,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I've got a problem with Nagios returning a
"warning status" when checking https on a Resin http server. Resin is a
servlet/JSP engine which can also serve up static pages as well as dynamic.
(details can be had at </FONT><A href="http://www.caucho.com/resin/"><FONT
face="Courier New" size=2>http://www.caucho.com/resin/</FONT></A><FONT
face="Courier New" size=2>)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>The problem<BR>is that Nagios keeps
generating a "warning" status for the http service, even though the service is
up. Nagios doesn't even seem to indicate a problem, other than indicating a
warning status. (i.e. response time is good, etc.)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>The Resin server is serving up the https
pages just fine. Hitting it with different browsers (IE6, Konqueror) works fine.
Also Nagios is working fine with other web servers (Zeus, IIS). I've checked the
syntax and run the check_http manually with the command line and it works fine
too. The response from the plugin is always "HTTP ok: HTTP/1.0 200 OK - 0 second
response time"</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>The only difference I can come up with is
that the http response from the Resin server comes back as "HTTP/1.0" as opposed
to all the other web servers which return a "HTTP/1.1" Could this be causing a
problem for Nagios?</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Below are full details about platforms,
versions, relevant lines from config files, etc. As mentioned above, this Nagios
config works just fine with my other servers. </FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Any ideas are appreciated.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>-David</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><BR><FONT face="Courier New" size=2>Nagios version:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> Nagios 1.0<BR> Copyright (c)
1999-2002 Ethan Galstad (</FONT><A href="mailto:nagios@nagios.org"><FONT
face="Courier New" size=2>nagios@nagios.org</FONT></A><FONT face="Courier New"
size=2>)<BR> Last Modified: 11-24-2002<BR> License: GPL</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Nagios server is running on Solaris 8.0
with latest Maintenance Updates/ patch<BR>clusters.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>check_http plugin version:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> </FONT><A
href="mailto:admin@nagios:>check_http"><FONT face="Courier New"
size=2>admin@nagios:>check_http</FONT></A><FONT face="Courier New" size=2>
-V<BR> check_http (netsaint-plugins 1.2.9-4) 1.32.2.6</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>services.cfg:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2> check_command<BR> check_https!hosta.mydomain.com!/test/test?act=login&id=123ABC123</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>commands.cfg:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> # 'check_https' command
definition<BR>define command{<BR>
command_name
check_https<BR>
command_line /apps/nagios/libexec/check_http -S -I
$HOSTADDRESS$ -H $<BR> ARG1$ -u $ARG2$ -t 40 -e
200<BR> }</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>hosts.cfg:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2># 'hosta' host definition<BR>define
host{<BR>
use
generic-host ;
Name of host template <BR>to use</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>
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> }</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><BR><FONT face="Courier New" size=2>Running the check_http command manually
using the<BR>same parameters that Nagios uses, works fine:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>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</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>It returns a normal status:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>"HTTP ok: HTTP/1.0 200 OK - 0 second
response time"</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>From the "Service State Information" page
on Nagios:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Current Status:
WARNING <BR>Status Information: HTTP ok: HTTP/1.0 200 OK
- 0 second 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
</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>From the "Alert History" on
Nagios:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[01-27-2003 10:27:32] SERVICE ALERT:
hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 second response
time<BR>[01-27-2003 10:26:32] SERVICE ALERT: hosta;HTTPS;WARNING;SOFT;2;HTTP ok:
HTTP/1.0 200 OK - 0 second response time<BR>[01-27-2003 10:25:33] SERVICE ALERT:
hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 second response
time</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV></BODY></HTML>