#!/usr/bin/env python3
import shutil
import sys
def check_dsik_usage(disk, min_absolute, min_percent):
	du = shutil.disk_usage(disk)
	percent_free = 100*du.free/du.total
	gigabytes_free = du.free /2**30
	if percent_free < min_percent or gigabytes_free < min_absolute:
		return False
	return True
if not check_dsik_usage("/", 2,10):
	print("Error! not enough disk space")
	sys.exit(1)
print("Everything ok!")
sys.exit(0)
