• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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"
 
reply
    Bookmark Topic Watch Topic
  • New Topic