Fix monitoring scripts (issue #4631)