I believe you could do something like this:
check host mmonit.com with address mmonit.com
if failed
port 80 protocol http and request "/location/of/whatever"
method GET status = 502
then restartOn Sat, Jun 25, 2022 at 7:25 PM Anthony Ettinger <[email protected]> wrote: > 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? > > -- > Anthony > 408-656-2473 >
