Monika is a Java-implemented RESTful Web Service serving as an agent for Uptime Kuma to read the local disk's free space.
- Disk Free:
/monika/statusresponds status100on hardware failures, status901if volume has less than 20% free, status2XXin all other cases (whereXXis the lowest free value in %). The status text contains the smallest free percentage of all monitored volumes. Example:260 Smallest free volume is 60 %. - Health Check:
/monika/healthresponds status 204 always.
docker logs monika- Contains one entry for each monitored path per/statusrequest, like:/home is 60 % free /var is 75 % free
docker run --name monika -d -e MONITORED_PATHS=/home:/var -e IP_PORT=8123 -P ghcr.io/ijug-ev/monika: Monika will listen to requests on port 8123 and monitor paths/homeand/var.MONITORED_PATH: Monika will monitor each path in this list. The default is/, i. e. only the root file system is monitored.IP_PORT: Monika will listen to this IP port. The default is8080.
./build, i. e.:
#!/bin/bash
mvn clean package
cp src/main/docker/Dockerfile target
pushd ./target
docker build -t monika .
popd
docker run -it --rm -P monika