Nextcloud monitior with Monit (monitior nextcloud related software working or not)

is somebody use monit program for verification of programs related to nextcloud (barebone linux not with docker) if program crashed due to some reason it will restart them by it self. please help me to write monit config file. i have write it from web searching online. but i will thankful to some expert please verify about it correctness, thanks Ubuntu Pastebin .
mostly all software needed for nextcloud are installed. like

Dropbear SSH

#Pro FTP