+
Skip to content

💻Initially written in Python, but translated to Go with the help of LLMs. Implements metric gathering for Dell Wyse 5070 (temperatures) and other generic metrics like CPU, RAM, memory, network. These metrics are then reported to the MQTT broker. Perfect fit, if you have HA instance running in the VM and you want to monitor host machine health.

License

Notifications You must be signed in to change notification settings

cziter15/gohostmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Windows MQTT

🖥️ gohostmon

gohostmon is a lightweight Go utility built on top of paho.mqtt.golang and gopsutil

It monitors your host machine running Home Assistant and publishes system metrics over MQTT making it easy to visualize directly in your HA dashboard.

🧠 Originally tested on a Dell Wyse 5060 (AMD K10 CPU), but easily adaptable to other platforms.

📡 Published MQTT Topics

All metrics are published under the hwinfo/ topic:

hwinfo/network_total_bytes_sent
hwinfo/network_total_bytes_received
hwinfo/k10_temperature_celsius
hwinfo/cpu_utilization_percent
hwinfo/ram_used_percent

⚙️ Configuration

Create a file named config.ini in the same directory as the binary:

[credentials]
user=<your mqtt username>
pass=<your mqtt password>
host=<your mqtt hostname>

Then, you should create a bash script, which you'll put somewhere to automatically start this python script on boot.

🚀 Running

This is an example autorun script dedicated to Kubuntu autorun mechanism which also launches HA instance:

#!/bin/bash

cd /home/chris/Pulpit/HomeAssistant/uhostmon
nohup ./gohostmon >/dev/null 2>&1 &
VBoxManage startvm HomeAssistant --type headless

🖼️ Screenshots


Home Assistant dasboard


MQTT explorer (see hwinfo topic)

About

💻Initially written in Python, but translated to Go with the help of LLMs. Implements metric gathering for Dell Wyse 5070 (temperatures) and other generic metrics like CPU, RAM, memory, network. These metrics are then reported to the MQTT broker. Perfect fit, if you have HA instance running in the VM and you want to monitor host machine health.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载