Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user