A Developer commented my blog today to ask me this question, how to check efficiently whether our services are up and running.
I have similar style windows notification app (C#), which is running on every hour and making general ping test as below code & gives me report.
Code from my sample -
WebClient client = WebClient.create(
Response response = client.get();
// Web service up and running
// Web service is down
Hope this helps someone else as well. Nothing like fancy code but just sharing