Fix problems with config and add monit configuration