I have had the case where overnight OData turned itself off, I think maybe to do with the automatic Linux NEEDSRESTART
I have a heartbeat monitor on some servers using Hetrix querying the fmws/serverinfo endpoint, which I am finding helpful, but would love a GET endpoint to see if a specific service service is running, by using an Otto APIkey in the url
Would that be useful? Possible? @kduval
Hey John,
We havenāt determined a great way to see if there is a specific process running on the server. We can probably look into it a bit more, we havenāt given it a true try yet. Iāll make sure its on the list
-Kyle
for odata at least
sudo ps -e | grep -e fmodata
For me, I check the actual HTTP response to see if OData is running. Iāve had it where the process is OK, itās checked āonā in admin console but I get this error back. Toggling OData off/on resolves.
{āerrorā: {ācodeā: ā802ā,āmessageā: "(802): Unable to open fileā}}
curl --location -g āhttps://hostname.com/fmi/odata/v4/DBName/TableName?$top=50&$select=OneFieldNameā
āheader āAccept: application/jsonā
āheader āContent-Type: application/jsonā
āuser "user:passā
Thatās nice. Issue here is I want to use Hetrix which can check if a url is reachable/ or gives a 200-style response, and so can only take a single url so which in this case could include the Otto-key
and a query to Table_Names does not need to query the actual table data, just a system table