Just add something like the following after the last (useful) command in the shell script:

curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/.../$?

Documentation here.