I was wondering if there is an easy interface where my application can read any errors from the mender client.
My use case is the following: I have a device that is running headless and behind a firewall. After connecting the device to the network I want to know if it can connect to all required “internet services”. One of the required services is, of course, mender.
My application controls some LEDs for signaling that a connection to all or some “internet services” is not possible. I am currently working on integrating mender with these status LEDs. Is there any interface where I can check if mender has successfully connected to all it’s backend services (hosted mender)?
Alternatively, what would need to test independently to ensure that mender can connect to all its backend services? For example, is a simple get request to “https://hosted.mender.io” enough or are more ports/protocols required by mender aside from 443/https? (This method has, of course, the drawback that other client errors go unnoticed by my application) I could also use the mender API to check if my device has come online successfully, but I was wondering if there are some functions (like downloading an update) that require more open ports/different protocols that would go unnoticed by this kind of check.
Any help would be greatly appreciated.