Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any pre-existing Java based scripts to monitor the status of a soap server on a unix box?

 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm in the process of re-writing some scripts that are used to periodically ping an existing Soap Server on a unix box and send out email notification of the status of the server if the server happens to be down or unreachable.

The existing scripts are written in perl and I was specifically instructed to create these scripts using a stand alone java app. Are there any pre-existing apps, maybe open source apps which already does something similar to what I'm trying to do?

I'm trying to avoid re-inventing the wheel.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of any, but that doesn't mean that they don't exist.

If you use the standard java.mail code to talk to your SMTP daemon, and the Apache HTTP client to talk to the Soap Server, you won't have to write much code, maybe 100 lines. But what is driving this request? If its working in perl, why fix it?

If you are looking for an educational effort, I'd rewrite it in python, rather than Java.

edited: must -> much
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use Nagios for monitoring, but it may be overkill for what you are trying to do.
Pat asked some good questions. If it's working, why mess with it? That's called "reinventing the wheel"!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18012
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Nagios extensively. It's a lot easier to adapt Perl scripts to server as outage detectors in Nagios than it is to use Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic