9/8/2023 0 Comments Ubuntu install monit![]() ![]() This Monit configuration assumes you are using a gmail account for sending and receiving notifications Paste the block below while making appropriate changes Open the Monit configuration sudo nano /etc/monit/monitrc This command changes the permissions of the monit ssl certificate sudo chmod 0700 /var/certs/monit.pem Install Monit from RepositoryĮasy as always straight from the repository sudo apt-get install monit -yīackup the old Monit configuration sudo mv /etc/monit/monitrc /etc/monit/monitrc.bak etc/monit/monitrc:124: Error: SSL server PEM file permissions check failed 'allow' Modify the permissions to prevent this error monit: The SSL server PEM file '/var/certs/monit.pem' must have permissions no more than -rwx- (0700) right now permissions are -rw-r-r- (0644). sudo openssl req -new -x509 -days 365 -nodes -out /var/certs/monit.pem -keyout /var/certs/monit.pem If you want to increase the validation period increase 365 to something like 36500 (100 years). Generate a key, you can enter the information it prompts for if you want but it is not necessary, you can just leave it blank. Install OpenSSL sudo apt-get install openssl -yĬreate certs folder sudo mkdir -p /var/certs We need an SSL certificate for Monit in order to look at the Monit web interface securely. I have already prepared a thorough guide for most media server programs posted here. Tests if a URL is accessible and returns specific content.Tests if port or unix socket is open on the loopback address.Monitors the existence of the pid file, if it is no longer present the program is restarted.Here is what the Monit configurations essentially do for each service ![]() Install Secure Monit to Monitor Home Media Server Updated Janufixed mail settings and sudo omissions This is a monit installation using https and your own self-signed certificate. I also show you how to use your gmail account to send monit alerts from your home media server. This monit tutorial shows you how to install monit securely on Ubuntu and Debian systems. I have already shown how to monitor Plex Media Server and restart it automatically if the Plex process has stopped in this guide. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |