Onboard dynamic rail track safety monitoring system