Update nodemgmt-scripts.sh
This commit is contained in:
@@ -388,10 +388,15 @@ STATUS(){
|
|||||||
if [ "${freespace}" -le "1000" ]; then
|
if [ "${freespace}" -le "1000" ]; then
|
||||||
fs_status='error'
|
fs_status='error'
|
||||||
fs_status_color='Red'
|
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
|
elif [ "${freespace}" -le "10000" ]; then
|
||||||
fs_status='warn'
|
fs_status='warn'
|
||||||
fs_status_color='Yellow'
|
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
|
else
|
||||||
|
fs_status=''
|
||||||
fs_status_color='Green'
|
fs_status_color='Green'
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user