diff --git a/glances.conf b/glances.conf
index ebb8ca060ad45768ffe5bbcb060e01e62192fc91..ffd0450c921fe187737338d7973419801b30af03 100644
--- a/glances.conf
+++ b/glances.conf
@@ -44,6 +44,7 @@ disable=False
 user_careful=50
 user_warning=70
 user_critical=90
+user_critical_action=echo "CPU oversteget `date`" >> /home/student/warnings.txt
 #user_log=False
 system_careful=50
 system_warning=70