Extract monitoring threads in a new file