<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.36">
<TITLE>RE: [Nagios-users] Nagios check a jsp file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>I've just been looking into this for a similar need, only my app requres frames also.  You may be able to get by easier, there are a number of Perl, Python, and Ruby plugins available that make emulating a JS-client/browser in a script easier. <BR>
<BR>
Since I haven't been able to find a tool (short of server-based unit test systems) that can do what I need, I've got to resort to packet capturing the entire HTTP transaction from a valid browser, and replay it back while scraping the HTML for validity (obviously not very dynamic ;).<BR>
<BR>
I'd be curious to know what you use for a solution, and how it works out.<BR>
<BR>
/eli<BR>
<BR>
-----Original Message-----<BR>
From: nagios-users-admin@lists.sourceforge.net on behalf of Pantke, Cale<BR>
Sent: Tue 1/17/2006 8:42 AM<BR>
To: nagios-users@lists.sourceforge.net<BR>
Subject: [Nagios-users] Nagios check a jsp file<BR>
<BR>
<BR>
I have a link that looks like this <A HREF="http://hostnae:8080/login.jsp">http://hostnae:8080/login.jsp</A> (I edited<BR>
the actual link on purpose) and I need to monitor that it is sending data<BR>
correctly when looking at it. I used the check_http command like this.<BR>
status:/var/www# /opt/nagios/libexec/check_http -H 10.3.8.41 -u<BR>
<A HREF="http://hostnae:8080/login.jsp">http://hostnae:8080/login.jsp</A><BR>
HTTP CRITICAL: HTTP/1.1 500 Internal Server Error<BR>
<BR>
However I know that when I go to that in a browser it pops up fine. Anyone<BR>
know of a solution to this? Is there a special plugin or command I can do<BR>
for a .jsp file? I looked for a plugin and I could only find "webinject"<BR>
which doesn't seem to work with Nagios.<BR>
<BR>
-Cale<BR>
<BR>
<BR>
-------------------------------------------------------<BR>
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files<BR>
for problems?  Stop!  Download the new AJAX search engine that makes<BR>
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!<BR>
<A HREF="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</A><BR>
_______________________________________________<BR>
Nagios-users mailing list<BR>
Nagios-users@lists.sourceforge.net<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>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>