Installer un moniteur de performance (rpi-monitor)
Passer en super utilisateur sudo : sudo su
Désinstaller RPI-Monitor (si nécessaire) :
pgd@rpi01:~ $ apt-get purge rpimonitor
pgd@rpi01:~ $ rm -fr /etc/rpimonitor
pgd@rpi01:~ $ rm -fr /usr/share/rpimonitor
Installer à nouveau RPI-Monitor :
pgd@rpi01:~ $ sudo apt-get install dirmngr
pgd@rpi01:~ $ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F
pgd@rpi01:~ $ sudo wget http://goo.gl/vewCLL 1 -O /etc/apt/sources.list.d/rpimonitor.list
pgd@rpi01:~ $ sudo apt update
pgd@rpi01:~ $ sudo apt install rpimonitor
pgd@rpi01:~ $ sudo /etc/init.d/rpimonitor update
pgd@rpi01:~ $ sudo apt clean
Accéder au tableau de bord de RPI-Monitor :
http://ip_du_rpi:8888
Configuration :
pgd@rpi01:~ $ sudo nano /etc/rpimonitor/daemon.conf
➔ changement du port 8888
pgd@rpi01:~ $ sudo nano /etc/rpimonitor/template/network.conf
➔
dynamic.1.name=wifi_received
dynamic.1.source=/sys/class/net/wlan0/statistics/rx_bytes
dynamic.1.regexp=(.*)
dynamic.1.postprocess=$1*-1
dynamic.1.rrd=DERIVE
dynamic.2.name=wifi_send
dynamic.2.source=/sys/class/net/wlan0/statistics/tx_bytes
dynamic.2.regexp=(.*)
dynamic.2.postprocess=
dynamic.2.rrd=DERIVE
web.status.1.content.1.title=WiFi
web.status.1.content.1.icon=wifi.png
web.status.1.content.1.line.1="WiFi Sent: <b>"+KMG(data.wifi_send)+"<i class='icon-arrow-up'></i></b> Received: <b>"+KMG(Math.abs(data.wifi_received)) + "<i class='icon-arrow-down'></i></b>"
web.statistics.1.content.1.title=WiFi
web.statistics.1.content.1.graph.1=wifi_send
web.statistics.1.content.1.graph.2=wifi_received
web.statistics.1.content.1.ds_graph_options.wifi_send.label=Upload bandwidth (bits)
web.statistics.1.content.1.ds_graph_options.wifi_send.lines={ fill: true }
web.statistics.1.content.1.ds_graph_options.wifi_send.color="#FF7777"
web.statistics.1.content.1.ds_graph_options.wifi_received.label=Download bandwidth (bits)
web.statistics.1.content.1.ds_graph_options.wifi_received.lines={ fill: true }
web.statistics.1.content.1.ds_graph_options.wifi_received.color="#77FF77"
Redémarrage du service :
pgd@rpi01:~ $ sudo service rpimonitor restart
Configuration supplémentaire :
pgd@rpi01:~ $ sudo nano /etc/rpimonitor/data.conf
Mise à jour de RPI-Monitor :
pgd@rpi01:~ $ sudo /etc/init.d/rpimonitor update