various monitoring and maintenance scripts