I have developed a VBS script which you can schedule in Windows Scheduler
to run in 10 minute intervals
The script when executed tries to connect to the URL given as its first argument. If it is not able to connect, it will popup a message box saying "Could not connect".
Here is the source code:
If WScript.Arguments.Count <> 1 then
Wscript.Echo "Usage: CheckTomcat.vbs URL"
wscript.Quit
End If
URL = WScript.Arguments.Item(0)
Set Http = CreateObject("Microsoft.XmlHttp")
Http.open "GET", URL, FALSE
On Error Resume Next
Http.Send ""
If Err.Number <> 0 Then
Wscript.Echo "Cannot connect to Tomcat at " & URL
Wscript.Quit 1
End If
'WScript.Echo "Connection successful. Response Code is " & Http.Status
Set Http = nothing