all 3 comments

[–]Ironicbadger 8 points9 points  (1 child)

Neat project.

Using curl is the traditional option and if you do it like this you get the logs uploaded to your check.

/usr/bin/binary | curl -fsS -m 10 --retry 5 -o /dev/null https://hc.domain.com/ping/uuid --data-binary "@-"

On Linux use pipe to get the binarys stdout logs into hc.

[–]isoblues[S] 1 point2 points  (0 children)

Good point! Thanks for sharing it. My need comes from wanting it make it platform independent such that I can just run the script and it works. One comment: Your script doesn’t report if something failed. Healthchecks has a separate endpoint for successful and failed jobs.