Nagios check a jsp file

Thibault Genessay tgenessay at aliadis.fr
Thu Dec 15 18:36:03 CET 2005


Pantke, Cale wrote:

>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.
>
You might want to try something like the attached Python script. It uses 
the lynx browser to get the page and search for a magic phrase. It's 
just a sketch but should give you an overview of another feasible 
approach to do HTTP checking.

Regards

-- 
Thibault GENESSAY
ALIADIS
www.aliadis.fr
Tel.  0870 723 724
Fax   04 72 13 90 40 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_http_lynx.py
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051215/e6514562/attachment.ksh>


More information about the Users mailing list