API access to server process status

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

1 Like

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

1 Like

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ā€

1 Like

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

1 Like