Skip to content

Install RBT: Mosquitto MQTT

Mosquitto provides the MQTT broker used by the RBT MQTT service for realtime integration messages. The RBT-specific broker configuration and password file must be installed before the service is enabled.

This page is one step in the complete RBT installation guide.

Before you start

  • Replace the placeholder password with a unique deployment secret.
  • Restrict broker listeners and firewall access to the systems that require MQTT.
  • Keep the password file readable only by the broker service account.

Expected result

Mosquitto and the RBT MQTT service should be active without authentication or connection errors in their system journals.

Verify this step

systemctl is-active mosquitto
systemctl is-active mqtt
journalctl -u mqtt -n 50 --no-pager

Install Mosquitto

ln -sf /opt/rbt/install/mosquitto/rbt.conf /etc/mosquitto/conf.d/rbt.conf
mosquitto_passwd -c -b /opt/rbt/install/mosquitto/passwd rbt <!-- your mosquitto password here --!>
cd /opt/rbt/server/services/mqtt
npm i express mqtt redis
ln -sf /opt/rbt/install/systemd/mqtt.service /etc/systemd/system/mqtt.service
systemctl enable mqtt
systemctl start mqtt

Next