Let’s create an installation directory under a docker folder in our servers home folder
mkdir -p ~/docker/monitee-agent && cd ~/docker/monitee-agentThen let’s create the config/ and data/ directories
mkdir config && mkdir dataThe server expects a configuration.yml in the configuration directory. Let’s download the latest one using wget
cd configwget https://raw.githubusercontent.com/Krillsson/monitee-agent/refs/heads/master/config/configuration.yml
wget https://raw.githubusercontent.com/Krillsson/monitee-agent/refs/heads/master/config/application.propertiesUse your favorite text editor to edit the user & password of the config
nano configuration.ymlThen press CTRL+X to exit nano (and press Y to save)
Now we can download the latest docker-compose.yml and make our edits to it using nano
wget https://raw.githubusercontent.com/Krillsson/monitee-agent/master/docker-compose.ymlRemember to swap out the volume mounts for the config/ and data/ directories
Want to monitor the temperature of disks? Each disk you’d like to monitor has to be added to a devices section in the compose file. List disks on your system using the command lsblk –nodeps -n -o name
devices:
- "/dev/sda:/dev/sda"Want to manage systemd services and read the journal? Uncomment the systemd mounts in the volumes section of the compose file. They are off by default because not every Docker host uses systemd.
- /run/systemd:/run/systemd
- /etc/machine-id:/etc/machine-id:ro
- /run/systemd/journal/socket:/run/systemd/journal/socket:ro
- /run/log/journal:/run/log/journal:roThen we can start the container
docker compose -f docker-compose.yml upLet’s verify the server started correctly
docker logs --follow --tail 200 monitee-agentIf you see this message without any error after it. That means the server is up and running
[...]: Tomcat started on ports 8443 (https), 8080 (http) with context path '/'
[...]: Started SysAPIApplicationKt in 6.352 seconds (process running for 7.234)Now you are ready to proceed to next step
Connect App to Server
