use curl to check if api is down or up
Anthony Ettinger <[email protected]> Sat, 25 Jun 2022 01:38:50 -0700
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <CAD56wZN-iQCGs5EG0u3WEZUKQeXqws3gRNNCFZv8-D3wEvtNPA@mail.gmail.com> |
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