Now that I have a minimal home server running, I thought it would be good idea to monitor temperature, disk usage and such. The simplest solution that I found was to use Glances and use Home Assistant to store and display the data.
Glances (on the homeserver)
Thisis actually quite simple. Just install Glances on the server:
|
|
To make the glances integration for Home Assistant work, you need to run Glances in web server mode. It seems that the default debian package is broken (and does not have all the style/javascript files needed). You can fix this, by manually installing those files:
|
|
Now, let’s add a simple systemd service to run Glances in web server mode:
|
|
Save this file as /etc/systemd/system/glances.service
and enable it:
|
|
Now you can check if Glances is running by going to http://<your-server-ip>:61208
in your browser. You should see a web interface with all the system information.
Home Assistant Integration
This is easy: just go to https://www.home-assistant.io/integrations/glances/ and follow the instructions to enable the integration and point it to your configured glances server. You already did all the hard work in the previous step, so this should be easy.