This is a function that reads sys.log and checks for any lines which are logged as alarms. If a line is detected as an alarm, the details of the alarm are added
sys.log