wood burning stoves 2.0*
The moose likes Java in General and the fly likes So can anyboby help me to have ideas to get automatic notification when any of my service is down. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "So can anyboby help me to have ideas to get automatic notification when any of my service is down." Watch "So can anyboby help me to have ideas to get automatic notification when any of my service is down." New topic
Author

So can anyboby help me to have ideas to get automatic notification when any of my service is down.

muruga dhanapal
Greenhorn

Joined: Jun 02, 2010
Posts: 24
Hi All,
I need your valuable Idea's to monitor my production middleware service when it is down.
About my application I have various input systems, from which I will be getting the request XML, I have a servlet, the incoming request hits this servlet and some basic xml validation are happening in this modoule and apart from this I have four other individual modules which runs as a Java Thread where the other business logics are done. we are using IBM MQueues as middleware, for each and every module we have a listener which keeps on listening for messages and whenver a message receives it picks and moves on to the other module.

All my modules and queues are running as windows service in production and the problem here is whenever any of the service mainly listeners are down the policies will get struck in that particular module till we restart the listeners.for other applications in our account we have system of monitoring the logs so whenver any exception tests are found in logs concerned people will get notification so that turn around time will be less.

Note: In our systen when the serive are down we will not get any exception nor it will logged. So monitoring the logs wont work for our system

So can anyboby help me to have ideas to get automatic notification when any of my service is down.
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4474
    
    6

One approach is to have a "heartbeat" monitoring service. Each application that needs to be monitored will be required to respond to a "ping" from the monitoring service. The "ping" can be as simple as responding with "OK" when the application receives an HTTP request for a specific URL or it could be a web service call that results in deeper checks for availability, whatever works for your monitoring needs.


Junilu - [How to Ask Questions] [How to Answer Questions]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
Yep, you'll find numerous such services if you search for "server monitoring" or some such phrase. Some are free for very basic functionality. My company uses www.pingdom.com for general HTTP monitoring and www.java-monitor.com for Java web apps.


Ping & DNS - my free Android networking tools app
Colm Dickson
Ranch Hand

Joined: Apr 04, 2009
Posts: 89
Hello.

Just a suggestion which may be of no use to you but on occasion I have wanted to use Java to to check and see what applications and process were running on my system and I was able to use the Runtime class and the exec method to execute a comand to return a list of the running processes and then read the stream returned to see if what I was looking for existed. if it wasn't there, I could then say it was not running and show a message/create an email alert/log the error....

muruga dhanapal
Greenhorn

Joined: Jun 02, 2010
Posts: 24
Colm Dickson wrote:Hello.

Just a suggestion which may be of no use to you but on occasion I have wanted to use Java to to check and see what applications and process were running on my system and I was able to use the Runtime class and the exec method to execute a comand to return a list of the running processes and then read the stream returned to see if what I was looking for existed. if it wasn't there, I could then say it was not running and show a message/create an email alert/log the error....


Thanks for your idea Colm, Based on your suggestion you want me to write a java program to monitor the number of serveices running in my system.
Could you please brief me on the belwo comments

"I was able to use the Runtime class and the exec method to execute a comand to return a list of the running processes and then read the stream returned"
 
GeeCON Prague 2014
 
subject: So can anyboby help me to have ideas to get automatic notification when any of my service is down.