diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 26e9e14a..c398801c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -383,9 +383,9 @@ STATUS(){ partitions2=`echo ${partitions[*]}` partitions3=(${partitions2}) for partition in "${partitions3[@]}"; do - if [ "${partition}" != "udev" ]; then + if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'` - if [ "${freespace}" -le "1000" ]; then + if [ "${freespace}" -le "5000" ]; then fs_status='error' fs_status_color='Red' if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo "${partition} : ${freespace} MB free" | mail -s "Free Space Critical: '${NM_NODETYPES[$NTYPE]}-Node${nid}'" ${STATUS_CHECK_EMAIL}; fi