How to monitor particular kit with Oversight: which sensor to use, where on the device to set up access, which user function and extraction rows read the response, and how to write the rules that turn it into an alarm. Search for a vendor, a product or an error message, or ask a question in your own words.
Docker: containers, health and control
Docker's own Engine API has no bearer tokens, no API keys and no user accounts. The only way to reach it across a network is a TLS client certificate, and a certificate that can list containers can equally create a privileged one with the host's filesystem mounted inside it. There is no read-only credential to issue. That is why Oversight does not talk to Docker directly.
Instead a small container, the Oversight Docker API, runs on the Docker host. It holds the local socket, answers three questions over plain HTTP, and requires a bearer token on every request. It is roughly two hundred lines of Go on an empty image with no shell and no package manager, so the thing holding the socket is as small as it can reasonably be made.
What it provides
It answers three things, and only to a request carrying its token: the daemon as a whole (up or down, its version, how many containers are running, paused and stopped, and any warnings Docker reports about itself), every container on the host by name as running or not, and, for one named container, start, stop or restart. Anything without a valid token is refused and never reaches Docker.
Two things worth knowing about the readings. Health only exists where the image declares a healthcheck, so health is empty on most containers rather than healthy, and that is not a fault. And a container that has been removed is not in the list at all, rather than appearing as stopped, so a count of stopped containers will never notice a container that a compose stack has torn down. That is what total is for.
In Oversight
Two sensors cover a Docker host. One watches the daemon as a whole: a container that has fallen over shows as stopped, and a count of containers below the number expected catches one that has been removed rather than stopped. The other watches named containers, up to twenty on one sensor and one reading, each running or not, with a rule on the ones you would act on at whatever severity each deserves.
A container that has been removed is not in the list at all, so its reading goes UNKNOWN rather than stopped. That is deliberate: a container someone has torn down is a different problem from one that has stopped, and it should not quietly look the same. The token is held as a sealed credential in Oversight and never shown again once saved.
When Docker itself stops
This service runs inside the Docker it reports on. Stopping the daemon stops every container on the host, including this one, so the sensor does not report a stopped daemon: it fails to connect. That is the signal, and it is the right one, but on its own it cannot tell a stopped daemon from a dead host or a broken network path.
Give the Docker sensor a dependency on a ping of the same host. With the ping up and the Docker sensor failing, Docker is down; with the ping down as well, the host is gone and the Docker alarm is suppressed as a consequence of it rather than raised on its own. Without the dependency both situations page you identically.
The daemon slot still earns its place. It reports down, rather than the sensor failing, in the cases where the daemon has gone but its containers have not: dockerd killed rather than stopped cleanly, or a host running with live-restore enabled. Enabling live-restore is good practice on a production host anyway, since it keeps containers up across a daemon upgrade, and it has the side effect of letting this sensor report a stopped daemon properly instead of going dark.
Installing it
It is installed from a published image and a commented compose file, which must be edited before the service will start. Each host gets a token of its own, which can stop and restart containers and so is control of the host, not a read-only password. The address it publishes on ships deliberately set to one the host will not have, so it can never come up on a public interface by accident. An upgrade script checks the new build against its published checksum, and never touches the compose file, which holds the host's token.