System Monitor Tool using MQTT
Project description
System Monitor
This module reports system performance data to an MQTT server. Home Assistant Discovery may also be enabled to allow easy setup for use with Home Assistant
Installation
This is a PyPi module and can be installed into a dedicated environment
using pip install mydomuk.sysmon
Usage
A source file is required to allow communication with the MQTT server and for the setup of Home Assistant
In order to create a dummy configuration file call Sysmon as below
python -m mydomuk.sysmon -cs
This will output a Source configuration similar to below
Jan10 22:21:47 - sysmon[I] - Sysmon Version 1.2.21 running on posix system linux
# Configuration File save this as a .src file and edit it
# ************** START ********************
MQTT_BROKER=127.0.0.1 # MQTT Broker host name or IP address, required
MQTT_PORT=1883 # MQTT Port for connecting to broker, defaults to 1883
MQTT_USER= # MQTT Username for broker, required if using authenticated MQTT Server
MQTT_PASSWORD= # MQTT Password for broker
MQTT_SSL=False # Use SSL True for False for connecting to broker, default False
MQTT_CACERT= # Path to the CA Certficate if using SSL, optional
MQTT_TOPIC_PREFIX=MyDomUK # MQTT Topic Prefix, required
MQTT_DEVICE_TOPIC=sysmon/{{hostname}} # MQTT Device Topic usually include {{hostname}} in the string, required
MQTT_VIP_TOPIC= # Optional Topic for VIP monitoring
MQTT_VIP_MONIT= # Optional Comma Separated list of VIP NIC names to hostname ownership of
MQTT_NIC_MONIT= # Optional Comma Separated list of NIC names to report IP addresses on
MQTT_DISK_MONIT= # Optional Comma Separated list of name=mountpoint pairs
HASS_TOPIC_PREFIX=homeassistant # Homeassistant discovery topic prefix, default homeassistant
HASS_DISCOVERY=True # Discovery on True or False, default True
HASS_DEVICE=MyDomUK Server {{hostname}} # Homeassistant Device description can include {{hostname}}
HASS_DEVICEID=mydomuk_sysmon_{{hostname}} # Homeassistant unique Device can include {{hostname}}
HASS_MANUFACTURER=Server Manufacturer # Homeassistant Device manufacturer
HASS_MODEL=Server Model # Homeassistant Device model information
PUBLIC_IP_CHECK=False # Change to True to Get Public IP V4 Address
PUBLIC_IPV6_CHECK=False # Change to True to Get Public IP V6 Address
PUBLIC_IP_SITES= # Allow overriding the internal set of Public IP Check URLs
PUBLIC_IPV6_SITES= # Allow overriding the internal set of Public IP Check URLs
# ************** ENDS ********************
Copy this and edit it into a local file and then start sysmon using
python -m mydomuk.sysmon -src sourcefilename
To see a list of command line options simply run
python -m mydomuk.sysmon -h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mydomuk_sysmon-1.2.22.tar.gz.
File metadata
- Download URL: mydomuk_sysmon-1.2.22.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14613c292bd38935d0205960931e4c5488603fb70d70916bf2908312d3fda659
|
|
| MD5 |
0d54e59fab8afafd1857cab9ff85b0ce
|
|
| BLAKE2b-256 |
3ba3b9ddc1d2dd50d4d2ce4912bc76357a48df5a20d6d35068572db8e01e9dc2
|
File details
Details for the file mydomuk_sysmon-1.2.22-py3-none-any.whl.
File metadata
- Download URL: mydomuk_sysmon-1.2.22-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aa82331479cff6a3e866a3f990ebf748c432eb659b3d7a7af65d32c175176c3
|
|
| MD5 |
640a9ca97df636d17818c784c22d99f6
|
|
| BLAKE2b-256 |
1ae9a1fe7a93ac4204d76dbd7497a411f174dda2efc6a1ff4ad7e955ebaa703b
|