rt monitor alarm.py copied from personal_svn