# online -> good after half a day
# offline -> down after two days
# monitordebug -> down after 30 days
# online -> good after half a day
# offline -> down after two days
# monitordebug -> down after 30 days
# disabled -> down after 60 days
if node.status == 'online' and changed_greaterthan(node.last_changed, 0.5):
# disabled -> down after 60 days
if node.status == 'online' and changed_greaterthan(node.last_changed, 0.5):
print "changed status from %s to down" % node.status
# NOTE: change an admin mode back into monitordebug after two months.
node.status = 'monitordebug'
print "changed status from %s to down" % node.status
# NOTE: change an admin mode back into monitordebug after two months.
node.status = 'monitordebug'