• 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

PING service

 
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is an increasing need in my project to find out whether few of the portlets are available.

Background:

A portal page comprising of portlets. Some portlets get information from different sites(third party service providers) on the Internet. Portal server is Tibco on Weblogic.

Problem:

Most of the times when any one of these third party content providers are "down" or not accessible (network outage etc), then these portlets are shown as blank as there is no content. Portal clients are unhappy and raise tickets. So I want to develop a proactive PING Service which pings these third party services and alert the system admins asap, so that such issues can be resolved earliest.


Solution:
Most portlets get content by invoking third party Webservices, and some simple http calls.
I'm planning to use Apache HTTPComponents httpcore and develop some Java programs and schedule using cron.


Is there any better alternative option / opensource tools available ?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think PING is what you want - see the Wikipedia entry.
PING can not tell you if a service is available, only if the basic server can be contacted. Perhaps you need a more graceful method of displaying the problem - why not cache the previous portlet content with a datestamp - if you can't get the current content, show the old content with a warning that it is old.
That said, the simplest way to ping a network address would be to exec() your operating system's built in ping command.
Bill
 
Rajah Nagur
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I have found out a way to monitor services & network outage.

I'm planning to use Nagios.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please let us know how that turns out
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic