Simple batch file to monitor a web resource.
It repeatedly checks if a certain online resource is accessible. It assumes that any return code other than 0
from curl
is an error, and logs it as such. The logfile is updated each time the error code changes.
It requires curl
, which ships with modern versions of Windows 10 by default. If you don't have it, you can get it from https://curl.haxx.se/windows/
- Configure the
URI
andlogfile
at the top of the script. - Run it
- Check logs
- That's it!
Pretty much identical to webmon
, but uses ping
instead of curl
. I use webmon
to monitor web resources, and pingmon
to monitor my internet connection, but obviously they can be used the other way around too, if you so wish.