@@ -0,0 +1,654 @@
+#!/usr/bin/python%0A%0Afrom datetime import timedelta%0A%0Awith open('/proc/uptime', 'r') as f:%0A    uptime_seconds = float(f.readline().split()%5B0%5D)%0A    uptime_minutes = uptime_seconds %0A%0A   # uptime_string = str(timedelta(seconds = uptime_seconds))%0A%0A%0Aif uptime_minutes %3E warning_max_time:%0A        print %22OK - your system has more than two days of uptime %22%0A        sys.exit(0)%0Aelif uptime_minutes%22:%0A        print %22WARNING - %25s of disk space used.%22 %25 used_space%0A        sys.exit(1)%0Aelif uptime_minutes :%0A        print %22CRITICAL - %25s of disk space used.%22 %25 used_space%0A        sys.exit(2)%0Aelse:%0A        print %22UKNOWN - problem running thi script%22%0A        sys.exit(3)%0A

Create check_uptime.py