We will introduce how to install Netdata as a method to monitor the system status of Raspberry Pi such as CPU and memory. Netdata is a mechanism that starts an HTTP server in a Docker container and accesses it with a browser from a Windows PC in the network to monitor it. If you can use Docker, you can use it on Linux environment even if it is not Raspberry Pi.
$ curl -sSL https://get.docker.com | sh
$ sudo usermod -aG docker pi
$ docker run hello-world
docker run -d --name=netdata \ -p 19999:19999 \ -v /proc:/host/proc:ro \ -v /sys:/host/sys:ro \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ --cap-add SYS_PTRACE \ --security-opt apparmor=unconfined \ netdata/netdata
After docker run, you can stop and restart Netdata by following the steps below.
$ docker stop netdata
$ docker start netdata
Since Netdata itself only imports Docker images, you only need to uninstall Docker.
$ sudo apt purge docker-ce $ sudo rm -rf /var/lib/docker $ sudo apt autoremove --purge
We have introduced Netdata to check the system status of Raspberry Pi in real time. Since you can export and print from the upper right of the page, you can record snapshots with these functions.
I tried to install it on Raspberry Pi 1, but the following message was displayed and the Docker container could not be started. It doesn't seem to support ARMv6. Please note that the same may be true for Raspberry Pi Zero.
Recommended Posts