Compile and install latest monit 5.11

Monit is great lighweight monitoring and alerting utility, but for some reason all major distros have issue with keeping it up to date and including latest version.

Good news is that monit has only few dependencies so compiling it is quite easy.

To compile and install latest monit 5.11 on Debian, Ubuntu and Raspbian (for Raspberry Pi) use following steps:

sudo apt-get install libpam0g-dev libssl-dev
wget http://mmonit.com/monit/dist/monit-5.11.tar.gz
tar xvzf monit-5.11.tar.gz
cd monit-5.11/
./configure
make
sudo make install

For Centos and Fedora procedure is very similar:

sudo yum install gcc pam-devel openssl-devel
wget http://mmonit.com/monit/dist/monit-5.11.tar.gz
tar xvzf monit-5.11.tar.gz
cd monit-5.11/
./configure
make
sudo make install