event monitoring script