in reply to monitor process

You can just periodically send test requests to the server. If you elaborate a bit more on your problem you probably would get a better answer.