Monitor element
This element is a dict that will contain several options both mandatory and optional (order isn’t relevant)
broker
required
String
Address of the broker (hostname or ip)
name
required
String
Name of the computer to monitor, you can choose it as you want (there isn't a correct value)
sensors
required
List of String
List of sensor names to enable
commands
required
List of String
List of command names to enable
send_interval
required
Integer
Interval of seconds between sending two sensors' data
port
optional
default: 1883
Integer
Port of the broker
username
optional
default: no authentication
String
Username to authenticate with the broker
password
optional
default: no authentication
String
Password of the set username to authenticate with the broker. Required if you added an username
mqtt_id
optional
default: name options will be used
String
If your broker wants a specific mqtt id, it can be set from here
debug
optional
default: False
Boolean
Log more information such as topic subscription and data send events
Example
- broker: mqtt.eclipse.org
name: Lenovo
username: example
password: secret
send_interval: 20 # Seconds
debug: True
sensors:
- CpuTemperatures
- Time
commands:
- Shutdown
- Reboot