Update nodemgmt-scripts.sh
This commit is contained in:
@@ -385,12 +385,12 @@ STATUS(){
|
|||||||
for partition in "${partitions3[@]}"; do
|
for partition in "${partitions3[@]}"; do
|
||||||
if [ "${partition}" != "udev" ]; then
|
if [ "${partition}" != "udev" ]; then
|
||||||
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'`
|
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'`
|
||||||
if [ "${freespace}" -le "10000" ]; then
|
if [ "${freespace}" -le "1000" ]; then
|
||||||
fs_status='warn'
|
|
||||||
fs_status_color='Yellow'
|
|
||||||
elif [ "${freespace}" -le "1000" ]; then
|
|
||||||
fs_status='error'
|
fs_status='error'
|
||||||
fs_status_color='Red'
|
fs_status_color='Red'
|
||||||
|
elif [ "${freespace}" -le "10000" ]; then
|
||||||
|
fs_status='warn'
|
||||||
|
fs_status_color='Yellow'
|
||||||
else
|
else
|
||||||
fs_status_color='Green'
|
fs_status_color='Green'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user