Voici les étapes, on commence par vérifier que l’on a la même version que moi :
osmc@osmc:~$ uname -a
Linux osmc 4.14.34-6-osmc #1 SMP PREEMPT Thu Sep 6 00:47:56 UTC 2018 armv7l GNU/Linux
osmc@osmc:~$ cat /etc/*release
PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="August 2018"
VERSION_ID="2018.08-2"
ID=osmc
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.osmc.tv"
SUPPORT_URL="https://www.osmc.tv"
BUG_REPORT_URL="https://www.osmc.tv"
osmc@osmc:~$ sudo mii-tool eth0
eth0: negotiated 1000baseT-HD flow-control, link ok
Maintenant que vous avez vu que vous aviez la même version que moi, on peut commencer :
Le but est d’installer ELK sur un OSMC/Raspberry déjà fonctionnel … afin de ne pas acheter un nouveau Raspberry Pi …
Pour l’installation de OSMC voir : https://www.cyber-neurones.org/2016/09/installation-un-media-center-avec-osmc-sur-un-raspberry-pi-3-model-b/ . “Installation un media-center avec OSMC sur un Raspberry Pi 3 Model B” ( fait le 30/09/2016) .
La première étape est d’ouvrir un console, puis faire un SSH : sur l’IP avec le login osmc et le mot de passe osmc ( si pas changé ) :
Le script pour la freebox est ici : https://github.com/guyou/freebox_munin/blob/freeboxv5/freeboxv5 ( le projet est http://github.com/d-matt/freebox_munin ) .
Pour plus d’information sur Munin : https://doc.ubuntu-fr.org/munin ( A noter qu’il faut Apache2 afin de voir l’interface ) .
L’installation :
$ sudo apt-get install munin
$ sudo apt-get install munin-node
$ sudo apt-get install munin-plugins-extra libcgi-fast-perl libapache2-mod-fcgid
$ sudo apt-get install apache2
$ sudo apt-get install libapache2-mod-php5 apache2-doc apache2-utils
$ sudo ln -s /etc/munin/apache24.conf /etc/apache2/conf-available/munin.conf
$ sudo a2enmod fcgid
Enabling module fcgid.
To activate the new configuration, you need to run:
service apache2 restart
$ sudo systemctl restart apache2
$ sudo su
-> Copie du script dans /usr/share/munin/plugins/freeboxv5
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_atm
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_attenuation
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_snr
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_status
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_uptime
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_fec
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_hec
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_crc
# ln -s /usr/share/munin/plugins/freeboxv5 /etc/munin/plugins/freeboxv5_rates
Modification du fichier /etc/munin/plugin-conf.d/munin-node :
Pour l’installation de OSMC voir : https://www.cyber-neurones.org/2016/09/installation-un-media-center-avec-osmc-sur-un-raspberry-pi-3-model-b/ . “Installation un media-center avec OSMC sur un Raspberry Pi 3 Model B” ( fait le 30/09/2016) .
Je fais ce tutoriel suite à la corruption d’une carte SD sur mon raspberry.
Lire les articles :
Première étape : Connexion SSH sur OSMC, il suffit de regarder dans les paramètres pour trouver l’IP : .
Le matériel que j’ai utilisé :
L’installation :