added dirname to monitor server