monitor NFS volumes inode usage

#!/bin/bash
k=`df -i | grep fs[3-6]\/vol1 | awk '{if ($3 < 20000) print $5}'`; 
if [ "$k" != "" ]; 
  then echo "vol $k ALMOST OUT OF INODES" | mail <verizonnumber>@vtext.com; 
fi;

Leave a Reply

Your email address will not be published. Required fields are marked *