Difference between revisions of "Munin"
From wiki
(Created page with "{{WIP}} == Prerequisite == For the master server: * Nginx For a node: * Possibility to connect in SSH from the master server == Install the Master Server == <syntaxh...") |
(Better SSH instructions) |
||
Line 7: | Line 7: | ||
* Possibility to connect in [[SSH]] from the master server | * Possibility to connect in [[SSH]] from the master server | ||
− | == | + | == Master Server == |
+ | |||
+ | === Install === | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
− | $ sudo apt install munin | + | $ sudo apt install munin spawn-fcgi |
</syntaxhighlight> | </syntaxhighlight> | ||
− | == | + | === Webserver === |
+ | {{TODO|msg=}} | ||
+ | |||
+ | === 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: <code>/var/lib/munin/.ssh/id_ed25519</code>, no password)<syntaxhighlight lang="console"> | |
− | <syntaxhighlight lang="console"> | + | $ sudo -u munin ssh-keygen -t ed25519 -o -a 100 |
− | $ sudo ssh-keygen -t ed25519 -o -a 100 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | == Node == | ||
=== Install === | === Install === |
Latest revision as of 08:28, 9 January 2017
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