#!/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;
monitor NFS volumes inode usage
Reply
#!/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;
#!/bin/bash
# FILE: df_space_check.sh
# AUTHOR: ForDoDone
# DATE: 2013/08/16
# NOTES:
#
j=`df | grep nfs0[3-6]\/vol1 | awk '{if ($3 < 100000000) print $5}'`; if [ "$j" != "" ]; then echo "vol $j ALMOST FULL" | mail <verizonnumber>@vtext.com; fi;