Munin

From wiki


Warning Warning: This page is a work in progress and is not completed. Important informations might be missing or wrong.

Prerequisite

For the master server:

For a node:

  • Possibility to connect in SSH from the master server

Master Server

Install

$ sudo apt install munin spawn-fcgi

Webserver

TODO

SSH

If you want to collect data from nodes on other machines, you need to generate an SSH key to connect to them.

Simply run the following command and keep the default answers (key location: /var/lib/munin/.ssh/id_ed25519, no password)

$ sudo -u munin ssh-keygen -t ed25519 -o -a 100

Node

Install

$ sudo apt install munin-node

Configure SSH

Whitelist

If SSH users are whitelisted, edit file /etc/ssh/sshd_config and add munin to the list AllowUsers.

$ sudo systemctl reload ssh.service

Configure munin User

$ sudo mkdir /var/lib/munin
$ sudo chown munin: /var/lib/munin
$ sudo -u munin mkdir /var/lib/munin/.ssh