Nagios check a jsp file
Eli Stair
estair at ilm.com
Tue Jan 17 17:51:27 CET 2006
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.
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 ;).
I'd be curious to know what you use for a solution, and how it works out.
/eli
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net on behalf of Pantke, Cale
Sent: Tue 1/17/2006 8:42 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios check a jsp file
I have a link that looks like this http://hostnae:8080/login.jsp (I edited
the actual link on purpose) and I need to monitor that it is sending data
correctly when looking at it. I used the check_http command like this.
status:/var/www# /opt/nagios/libexec/check_http -H 10.3.8.41 -u
http://hostnae:8080/login.jsp
HTTP CRITICAL: HTTP/1.1 500 Internal Server Error
However I know that when I go to that in a browser it pops up fine. Anyone
know of a solution to this? Is there a special plugin or command I can do
for a .jsp file? I looked for a plugin and I could only find "webinject"
which doesn't seem to work with Nagios.
-Cale
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060117/ccfe1eac/attachment.html>
More information about the Users
mailing list