Refactoring/edit of the monitoring scripts for remote dumps