new-klecker is on buster
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-filesystems
index 4b74785..6bc1b6e 100755 (executable)
@@ -30,7 +30,7 @@ mountpoints.keys.each do |m|
                end
        rescue Exception => e
        end
-       if temp
+       if temp && (temp.length > 0)
                output << temp
        end
 end
@@ -39,4 +39,5 @@ if output.length > 0
        puts output.join("\n")
        exit 1
 end
+puts "OK: All filesystems ok."
 exit 0