JAVA Service check take down

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
Guest

Post by Guest »

We have a machine that runs a service that is actually a Java App.

When we setup a test in HostMon to check this service, HostMon shutsdown the service simply by checking it (no action performed) and reports back that the service is 'bad'. Then if you reset the test, HostMon says the service is 'ok', but the service is actually stopped. Subsequent refreshes of this test just alternate between 'ok' and 'bad' consecutively.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>When we setup a test in HostMon to check this service, HostMon shutsdown the service simply by checking it (no action performed)

Are you sure this test does not have associated actions like "stop service" or "restart service"?
In this case I see only one explanation: service has error and crashes when receives standard SERVICE_CONTROL_INTERROGATE command. I checked HostMonitor's code, it sends just this single command.

>Then if you reset the test, HostMon says the service is 'ok', but the service is actually stopped

May be you have set "Reverse alert" option for this test?

Regards
Alex
Guest

Post by Guest »

>>Are you sure this test does not have associated actions like "stop service" or "restart service"?

I did originally, but took it out because I couldn't figure out what was going on.

>>May be you have set "Reverse alert" option for this test?

no, I tried that, but it did the same.

seems like Java Services can be troublesome. I found a discontinued app called "ServiceMaster" that sets up a Java Service in a more 'stable' way. but not sure about using it...

thanks

Locked