Showing 1 changed files with 3 additions and 1 deletions
+3 -1
monitoring.d/raspberrypi
... ...
@@ -83,7 +83,9 @@ function mem_pressure () {
83 83
 function mpd_tablette () {
84 84
     local tablette=192.168.0.53
85 85
     local port=6600
86
-    local nfs=$(ss -no state established 'sport = :nfs' dst $tablette | grep -c $)
86
+    local media='/media/musique'
87
+#    local nfs=$(ss -no state established 'sport = :nfs' dst $tablette | grep -c $)
87 88
     test $nfs -lt 3 && echo "tablette non connectée à la zique"
88 89
     nc -zw2 $tablette $port || echo "MPD injoignable"
90
+    test $(showmount --all --no-headers | grep $tablette:$media) -eq 1 || echo "$media pas exporté"
89 91
 }