This will allow you to see the vast array of configuration options. For hackers out there, you might want to copy configuration file (monitrc) provided with Monit instead of using the command below. The following command writes configuration file for Monit on CentOS 6. shell variable to password which will be used for accessing Monit web interface PASS="mypass" Set shell variable to the email address where you want to receive notifications. It also needs credentials that we will use to login into its web interface. system/startup/rc.monit /etc/init.d/monitĮnsure that the startup file uses correct path for Monit executable: echo "MONIT=/usr/local/bin/monit" > /etc/sysconfig/monitĪt this point Monit does not have configuration to run with. Tar xvf monit-5.8.1.tar.gz & rm -rf monit-5.8.1.tar.gzĬreate a copy of startup file bundled with Monit, make sure that it has correct permissions and enable Monit startup at boot time: cp. The very last composite command compiles and installs Monit. The following commands fetch Monit source archive from their website, extract, and remove the archive. Install prerequisitesįor successful compilation, we need development libraries for OpenSSL and PAM. In case you’re not familiar with compiling from source, refer to our quick intro into compiling software in Linux. Grab the latest source files download link at official Monit website: scroll down to Downloads section and copy link for “Source code”. So let’s install the latest Monit version by compiling it from source files. We don’t want to mess with 3rd party repository which might introduce inconsistency to our packages. Monit is not available via standard repository. The following steps should get you a running instance of Monit in minutes. Note that our guides are always targeted to CentOS (Redhat) users. You need a virtual or dedicated hosting plan. Let’s detail the steps on how to install and configure Monit on your web server. Each time Monit performs a restart action, it will alert you via email notification. It can monitor services and automatically restart them on failure for maximum uptime. Monit is a great web app for monitoring websites. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you. We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |