Nagios check a jsp file

Marc Powell marc at ena.com
Tue Jan 17 18:01:43 CET 2006



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Pantke, Cale
> Sent: Tuesday, January 17, 2006 10: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.

check_http isn't understanding the URL in the format that you've
provided. Try something along the lines of --

If the site you are testing is Virtual Hosted (required host headers) -
check_http -H hostname -I 10.3.8.41 -p 8080 -u /login.jsp

If not
check_http -I 10.3.8.41 -u /login.jsp

--
Marc


-------------------------------------------------------
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&kid3432&bid#0486&dat1642
_______________________________________________
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





More information about the Users mailing list