Update nodemgmt-scripts.sh

This commit is contained in:
2019-12-12 23:55:49 -06:00
parent 7876c57416
commit d48dee2119

View File

@@ -388,10 +388,15 @@ STATUS(){
if [ "${freespace}" -le "1000" ]; 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
elif [ "${freespace}" -le "10000" ]; then
fs_status='warn'
fs_status_color='Yellow'
if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo "${partition} : ${freespace} MB free" | mail -s "Free Space Warning: '${NM_NODETYPES[$NTYPE]}-Node${nid}'" ${STATUS_CHECK_EMAIL}; fi
else
fs_status=''
fs_status_color='Green'
fi