Forums Register Login

Monitor webserver using java

+Pie Number of slices to send: Send
Hi All,

I want to monitor a web server. I want to get the webserver's start time, end time, status of the server, and if it goes to not responding stage I should intimate and resolve the problem.

Can I do the above tasks using java. If can In what packages I should concentrate to successfully complete this task. Give me an idea about this.

Thanks & regards,
Maheshwaran Devaraj
+Pie Number of slices to send: Send
Using the java.net.URL class you can send requests for the root page of the server (or the root page of any application you want to monitor). Thus you can make sure that are getting a 200 (OK) response, and that you get it in a timely fashion. If you're getting something else or no reply, you might want to repeat that after a minute, and if there's still no response, send an email to an admin or take whatever action is appropriate.
+Pie Number of slices to send: Send
What kind of webserver? Tomcat, for example, gives you a lot of control over JMX.
I will suppress my every urge. But not this shameless plug:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 585 times.
Similar Threads
Monitoring of server using JMX and SNMP
web application performance monitoring
Threads and object monitor
Database Monitoring
What is a TCP/IP monitor???
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:50:38.