I wrote a “little” daemon for the Raspberry, which reads system data like free RAM, SWAP space, Uptime, .. from the Raspberry and publishes the data to an MQTT server
If you are interested you can get the C sourcecode and the installation instructions on GitHub with the following link: