Showing 1 changed files with 4 additions and 0 deletions
+4
monitoring.d/cloud
... ...
@@ -25,6 +25,10 @@ function core_alim () {
25 25
     test $volt_fmt -lt 12000 -o $volt_fmt -gt 15000 && echo "$volt"
26 26
 }
27 27
 
28
+function undervoltage () {
29
+    test $(grep -c "hwmon hwmon1" /var/log/syslog) -gt 0 && echo "Undervoltage detected!"
30
+}
31
+
28 32
 function clean_swap () {
29 33
     _turn 2 || return
30 34
     echo 1 > /proc/sys/vm/drop_caches