Sunday, November 24, 2024

Server Monitoring

I have a headless Linux server that I have previously written about for ripping media disks.  While I have had MQTT integrated into the bash script that notifies me when discs need to be changed I was still having to guess when the system was running out of recourses.  After messing with that script for close to an hour and hitting several issues, I decided to see if someone else had already solved this issue. 

System-MQTT  is a small rust service that uses have to compile themselves that solves for monitoring Linux services. While I have never written anything in rust, that application is very well written so I can easily enhance it if needed. Out of the box it does exactly what I needed it do. 

The sensors automatically show up in my Home Assistant instance since I already had MQTT setup on the system. The server name is automatically prepended to each sensor name and the configuration file for System-MQTT allows specifying the update period, but given the slow nature of file growth for my use case, I left it at the default value of 30 seconds.

My next project will probably be making use of one of the similar freely avalible integrations to get my Unraid meta data into Home Assistant. 






Server Monitoring

I have a headless Linux server that I have previously written about for ripping media disks.  While I have had MQTT integrated into the bash...