Skip to content

Commit

Permalink
Merge pull request #100 from atodorov-storpool/patch-4
Browse files Browse the repository at this point in the history
im/monitor_ds.sh skip broken symlinks
  • Loading branch information
jfontan committed Jun 9, 2016
2 parents c2da94d + 64d6849 commit dd493d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/im_mad/remotes/common.d/monitor_ds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ for ds in $dirs; do

dir=$DATASTORE_LOCATION/$ds

test -d "$dir" || continue

USED_MB=$(df -B1M -P $dir 2>/dev/null | tail -n 1 | awk '{print $3}')
TOTAL_MB=$(df -B1M -P $dir 2>/dev/null | tail -n 1 | awk '{print $2}')
FREE_MB=$(df -B1M -P $dir 2>/dev/null | tail -n 1 | awk '{print $4}')
Expand Down

0 comments on commit dd493d9

Please sign in to comment.