{
    "name"  : "硬盘空间是否被占满",
    "problems" : {
        "flowError" : {
            "desc"      : "【问题】硬盘剩余空间不足。",
            "advice"    : "【建议】请确认硬盘空间的实际使用率，无法解决的话请联系400处理。"
        }
    }
}
---------------------------code-------------------------------
if get_share_value("IsOrNotEG2000K")=="yes" :
    return 'skip'
end

multiple = 1
res = cli("show sata")
print res
flag = res.match(/\bInvalid\b/ig)
print flag
if flag != null :
	return 'skip'
end
resArr = res.match(/\bAvailable size: \S+\b/)
print resArr
if resArr != null :
	resAr = resArr[0]
	resChar = resAr.split(/|/)
	print resChar
	print resChar
	print resChar[21]
	if resChar[21] == 'G' :
		multiple = 1000000
	end
	if resChar[21] == 'M' :
		multiple = 1000
	end
	if resChar[21] == 'B' :
		multiple = 1
	end
	print multiple
	resAr = resArr[0]
	resAr = resAr.match(/[-+]?\d+(\.\d+)?/)
	print resAr
	if resAr != null :
		tmp = resAr[0]*multiple
		if tmp < 1000:
			print 'warn'
			add_problem("flowError")
			return 'warn'
		end
	end
end

print 'success'
return 'success'