From e7bb6dd671d63b7f6e82cada4a7af7e852100c9e Mon Sep 17 00:00:00 2001 From: abenmiloud Date: Wed, 20 Oct 2021 16:29:24 +0200 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20correctif=20/home=20pl?= =?UTF-8?q?ugin=20df?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMunin.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) 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