Page 1 of 1
Monitoring result of JSP
Posted: Wed Jul 29, 2015 7:58 am
by yunushaikh
Hello Sir,
I have one JSP which shows result as success and failed
I want to monitor that result from Nagios. Is there any possible way to do that?
Please help..
Thanks
Re: Monitoring result of JSP
Posted: Wed Jul 29, 2015 10:44 am
by jolson
I have one JSP which shows result as success and failed
Could you elaborate on where you are seeing the success/failure and which plugin you are using to check on your JSP generated web pages? We need to know more about what exactly is going on here to be able to assist you properly. Thanks yunushaikh!
Best,
Jesse
Re: Monitoring result of JSP
Posted: Thu Jul 30, 2015 11:48 pm
by yunushaikh
Hello Sir,
Right now I am not monitoring it through nagios. I want to know about the plugin which can give me this result.
I have attached the JSP result you can look at.
If there is success string in it then It should show success or else it should give an alert to us.
Is it possible to monitor JSP result in this way through nagios
Re: Monitoring result of JSP
Posted: Fri Jul 31, 2015 10:31 am
by jolson
Is the JSP page in question something that could be monitored by a basic check_http command? Give the following a try, and let me know if the result is what you're looking for:
Code: Select all
/usr/local/nagios/libexec/check_http -H www.example.com -u '/url/to/jsp' -s 'success'
Replace '
www.example.com' with the proper domain name you're checking against, and 'url/to/jsp with the proper URL you're checking against. Does the above command work for you?
Re: Monitoring result of JSP
Posted: Fri Jul 31, 2015 9:36 pm
by yunushaikh
Hello Sir,
Thanks for your help
I was able to do that using below command as I wanted to check it with IP and port
./check_http -I <IPADDRESS> -p <Port> -u '/url/to/path.jsp' -s 'success'
Thanks a lot for your help. I got this just by your example.
You can lock this topic. I will post new one if I need anything else.