X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-filesystems;h=6bc1b6e03146625473665b4720ea5673a9ed260d;hb=eb17713861edd0686880b3912543027ffa0eae8d;hp=4b747855c232ab7387502d2916c67ac7b6769365;hpb=d6e0e373c910d25d8b89a0f34f777304132e807c;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-filesystems b/dsa-nagios-checks/checks/dsa-check-filesystems index 4b74785..6bc1b6e 100755 --- a/dsa-nagios-checks/checks/dsa-check-filesystems +++ b/dsa-nagios-checks/checks/dsa-check-filesystems @@ -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