• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PING service

 
Rajah Nagur
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • 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 ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let us know how that turns out
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic