<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.ec-informatique.fr/index.php?action=history&amp;feed=atom&amp;title=Surveillance_disque_LVM</id>
	<title>Surveillance disque LVM - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ec-informatique.fr/index.php?action=history&amp;feed=atom&amp;title=Surveillance_disque_LVM"/>
	<link rel="alternate" type="text/html" href="https://wiki.ec-informatique.fr/index.php?title=Surveillance_disque_LVM&amp;action=history"/>
	<updated>2026-06-19T10:27:55Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.ec-informatique.fr/index.php?title=Surveillance_disque_LVM&amp;diff=219&amp;oldid=prev</id>
		<title>Eugene : Page créée avec « == 📋 Mini‑checklist : Surveillance disque LVM ==  == Surveillance disque LVM ==  === Script simple === Créer un script:  /usr/local/bin/check-disk.sh   #!/bin/bash  THRESHOLD=80  USAGE=$(df -h / | awk &#039;NR==2 {print $5}&#039; | sed &#039;s/%//&#039;)  if [ &quot;$USAGE&quot; -ge &quot;$THRESHOLD&quot; ]; then    echo &quot;Alerte: /root utilise $USAGE% !&quot; | mail -s &quot;Alerte disque ServeurVPN&quot; admin@example.com  fi  === Cron === * Éditer la crontab :  crontab -e * Ajouter une ligne (ex. toutes les... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.ec-informatique.fr/index.php?title=Surveillance_disque_LVM&amp;diff=219&amp;oldid=prev"/>
		<updated>2025-12-01T15:48:22Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « == 📋 Mini‑checklist : Surveillance disque LVM ==  == Surveillance disque LVM ==  === Script simple === Créer un script:  /usr/local/bin/check-disk.sh   #!/bin/bash  THRESHOLD=80  USAGE=$(df -h / | awk &amp;#039;NR==2 {print $5}&amp;#039; | sed &amp;#039;s/%//&amp;#039;)  if [ &amp;quot;$USAGE&amp;quot; -ge &amp;quot;$THRESHOLD&amp;quot; ]; then    echo &amp;quot;Alerte: /root utilise $USAGE% !&amp;quot; | mail -s &amp;quot;Alerte disque ServeurVPN&amp;quot; admin@example.com  fi  === Cron === * Éditer la crontab :  crontab -e * Ajouter une ligne (ex. toutes les... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 📋 Mini‑checklist : Surveillance disque LVM ==&lt;br /&gt;
&lt;br /&gt;
== Surveillance disque LVM ==&lt;br /&gt;
&lt;br /&gt;
=== Script simple ===&lt;br /&gt;
Créer un script:&lt;br /&gt;
 /usr/local/bin/check-disk.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 THRESHOLD=80&lt;br /&gt;
 USAGE=$(df -h / | awk &amp;#039;NR==2 {print $5}&amp;#039; | sed &amp;#039;s/%//&amp;#039;)&lt;br /&gt;
 if [ &amp;quot;$USAGE&amp;quot; -ge &amp;quot;$THRESHOLD&amp;quot; ]; then&lt;br /&gt;
   echo &amp;quot;Alerte: /root utilise $USAGE% !&amp;quot; | mail -s &amp;quot;Alerte disque ServeurVPN&amp;quot; admin@example.com&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
=== Cron ===&lt;br /&gt;
* Éditer la crontab :&lt;br /&gt;
 crontab -e&lt;br /&gt;
* Ajouter une ligne (ex. toutes les heures) :&lt;br /&gt;
 0 * * * * /usr/local/bin/check-disk.sh&lt;br /&gt;
&lt;br /&gt;
=== Vérification ===&lt;br /&gt;
* Tester manuellement :&lt;br /&gt;
 /usr/local/bin/check-disk.sh&lt;br /&gt;
* Vérifier réception du mail si seuil dépassé&lt;/div&gt;</summary>
		<author><name>Eugene</name></author>
	</entry>
</feed>