Fix monit uppercase and restart problem

Fix uppercase problem similar to https://github.com/ansible/ansible/issues/3468.
Fix restart problem in monit