Skip to content

Linux Install

Packages are published per release for amd64 and arm64 in three variants (minimal, standard, large; see Building for the collector sets).

Terminal window
sudo apt install ./blazebee_<version>_<arch>.deb

The package installs:

PathPurpose
/usr/bin/blazebeebinary
/etc/blazebee/config.tomlconfiguration (conffile, preserved on upgrade)
/usr/lib/systemd/system/blazebee.serviceunit, enabled and started on install

Edit the configuration, at least transport.host, then restart:

Terminal window
sudo editor /etc/blazebee/config.toml
sudo systemctl restart blazebee
journalctl -u blazebee -f

Until a broker is reachable the service logs reconnection attempts and takes no samples; it never exits because of an unreachable broker.

Terminal window
sudo install -m 0755 blazebee /usr/bin/blazebee
sudo install -d /etc/blazebee
sudo install -m 0644 config.example.toml /etc/blazebee/config.toml
sudo install -m 0644 contrib/systemd/blazebee.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now blazebee

contrib/systemd/blazebee.service runs the agent with DynamicUser=yes: systemd allocates an unprivileged user at start, so no account needs to be created. The sandbox grants read access to /proc and /sys, network sockets, AF_UNIX (journald, D-Bus for the systemd collector) and the adjtimex syscall for the ntp collector; everything else is denied.

BLAZEBEE_CONFIG=/etc/blazebee/config.toml is set in the unit. To use another file, override it:

Terminal window
sudo systemctl edit blazebee
# [Service]
# Environment=BLAZEBEE_CONFIG=/srv/blazebee/config.toml

Credentials belong in the environment rather than the file:

[Service]
EnvironmentFile=/etc/blazebee/env

with MQTT_PASSWORD=... in /etc/blazebee/env (mode 0600) and password = "${MQTT_PASSWORD}" in the configuration.

EventBehaviour
SIGTERM, SIGINTpublish offline, DISCONNECT, exit 0
configuration or logging errormessage on stderr, exit 2
unrecoverable broker errorexit 1; Restart=on-failure restarts after 5 s

Logs go to the journal through stdout. Levels and per-module filters can be raised without editing the file:

Terminal window
sudo systemctl edit blazebee
# [Service]
# Environment=RUST_LOG=debug,rumqttc=info

Each sampling cycle is logged at debug with the number of published and failed collectors and the cycle duration.