Add id_dir directive to ensure /var/lib/monit is writable.