diff --git a/HowtoMunin.md b/HowtoMunin.md index 45163562..489a4302 100644 --- a/HowtoMunin.md +++ b/HowtoMunin.md @@ -494,18 +494,20 @@ GET http://nomduserveur.evolix.net:8080/server-status-XXXXX?auto # munindoc ~~~ -### Il manque /home dans le plugin df +### Il manque `/home` dans le *plugin* `df` -Attention, le plugin df est différent du plugin diskstats. +Attention, le *plugin* `df` est différent du *plugin* `diskstats`. -~~~{bash} -# cp -a /lib/systemd/system/munin-node.service /etc/systemd/system/ -# vim /etc/systemd/system/munin-node.service -- ProtectHome=true -+ ProtectHome=false -$ systemctl deamon-reload -$ systemctl restart munin -$ systemctl restart munin-node +~~~{ .bash } +mkdir -p /etc/systemd/system/munin-node.service.d +tee /etc/systemd/system/munin-node.service.d/override.conf > /dev/null << 'eof' +[Service] +ProtectHome=false +eof +systemctl daemon-reload +systemctl restart munin-node.service ~~~ -Puis attendre la prochaine exécution du cron ou la lancer soi-même `sudo -u munin /usr/bin/munin-cron`. +Puis attendre la prochaine exécution du *cron* ou la lancer soi-même :`sudo -u munin /usr/bin/munin-cron`. + +> On peut remplacer les commandes `mkdir` et `tee` par `systemctl edit munin-node.service`. \ No newline at end of file