Update nodemgmt-scripts.sh

This commit is contained in:
2019-12-12 23:58:25 -06:00
parent f4fd058c03
commit 78bd9d3cd3

View File

@@ -385,12 +385,12 @@ STATUS(){
for partition in "${partitions3[@]}"; do
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'`
if [ "${freespace}" -le "5000" ]; then
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
elif [ "${freespace}" -le "5000" ]; 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