Debian AMD64


Install the whole stack on a Debian-based system. It is currently made of these free and open source software components:

  • Mosquitto, a MQTT message broker
  • InfluxDB, a time-series database
  • Grafana, a graph and dashboard builder for visualizing time series metrics
  • Kotori, a data acquisition, graphing and telemetry toolkit



wget --quiet -O - | apt-key add -
echo 'deb stretch main' > /etc/apt/sources.list.d/mosquitto.list
apt update
apt install mosquitto mosquitto-clients


dpkg --install influxdb_0.10.2-1_amd64.deb


  auth-enabled = true
  log-enabled = true

Configure rsyslog:

cat /etc/rsyslog.d/influxdb.conf
# redirect to application log
if $programname contains 'influxd' then /var/log/influxdb/influxd.log

# prevent bubbling up into daemon.log
if $programname contains 'influxd' then stop

Restart rsyslog:

service rsyslog restart

Start InfluxDB daemon:

systemctl start influxdb
tail -F /var/log/influxdb/influxd.log


Install package:

apt install apt-transport-https curl
curl | apt-key add -
echo 'deb wheezy main' > /etc/apt/sources.list.d/grafana.list

apt update
apt install grafana


admin_password = XYZ

Enable system service:

systemctl enable grafana-server
systemctl is-enabled grafana-server

Start system service:

systemctl start grafana-server
tail -F /var/log/grafana/grafana.log


Kotori package


Add GPG key for checking package signatures:

wget -qO - | apt-key add -

Add https addon for apt:

apt install apt-transport-https

Register with package repository

Add source for “testing” distribution (e.g. append to /etc/apt/sources.list):

deb testing main

Reindex package database:

apt update

Install package

apt install kotori

When adjusting the configuration in /etc/kotori, please restart the service:

systemctl restart kotori
tail -F /var/log/kotori/*.log

For information beyond the package level, please visit Hacking on Kotori.

Daemon control

Business as usual:

systemctl start|stop|restart|status kotori
systemctl enable|disable kotori

All together now

Check the status of all services:

systemctl list-units influxdb* mosquitto.service grafana-server* kotori*
systemctl status     influxdb* mosquitto.service grafana-server* kotori*

Count them:

systemctl list-units influxdb* mosquitto.service grafana-server* kotori* | grep running | wc -l

Watch the logs:

tail -F /var/log/syslog /var/log/influxdb/*.log /var/log/mosquitto/* /var/log/grafana/*.log /var/log/kotori/*.log