|
From: | Mike D |
Subject: | Re: use curl to check if api is down or up |
Date: | Sat, 25 Jun 2022 21:32:23 -0500 |
check host mmonit.com with address mmonit.com
if failed
port 80 protocol http and request "/location/of/whatever" method GET status = 502
then restart
I want to use monit and curl so that curl would hit and api and check if its up, if it gets a 502 or similar error then restart the systemd service.How would I do this?
--Anthony408-656-2473
[Prev in Thread] | Current Thread | [Next in Thread] |